Commit b2165f30 authored by Tobias Munk's avatar Tobias Munk

updated UI

parent b492448b
......@@ -14,7 +14,7 @@ class WidgetContent extends BaseWidget
{
return ArrayHelper::merge(
['' => 'none'],
\yii\helpers\ArrayHelper::map(WidgetTemplate::find()->all(), 'id', 'name')
\yii\helpers\ArrayHelper::map(WidgetTemplate::find()->orderBy('name')->all(), 'id', 'name')
);
}
......
......@@ -37,13 +37,12 @@ use yii\helpers\Html;
<?php $this->beginBlock('main'); ?>
<p>
<?php echo $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
<?php echo $form->field($model, 'php_class')->dropDownList($model->optPhpClass()) ?>
<?php echo $form->field($model, 'json_schema')
->widget(\trntv\aceeditor\AceEditor::className(), ['mode' => 'json']) ?>
->widget(\trntv\aceeditor\AceEditor::className(), ['mode' => 'json', 'containerOptions' => ['style' => 'height: 800px;']]) ?>
<?php echo $form->field($model, 'twig_template')
->widget(\trntv\aceeditor\AceEditor::className(), ['mode' => 'twig']) ?>
->widget(\trntv\aceeditor\AceEditor::className(), ['mode' => 'twig', 'containerOptions' => ['style' => 'height: 800px;']]) ?>
</p>
<?php $this->endBlock(); ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment