示例#1
0
 public static function stage()
 {
     $alias = static::getCategory('stage');
     $temp = Stage::getList();
     $origin = [];
     foreach ($temp as $id => $value) {
         $origin[$value] = $id;
     }
     return array_merge($origin, $alias);
 }
示例#2
0
    if (!empty($i->url)) {
        echo Html::a(' <i class="glyphicon glyphicon-camera"></i> ', $i->url, ['target' => '_blank']);
    }
    echo Html::activeHiddenInput($i, '[' . $i->id . ']url', ['id' => false, 'class' => 'photo']);
}
?>
            </div>
            <div class="col-md-1">
                <?php 
echo $form->field($sale, 'covered', ['template' => '{input}'])->textInput(['data-toggle' => 'tooltip', 'title' => $sale->getAttributeLabel('covered')]);
?>
            </div>
            <div class="col-md-1">
                <?php 
echo $form->field($sale, 'bedroom', ['template' => '{input}'])->textInput(['data-toggle' => 'tooltip', 'title' => $sale->getAttributeLabel('bedroom')]);
?>
            </div>
            <div class="col-md-2">
                <?php 
echo $form->field($sale, 'stage_ids', ['template' => '{input}'])->checkboxList(Stage::getList(), ['data-toggle' => 'tooltip', 'title' => $sale->getAttributeLabel('stage_ids')]);
?>
            </div>
        </div>

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

    </div>
</div>
示例#3
0
文件: _form.php 项目: dench/resistor
                            <?php 
echo $form->field($model, 'sold')->dropDownList($model->soldList);
?>
                            <?php 
echo $form->field($model, 'title')->dropDownList(Sale::getYesList(), ['prompt' => '']);
?>
                        </div>
                        <div class="col-md-4">
                            <?php 
echo $form->field($model, 'price')->widget(MaskedInput::className(), ['clientOptions' => ['alias' => 'decimal', 'groupSeparator' => '.', 'autoGroup' => true, 'rightAlign' => false], 'options' => ['maxlength' => 11, 'class' => 'form-control']]);
?>
                            <?php 
echo $form->field($model, 'vat')->dropDownList(Sale::getVatList(), ['prompt' => '']);
?>
                            <?php 
echo $form->field($model, 'stage_ids')->dropDownList(Stage::getList(), ['class' => 'form-control selectpicker', 'multiple' => 'multiple'])->label(Yii::t('app', 'Stage'));
?>
                            <?php 
echo $form->field($model, 'commission')->textInput(['maxlength' => true]);
?>
                            <?php 
echo $form->field($model, 'status')->dropDownList(Sale::getStatusList());
?>
                            <?php 
echo $form->field($model, 'top')->checkbox(['value' => 1]);
?>
                        </div>
                    </div>

                </div>
            </div>