Exemple #1
0
 public function getConditionText()
 {
     return Condition::getTextValue($this->condition);
 }
Exemple #2
0
        <?php 
echo $form->field($model, 'doc_links', ['options' => ['class' => '']])->textarea(['rows' => 1]);
?>
    </div>
    <div class="form-group col-md-4">
        <?php 
echo $form->field($model, 'category_id', ['options' => ['class' => '']])->dropDownList(Category::getList());
?>
        <?php 
echo $form->field($model, 'serial', ['options' => ['class' => '']])->textInput(['maxlength' => true]);
?>
        <?php 
/* = $form->field($model, 'status', ['options'=>['class'=>'']])->textInput() */
?>
        <?php 
echo $form->field($model, 'condition', ['options' => ['class' => '']])->dropDownList(Condition::getList());
?>
        <?php 
echo $form->field($model, 'provided_by', ['options' => ['class' => '']])->dropDownList($providers);
?>
        <?php 
/* = $form->field($model, 'fixed_by', ['options'=>['class'=>'']])->textInput(['maxlength' => true]) */
?>
    </div>
    <div class="form-group col-md-4">
        <?php 
echo $form->field($model, 'attached_to', ['options' => ['class' => '']])->dropDownList(Attachment::getList());
?>
        <?php 
echo $form->field($model, 'attached_to_unit', ['options' => ['class' => '']])->dropDownList($units);
?>