Exemplo n.º 1
0
/* @var $model common\models\Asset */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="asset-form">
    <?php 
$mediaupload = MediaUpload::widget(['options' => ['addRemoveLinks' => true]]);
$embedupload = EmbedUpload::widget();
Row::begin();
Column::begin(['grid' => [['type' => Column::TYPE_DESKTOP, 'size' => Column::SIZE_FULL]]]);
echo ButtonGroup::widget(['buttons' => [Button::widget(['label' => 'Media Upload', 'options' => ['class' => 'btn-primary btn-lg col-xs-6 col-sm-6 col-md-6 col-lg-6', 'data-toggle' => "collapse", 'data-target' => '#media-upload', 'data-parent' => "#media-upload-wrapper"]]), Button::widget(['label' => 'Embed Media Upload', 'options' => ['class' => 'btn-info btn-lg col-xs-6 col-sm-6 col-md-6 col-lg-6', 'data-toggle' => "collapse", 'data-target' => '#embed-upload', 'data-parent' => "#media-upload-wrapper"]])], 'options' => ['class' => 'col-md-12']]);
Column::end();
Row::end();
Row::begin();
Column::begin(['grid' => [['type' => Column::TYPE_DESKTOP, 'size' => Column::SIZE_FULL]]]);
echo Collapse::widget(['box' => false, 'header' => false, 'options' => ['id' => 'media-upload-wrapper'], 'items' => [['content' => $mediaupload, 'contentOptions' => ['id' => 'media-upload']], ['content' => $embedupload, 'contentOptions' => ['id' => 'embed-upload']]]]);
Column::end();
Row::end();
/*
    echo MediaUpload::widget([
        'options' => [
            'addRemoveLinks' => true,
        ]
    ]);
    //*/
?>
    <?php 
/*/?>
    
    <?php $form = ActiveForm::begin(); ?>
Exemplo n.º 2
0
    }
    
    $mobile_form = '';
    if(is_array($model->venueMap) && count($model->venueMap)){
        foreach($model->venueMap as $mapmodel){
            $mobile_form .= $form->field($mapmodel->venueMap, 'mobile')->textInput(['maxlength' => 255,'name'=>$model->formName().'[mobile][]']);
        }
    }else{
       $mobile_form = $form->field($map, 'mobile')->textInput(['maxlength' => 255,'name'=>$model->formName().'[mobile][]']);
    }
    //*/
//echo "<pre>";
//
//
// var_dump($model);
echo Collapse::widget(['box' => true, 'items' => ['Basic Details' => ['content' => implode("\n", [$form->field($model, 'venueType')->dropDownList(ArrayHelper::merge(['' => 'Select'], ArrayHelper::map(\common\models\VenueType::find()->andWhere(['status' => 1])->All(), 'Id', 'name'))), $form->field($model, 'name')->textInput(['maxlength' => 255])]), 'contentOptions' => ['class' => 'in'], 'options' => ['class' => 'box-primary']], 'Contact Details' => ['content' => implode("\n", [$form->field($model, 'contactName')->textInput(['maxlength' => 255]), $form->field($model, 'email')->textInput(['maxlength' => 255]), is_array($model->venueMap) && count($model->venueMap) ? $form->field($model->venueMap[0], 'phone', ['selectors' => ['input' => '.multiphone']])->widget(DynamicField::className(), ['name' => $model->formName() . '[phone][]', 'options' => ['class' => 'multiphone', 'model' => $map, 'models' => $model->venueMap]]) : $form->field($map, 'phone', ['selectors' => ['input' => '.multiphone']])->widget(DynamicField::className(), ['name' => $model->formName() . '[phone][]', 'options' => ['class' => 'multiphone']]), is_array($model->venueMap) && count($model->venueMap) ? $form->field($model->venueMap[0], 'mobile', ['selectors' => ['input' => '.multimobile']])->widget(DynamicField::className(), ['name' => $model->formName() . '[mobile][]', 'options' => ['class' => 'multimobile', 'model' => $map, 'models' => $model->venueMap]]) : $form->field($map, 'mobile', ['selectors' => ['input' => '.multimobile']])->widget(DynamicField::className(), ['name' => $model->formName() . '[mobile][]', 'options' => ['class' => 'multimobile']]), $form->field($model, 'tollfree')->textInput(['maxlength' => 15])]), 'options' => ['class' => 'box-success']], 'Location Details' => ['content' => implode("\n", [$form->field($model, 'cityId')->dropDownList(ArrayHelper::merge(['' => 'Select'], ArrayHelper::map(\common\models\City::find()->andWhere(['status' => 1])->All(), 'Id', 'name'))), $form->field($model, 'zoneId')->widget(DepDrop::classname(), ['options' => ['id' => strtolower($model->formName()) . '-zoneid'], 'data' => ArrayHelper::merge(['' => 'Select'], ArrayHelper::map(\common\models\Zone::find()->andWhere(['status' => 1, 'cityId' => $model->cityId])->All(), 'Id', 'name')), 'type' => DepDrop::TYPE_SELECT2, 'pluginOptions' => ['depends' => [strtolower($model->formName()) . '-cityid'], 'placeholder' => 'Select Zone', 'url' => Url::to(['/zone/zone/autosuggest'])]]), $form->field($model, 'localityId')->widget(DepDrop::classname(), ['options' => ['id' => 'venue-localityid'], 'data' => ArrayHelper::merge(['' => 'Select'], ArrayHelper::map(\common\models\Locality::find()->andWhere(['status' => 1, 'cityId' => $model->cityId])->All(), 'Id', 'name')), 'type' => DepDrop::TYPE_SELECT2, 'pluginOptions' => ['depends' => [strtolower($model->formName()) . '-cityid', strtolower($model->formName()) . '-zoneid'], 'placeholder' => 'Select Locality', 'url' => Url::to(['/locality/locality/autosuggest'])]]), $form->field($model, 'address')->textInput(['maxlength' => 255]), $form->field($model, 'landmark')->textInput(['maxlength' => 255]), $form->field($model, 'gpsLat')->textInput(), $form->field($model, 'gpsLong')->textInput()]), 'options' => ['class' => 'box-danger']], 'More Details' => ['content' => implode("\n", [$form->field($model, 'description')->textarea(['rows' => 6]), $form->field($model, 'facility')->listBox(ArrayHelper::merge([0 => 'Select'], ArrayHelper::map(\common\models\Features::find()->andWhere(['status' => 1, 'flag' => 1])->All(), 'Id', 'name')), ['id' => 'facility', 'multiple' => 'multiple']), $form->field($model, 'url')->textInput(['maxlength' => 100, 'placeholder' => 'Type a valid url ex: http://timescity.com']), $form->field($model, 'facebookUrl')->textInput(['maxlength' => 100, 'placeholder' => 'Type a valid url ex: http://facebook.com']), $form->field($model, 'seatType')->textInput(['maxlength' => 100]), $form->field($model, 'capacity')->textInput(), $form->field($model, 'reservationInfo')->textInput(['maxlength' => 100]), $form->field($model, 'startTime')->textInput(), $form->field($model, 'endTime')->textInput(), $model->multipleFormField('tag', $model->getTagData())]), 'options' => ['class' => 'box-info']], 'Images' => ['content' => MediaUpload::widget(['data' => $model->media['images'], 'previewurl' => yii::$app->params['imagepreviewurl'], 'path' => 'venue', 'options' => ['addRemoveLinks' => true, 'inputparam' => $model->formName() . '[media][]']]), 'options' => ['class' => 'box-info']]]]);
echo WorkflowButtons::widget(['view' => $this, 'model' => $model]);
Column::end();
Row::end();
?>

    <?php 
/*/?>
    <?= $form->field($model, 'name')->textInput(['maxlength' => 255]) ?>

    <?= $form->field($model, 'cityId')->textInput() ?>

    <?= $form->field($model, 'zoneId')->textInput() ?>

    <?= $form->field($model, 'localityId')->textInput() ?>
Exemplo n.º 3
0
Box::begin(['type' => Box::TYPE_SOLID, 'header' => 'Progress bars', 'bodytoption' => ['class' => 'text-center']]);
echo '<p>By adding the class <code>.vertical</code> we achieve:</p>';
echo Progress::widget(['orientation' => Progress::VERTICLE, 'barOptions' => ['class' => 'progress-bar-green'], 'percent' => 40]);
echo Progress::widget(['orientation' => Progress::VERTICLE, 'barOptions' => ['class' => 'progress-bar-aqua'], 'percent' => 20]);
echo Progress::widget(['orientation' => Progress::VERTICLE, 'barOptions' => ['class' => 'progress-bar-yellow'], 'percent' => 60]);
echo Progress::widget(['orientation' => Progress::VERTICLE, 'barOptions' => ['class' => 'progress-bar-red'], 'percent' => 80]);
Box::end();
Column::end();
Row::end();
PageHeader::begin();
echo 'Bootstrap Accordion & Carousel';
PageHeader::end();
Row::begin();
Column::begin(['grid' => [['type' => Column::TYPE_DESKTOP, 'size' => Column::SIZE_HALF]]]);
Box::begin(['type' => Box::TYPE_SOLID, 'header' => 'Collapsible Accordion']);
echo Collapse::widget(['items' => ['Collapsible Group Item #1' => ['content' => 'Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven\'t heard of them accusamus labore sustainable VHS.', 'contentOptions' => ['class' => 'in'], 'options' => ['class' => 'box-primary']], 'Collapsible Group Danger' => ['content' => 'Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven\'t heard of them accusamus labore sustainable VHS.', 'contentOptions' => [], 'options' => ['class' => 'box-danger']], 'Collapsible Group Success' => ['content' => 'Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven\'t heard of them accusamus labore sustainable VHS.', 'contentOptions' => [], 'options' => ['class' => 'box-success']]]]);
Box::end();
Column::end();
Column::begin(['grid' => [['type' => Column::TYPE_DESKTOP, 'size' => Column::SIZE_HALF]]]);
Box::begin(['type' => Box::TYPE_SOLID, 'header' => 'Carousel']);
echo Carousel::widget(['items' => [['content' => '<img src="http://placehold.it/900x500/39CCCC/ffffff&text=I+Love+Bootstrap"/>', 'caption' => 'First Slide'], ['content' => '<img src="http://placehold.it/900x500/3c8dbc/ffffff&text=I+Love+Bootstrap"/>', 'caption' => 'Second Slide'], ['content' => '<img src="http://placehold.it/900x500/f39c12/ffffff&text=I+Love+Bootstrap"/>', 'caption' => 'Third Slide']]]);
Box::end();
Column::end();
Row::end();
?>


                    <!-- START TYPOGRAPHY -->
                    <h2 class="page-header">Typography</h2>
                    <div class="row">
                        <div class="col-md-6">