Повторяющиеся задачи
This commit is contained in:
@@ -8,29 +8,29 @@ use yii\widgets\ActiveForm;
|
||||
/* @var $form yii\widgets\ActiveForm */
|
||||
?>
|
||||
|
||||
<div class="mole-form">
|
||||
<?php $form = ActiveForm::begin(); ?>
|
||||
|
||||
<?php $form = ActiveForm::begin(['options' => ['class' => "form-horizontal"]]); ?>
|
||||
<?php $template = '{label}<div class="col-sm-10">{input}<span class="help-block m-b-none">{error}</span></div>'; ?>
|
||||
<?= $form->field($model, 'project'); ?>
|
||||
|
||||
<?= $form->field($model, 'project', ['template' => $template, 'labelOptions' => ['class' => 'col-sm-2 control-label']]); ?>
|
||||
<?= $form->field($model, 'name'); ?>
|
||||
|
||||
<?= $form->field($model, 'name', ['template' => $template, 'labelOptions' => ['class' => 'col-sm-2 control-label']]); ?>
|
||||
<?= $form->field($model, 'dateAdd'); ?>
|
||||
<?= $form->field($model, 'dateStart'); ?>
|
||||
<?= $form->field($model, 'dateEnd'); ?>
|
||||
|
||||
<?= $form->field($model, 'dateAdd', ['template' => $template, 'labelOptions' => ['class' => 'col-sm-2 control-label']]); ?>
|
||||
<?= $form->field($model, 'dateStart', ['template' => $template, 'labelOptions' => ['class' => 'col-sm-2 control-label']]); ?>
|
||||
<?= $form->field($model, 'dateEnd', ['template' => $template, 'labelOptions' => ['class' => 'col-sm-2 control-label']]); ?>
|
||||
<?= $form->field($model, 'module'); ?>
|
||||
|
||||
<?= $form->field($model, 'module', ['template' => $template, 'labelOptions' => ['class' => 'col-sm-2 control-label']]); ?>
|
||||
<?= $form->field($model, 'controller'); ?>
|
||||
<?= $form->field($model, 'params'); ?>
|
||||
<?= $form->field($model, 'period'); ?>
|
||||
|
||||
<?= $form->field($model, 'controller', ['template' => $template, 'labelOptions' => ['class' => 'col-sm-2 control-label']]); ?>
|
||||
<?= $form->field($model, 'params', ['template' => $template, 'labelOptions' => ['class' => 'col-sm-2 control-label']]); ?>
|
||||
<div class="form-group">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-12 col-sm-offset-2">
|
||||
<?= Html::submitButton(Yii::t('mole', 'Save'), ['class' => 'btn btn-success']) ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
</div>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
|
||||
|
||||
|
@@ -68,6 +68,13 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
// 'filter' => [0 => Yii::t('mole', 'No'), 1 => Yii::t('mole', 'Yes')]
|
||||
],
|
||||
'priority',
|
||||
[
|
||||
'attribute' => 'period',
|
||||
'value' => function($model)
|
||||
{
|
||||
return $model->period > 0 ? $model->period : Yii::t('mole', 'No');
|
||||
},
|
||||
],
|
||||
//'childsTotalCount',
|
||||
//'childsCompleted',
|
||||
// 'status',
|
||||
|
@@ -70,6 +70,13 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
],
|
||||
'priority',
|
||||
'status',
|
||||
[
|
||||
'attribute' => 'period',
|
||||
'value' => function($model)
|
||||
{
|
||||
return $model->period > 0 ? $model->period : Yii::t('mole', 'No');
|
||||
},
|
||||
],
|
||||
],
|
||||
])
|
||||
?>
|
||||
|
Reference in New Issue
Block a user