Ejemplo n.º 1
0
    	<?php 
echo $form->field($model, 'name');
?>
  
    	<?php 
echo $form->field($model, 'order');
?>
 

    	<h4>Site Avatar</h4>
		<?php 
echo AvatarUploader::widget(['options' => ['id' => 'avatar-site', 'class' => 'file-uploader'], 'model' => $avatar, 'modelClass' => 'Avatar', 'directory' => 'avatar', 'btnChooserIcon' => 'icon-action icon-action-edit']);
?>

    	<h4>Site Banner</h4>
		<?php 
echo AvatarUploader::widget(['options' => ['id' => 'banner-site', 'class' => 'file-uploader'], 'model' => $banner, 'modelClass' => 'Banner', 'directory' => 'avatar', 'btnChooserIcon' => 'icon-action icon-action-edit']);
?>

		<div class="box-filler"></div>

		<?php 
echo Html::a('Cancel', 'all', ['class' => 'btn']);
?>
		<input type="submit" value="Update" />

		<?php 
ActiveForm::end();
?>
	</div>
</section>
Ejemplo n.º 2
0
?>
  
    	<?php 
echo $form->field($model, 'description')->textInput(['readonly' => true]);
?>
  
    	<?php 
echo $form->field($model, 'icon')->textInput(['readonly' => true]);
?>
  
		<?php 
echo $form->field($model, 'featured')->checkbox(['disabled' => true]);
?>

    	<h4>Dropdown Avatar</h4>
		<?php 
echo AvatarUploader::widget(['options' => ['id' => 'avatar-dropdown', 'class' => 'file-uploader'], 'model' => $avatar, 'modelClass' => 'Avatar', 'directory' => 'avatar']);
?>
  
		<div class="box-filler"></div>

		<?php 
echo Html::a("Cancel", $returnUrl, ['class' => 'btn']);
?>
		<input type="submit" value="Delete" />

		<?php 
ActiveForm::end();
?>
	</div>
</section>
Ejemplo n.º 3
0
    	<?php 
echo $form->field($model, 'description');
?>
 
    	<?php 
echo $form->field($model, 'icon');
?>
		<?php 
echo $form->field($model, 'featured')->checkbox();
?>

    	<h4><?php 
echo $dropDown;
?>
 Avatar</h4>
		<?php 
echo AvatarUploader::widget(['options' => ['id' => 'avatar-dropdown', 'class' => 'file-uploader'], 'model' => $avatar, 'modelClass' => 'Avatar', 'directory' => 'avatar', 'btnChooserIcon' => 'icon-action icon-action-edit']);
?>
  
		<div class="box-filler"></div>

		<?php 
echo Html::a("Cancel", $returnUrl, ['class' => 'btn']);
?>
		<input type="submit" value="Create" />

		<?php 
ActiveForm::end();
?>
	</div>
</section>
Ejemplo n.º 4
0
<?php

use cmsgears\files\widgets\AvatarUploader;
?>

<!-- <?php 
echo AvatarUploader::widget(['footer' => true]);
?>
 -->
Ejemplo n.º 5
0
use cmsgears\files\widgets\AvatarUploader;
$coreProperties = $this->context->getCoreProperties();
$this->title = $coreProperties->getSiteTitle() . " | Profile";
$this->params['sidebar-parent'] = 'sidebar-profile';
$this->params['sidebar-child'] = 'profile';
$coreProperties = $this->context->getCoreProperties();
$user = Yii::$app->user->getIdentity();
?>
<section class="wrap-content container clearfix">
	<div class="cud-box">
		<div class="clear"></div>
    	<h4>My Profile</h4>

		<div>
			<?php 
echo AvatarUploader::widget(['options' => ['id' => 'avatar-user', 'class' => 'file-uploader'], 'model' => $user->avatar, 'postAction' => true, 'btnChooserIcon' => 'icon-action icon-action-edit', 'postViewIcon' => 'icon-sidebar icon-user']);
?>
		</div>

    	<div class="clear row right">
    		<a class="right icon-action icon-action-edit btn-edit btn-edit-profile"></a>
    	</div>

    	<div class="frm-split frm-view-profile">
		 	<div>
	    		<label> Email </label>
	    		<label><?php 
echo $model->email;
?>
</label>
			</div>