예제 #1
0
파일: _form.php 프로젝트: simplator/staff
?>
<br/><br/>
	
	<?php 
echo Html::a(Module::t('staff', 'Delete structure'), ['delete', 'id' => $model->id], ['class' => 'btn btn-danger', 'style' => 'width: 100%', 'data' => ['confirm' => Module::t('staff', 'Are you sure you want to delete this item?'), 'method' => 'post']]);
?>
</div>
<div class="central-block">
    <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'fulltitle')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'address')->textarea(['rows' => 2]);
?>

    <?php 
echo $form->field($model, 'about')->widget(dosamigos\ckeditor\CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'default']);
?>

    <?php 
ActiveForm::end();
?>

</div>
</div>
예제 #2
0
		<?php 
echo $form->field($rev, 'tags')->textInput();
?>
		<div style="border: solid 1px #000">
			<?php 
echo '';
//$form->field($rev, 'thumbnailid')->widget(simplator\medialib\widgets\PicSelect::className())
?>
		</div>
	</div>

    <div class="central-block">

	<?php 
echo $form->errorSummary($rev);
?>
	<?php 
echo $form->field($rev, 'title')->textInput(['maxlength' => 256]);
?>

    <?php 
echo yii\jui\Tabs::widget(['items' => [['label' => $rev->attributeLabels()['snippet'], 'content' => $form->field($rev, 'snippet')->textarea(['rows' => 6])->label(false)], ['label' => $rev->attributeLabels()['content'], 'content' => $form->field($rev, 'content')->widget(dosamigos\ckeditor\CKEditor::className(), ['options' => ['rows' => 6], 'clientOptions' => ['filebrowserBrowseUrl' => Url::to('/medialib/fm'), 'filebrowserUploadUrl' => '/uploader/upload.php'], 'preset' => 'full'])->label(false), 'options' => ['tag' => 'div'], 'headerOptions' => ['class' => 'my-class']], ['options' => ['id' => 'article-revisions'], 'label' => $rev->attributeLabels()['revisions'], 'url' => ['revisions', 'aid' => $rev->articleid]], ['label' => $rev->attributeLabels()['options'], 'content' => 'Morbi tincidunt, dui sit amet facilisis feugiat...', 'options' => ['id' => 'my-tab']]], 'options' => ['tag' => 'div'], 'itemOptions' => ['tag' => 'div'], 'headerOptions' => ['class' => 'my-class'], 'clientOptions' => ['collapsible' => false, 'active' => 1]]);
?>
    </div>

	<?php 
ActiveForm::end();
?>

</div>