Ejemplo n.º 1
0
?>
                       </div>                    
              	      <div class="da-form-row">
            		    <?php 
echo $form->field($model, 'sort_num', ['template' => $template2, 'options' => ['class' => 'da-form-col-6 alpha']])->textInput();
?>
            		    <?php 
echo $form->field($model, 'template', ['template' => $template2, 'options' => ['class' => 'da-form-col-6 omega']])->textInput(['maxlength' => 64]);
?>
                      </div>           	      
            	      <div class="da-form-row">
            		    <?php 
echo $form->field($model, 'recommend', ['template' => $template2, 'options' => ['class' => 'da-form-col-4 alpha']])->dropDownList(Constants::getRecommendItems());
?>
            		    <?php 
echo $form->field($model, 'headline', ['template' => $template2, 'options' => ['class' => 'da-form-col-4']])->dropDownList(Constants::getHeadlineItems());
?>
            		    <?php 
echo $form->field($model, 'sticky', ['template' => $template2, 'options' => ['class' => 'da-form-col-4 omega']])->dropDownList(Constants::getStickyItems());
?>
                      </div>
                                               
            	       <div class="da-form-row">       
            			<?php 
echo $form->field($model, 'status', ['template' => $template2, 'options' => ['class' => 'da-form-col-4 alpha']])->dropDownList(Constants::getStatusItemsForContent(), [], false);
?>
            			<?php 
echo $form->field($model, 'visibility', ['template' => $template2, 'options' => ['class' => 'da-form-col-4']])->dropDownList(Constants::getVisibilityItems(), [], false);
?>
            			<?php 
echo $form->field($model, 'allow_comment', ['template' => $template2, 'options' => ['class' => 'da-form-col-4 omega']])->dropDownList(Constants::getYesNoItems(), [], false);
Ejemplo n.º 2
0
            </div>

            <div class="da-panel-content">

                <div class="da-form-row da-form-block">
                    <?php 
echo $form->field($model, 'taxonomy_id', ['options' => ['class' => 'da-form-col-12-12'], 'size' => 'large'])->dropDownList($options);
?>
                </div>

                <div class="da-form-row da-form-block">
                    <?php 
echo $form->field($model, 'recommend', ['options' => ['class' => 'da-form-col-4-12 alpha'], 'size' => 'large'])->dropDownList(Constants::getRecommendItems());
?>
                    <?php 
echo $form->field($model, 'headline', ['options' => ['class' => 'da-form-col-4-12'], 'size' => 'large'])->dropDownList(Constants::getHeadlineItems());
?>
                    <?php 
echo $form->field($model, 'sticky', ['options' => ['class' => 'da-form-col-4-12 omega'], 'size' => 'large'])->dropDownList(Constants::getStickyItems());
?>
                </div>

                <div class="da-form-row da-form-block">
                    <?php 
echo $form->field($model, 'status', ['options' => ['class' => 'da-form-col-4-12 alpha'], 'size' => 'large'])->dropDownList(Constants::getStatusItemsForContent(), [], false);
?>
                    <?php 
echo $form->field($model, 'visibility', ['options' => ['class' => 'da-form-col-4-12'], 'size' => 'large'])->dropDownList(Constants::getVisibilityItems(), [], false);
?>
                    <?php 
echo $form->field($model, 'allow_comment', ['options' => ['class' => 'da-form-col-4-12 omega'], 'size' => 'large'])->dropDownList(Constants::getYesNoItems(), [], false);