Exemplo n.º 1
0
echo $form->field($model, 'icon');
?>

    	<h4>Page Summary</h4>
    	<?php 
echo $form->field($content, 'summary')->textarea(['class' => 'content-editor']);
?>

    	<h4>Page Content</h4>
    	<?php 
echo $form->field($content, 'content')->textarea(['class' => 'content-editor']);
?>

    	<h4>Page Banner</h4>
		<?php 
echo FileUploader::widget(['options' => ['id' => 'banner-page', 'class' => 'file-uploader'], 'model' => $content->banner, 'directory' => 'banner', 'btnChooserIcon' => 'icon-action icon-action-edit']);
?>

		<h4>Page SEO</h4>
		<?php 
echo $form->field($content, 'seoName');
?>
    	<?php 
echo $form->field($content, 'seoDescription')->textarea();
?>
    	<?php 
echo $form->field($content, 'seoKeywords')->textarea();
?>
		<?php 
echo $form->field($content, 'seoRobot');
?>
Exemplo n.º 2
0
    	<?php 
echo $form->field($model, 'content')->textarea(['class' => 'content-editor'])->label(false);
?>

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

    	<h4>Block Texture</h4>
		<?php 
echo FileUploader::widget(['options' => ['id' => 'texture-block', 'class' => 'file-uploader'], 'model' => $texture, 'modelClass' => 'Texture', 'directory' => 'texture', 'btnChooserIcon' => 'icon-action icon-action-edit']);
?>

    	<h4>Block Video</h4>
		<?php 
echo FileUploader::widget(['options' => ['id' => 'video-block', 'class' => 'file-uploader'], 'model' => $video, 'modelClass' => 'Video', 'directory' => 'video', 'type' => 'video', 'btnChooserIcon' => 'icon-action icon-action-edit']);
?>

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

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

		<?php 
ActiveForm::end();
?>
	</div>
</section>
Exemplo n.º 3
0
    ?>
</textarea>
					<div class="clear"><span class="error" cmt-error="content"></span></div>
					<!-- url -->
					<label>Slide Url</label>
					<input type="text" name="Slide[url]" value="<?php 
    echo $slide->url;
    ?>
" placeholder="Url">
					<div class="clear"><span class="error" cmt-error="url"></span></div>
					<input type="hidden" name="Slide[sliderId]" value="<?php 
    echo $slider->id;
    ?>
" />	
					<?php 
    echo FileUploader::widget(['options' => ['id' => 'slider-slide-$slideId', 'class' => 'file-uploader'], 'model' => $slide->image, 'directory' => 'gallery', 'infoFields' => true, 'infoFieldsSeoOnly' => true, 'btnChooserIcon' => 'icon-action icon-action-edit']);
    ?>
					<!-- submit, spinner, success -->
					<div class="spinner"></div>
					<div class="message"></div>
		            <input type="submit" class="" value="Update">
				</form>
			</li>
		<?php 
}
?>
		</ul>
	</div>
</section>

<?php 
Exemplo n.º 4
0
<section class="wrap-content container clearfix">
	<div class="cud-box">
		<h2>Update User</h2>
		<?php 
$form = ActiveForm::begin(['id' => 'frm-user-update', 'options' => ['class' => 'frm-split']]);
?>

    	<?php 
echo $form->field($model, 'email');
?>
    	<?php 
echo $form->field($model, 'username');
?>
    	<h4>User Avatar</h4>
		<?php 
echo FileUploader::widget(['options' => ['id' => 'avatar-user', 'class' => 'file-uploader'], 'model' => $model->avatar, 'btnChooserIcon' => 'icon-action icon-action-edit']);
?>
		<?php 
echo $form->field($model, 'firstName');
?>
		<?php 
echo $form->field($model, 'lastName');
?>

    	<?php 
if (isset($roleMap)) {
    ?>
			<?php 
    echo $form->field($siteMember, 'roleId')->dropDownList($roleMap);
    ?>
		<?php 
Exemplo n.º 5
0
<?php

use yii\helpers\Url;
// use cmsgears\files\widgets\AvatarUploader;
use cmsgears\files\widgets\FileUploader;
?>

<?php 
// AvatarUploader::widget( [ 'options' => [ 'id' => 'avatar-user' ] ] );
?>

<?php 
echo FileUploader::widget(['options' => ['id' => 'avatar-user', 'class' => 'file-uploader'], 'model' => $user->avatar, 'postaction' => true, 'cmtcontroller' => 'default', 'cmtaction' => 'avatar', 'postactionurl' => Url::toRoute(['apix/user/avatar'], true)]);
Exemplo n.º 6
0
</label>
			<label>Title</label>
			<label><?php 
echo $gallery->title;
?>
</label>
		</form>

		<h4>Create Item</h4>
		<?php 
echo FileUploader::widget(['options' => ['id' => 'gallery-item', 'class' => 'file-uploader frm-split'], 'directory' => 'gallery', 'infoFields' => true, 'postAction' => 'true', 'cmtController' => 'gallery', 'cmtAction' => 'updateItem', 'postActionUrl' => "/apix/cmgcore/gallery/create-item?id={$id}", 'btnChooserIcon' => 'icon-action icon-action-edit']);
?>

		<h4>All Items</h4>
		
		<ul class="slider-slides clearfix">
		<?php 
foreach ($items as $item) {
    $id = $item->id;
    ?>
			<li>
				<?php 
    echo FileUploader::widget(['options' => ['id' => "item-update-{$id}", 'class' => 'file-uploader frm-split'], 'directory' => 'gallery', 'infoFields' => true, 'model' => $item, 'postAction' => 'true', 'postActionId' => "frm-item-update-{$id}", 'cmtController' => 'gallery', 'cmtAction' => 'updateItem', 'postActionVisible' => true, 'postActionUrl' => "/apix/cmgcore/gallery/update-item?id={$id}", 'btnChooserIcon' => 'icon-action icon-action-edit']);
    ?>
			</li>
		<?php 
}
?>
		</ul>
	</div>
</section>