コード例 #1
0
                    <div class="form-group" style="position:relative">
                        <label for="exampleInputName2" class="w80">Start</label>

                        <?php 
echo TimePicker::widget(['model' => $model, 'name' => 'Sda[presentation_start_time]', 'value' => $model->presentationStartTimeFormatted, 'pluginOptions' => ['showMeridian' => true, 'defaultTime' => false, 'showSeconds' => false, 'class' => 'form-control input']]);
?>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="form-group" style="position:relative">

                        <label for="exampleInputName2" class="w80">End</label>


                        <?php 
echo TimePicker::widget(['model' => $model, 'name' => 'Sda[presentation_end_time]', 'value' => $model->presentationEndTimeFormatted, 'pluginOptions' => ['showMeridian' => true, 'defaultTime' => false, 'showSeconds' => false, 'class' => 'form-control input']]);
?>

                    </div>
                </div>


            </div>
        </div>

        <div class="row">




コード例 #2
0
                <div class="col-xs-6 col-sm-4 p5" style="height:100px;">
                    <div class="ml20" style="float: left;width:45%">
                        <div class="f18">Start Time</div>
                        <div class="mt10" id="ab" style="position:relative;">
                            <?php 
echo TimePicker::widget(['model' => $model, 'name' => 'MeetingDetails[start_time]', 'value' => date('g:i a', strtotime($model->start_time)), 'pluginOptions' => ['showMeridian' => true, 'showSeconds' => false], 'disabled' => true]);
?>
   
                        </div>
                    </div>
                    <div class="ml20" style="float: left;width:45%">
                        <div class="f18">End Time</div>
                        <div class="mt10" id="ab" style="position:relative;">
                            <?php 
echo TimePicker::widget(['model' => $model, 'name' => 'MeetingDetails[stop_time]', 'value' => date('g:i a', strtotime($model->stop_time)), 'pluginOptions' => ['showMeridian' => true, 'showSeconds' => false], 'disabled' => true]);
?>
                        </div>
                    </div>
                </div>

                <div class="col-xs-6 col-sm-4 p5" style="height:100px">
                    <div class="ml20">
                        <?php 
echo $form->field($model, 'location', array('labelOptions' => array('class' => 'f18')))->textInput(['maxlength' => 300])->textInput(['class' => 'form-control intp', 'readonly' => true]);
?>
                    </div>
                </div>
                <div class="col-xs-6 col-sm-4 p5" style="height:100px">
                    <div class="ml20">
                        <?php 
コード例 #3
0
                <div class="col-xs-6 col-sm-4 p5">
                    <div class="ml20" style="float: left;width:45%">
                        <div class="f18">Start Time</div>
                        <div class="mt10" id="ab" style="position:relative;">
                            <?php 
echo TimePicker::widget(['model' => $model, 'name' => 'Booths[from_time]', 'value' => $model->fromTimeFormatted, 'pluginOptions' => ['showMeridian' => true, 'showSeconds' => false]]);
?>
   
                        </div>
                    </div>
                    <div class="ml20" style="float: left;width:45%">
                        <div class="f18">End Time</div>
                        <div class="mt10" id="ab" style="position:relative;">
                            <?php 
echo TimePicker::widget(['model' => $model, 'name' => 'Booths[to_time]', 'value' => $model->toTimeFormatted, 'pluginOptions' => ['showMeridian' => true, 'showSeconds' => false]]);
?>
                        </div>
                    </div>

                </div>      

                <div class="col-xs-6 col-sm-4 p5">
                    <div class="ml20">     

                        <?php 
echo $form->field($model, 'Area', array('labelOptions' => array('class' => 'f18')))->textInput(['class' => 'form-control input']);
?>

                    </div>
                </div>
コード例 #4
0
                </div>
                <div class="col-xs-6 col-sm-4 p5" style="height:auto;">
                    <div class="ml20" style="float: left;width:45%">
                        <div class="f18">Start Time</div>
                        <div class="mt10" id="ab" style="position:relative;">
                            <?php 
echo TimePicker::widget(['model' => $model, 'name' => 'MeetingDetails[start_time]', 'value' => $model->startTimeFormatted, 'pluginOptions' => ['showMeridian' => true, 'showSeconds' => false]]);
?>
   
                        </div>
                    </div>
                    <div class="ml20" style="float: left;width:45%">
                        <div class="f18">End Time</div>
                        <div class="mt10" id="ab" style="position:relative;">
                            <?php 
echo TimePicker::widget(['model' => $model, 'name' => 'MeetingDetails[stop_time]', 'value' => $model->stopTimeFormatted, 'pluginOptions' => ['showMeridian' => true, 'showSeconds' => false]]);
?>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6 col-sm-4 p5" style="height:100px">
                    <div class="ml20">
                        <?php 
echo $form->field($model, 'location', array('labelOptions' => array('class' => 'f18')))->textInput(['maxlength' => 300])->textInput(['class' => 'form-control intp']);
?>
                    </div>
                </div>
                <div class="col-xs-6 col-sm-4 p5" style="height:100px">
                    <div class="ml20">
                        <?php 
echo $form->field($model, 'event_type', array('labelOptions' => array('class' => 'f18')))->dropDownList(ArrayHelper::map(backend\models\MeetingTypes::find()->asArray()->all(), 'id', 'type'), ['class' => 'form-control intp']);
コード例 #5
0
ファイル: _form.php プロジェクト: jwerd/classcrasher
    </div>

    <div class="form-group field-classes-date">
    <label class="control-label" for="classes-start-time">Start Time</label>

    <?php 
// Manipulate display of seconds, meridian (12h/24h), and the time increment steps
echo TimePicker::widget(['model' => $model, 'attribute' => 'start_time', 'pluginOptions' => ['showSeconds' => false, 'showMeridian' => false, 'minuteStep' => 30, 'secondStep' => 5]]);
?>
    </div>

    <div class="form-group field-classes-date">
    <label class="control-label" for="classes-end-time">End Time</label>
    <?php 
// Manipulate display of seconds, meridian (12h/24h), and the time increment steps
echo TimePicker::widget(['model' => $model, 'attribute' => 'end_time', 'pluginOptions' => ['showSeconds' => false, 'showMeridian' => false, 'minuteStep' => 30, 'secondStep' => 5]]);
?>
    </div>

    <?php 
echo $form->field($model, 'duration')->textInput();
?>

    <?php 
echo $form->field($model, 'description')->textarea(['rows' => 6, 'placeholder' => 'The details about the class go here...']);
?>

    <?php 
echo $form->field($model, 'price')->textInput(['placeholder' => '0']);
?>
コード例 #6
0
ファイル: test.php プロジェクト: wqcsimple/wwhis-weixin
/**
 * Created by PhpStorm.
 * User: dev
 * Date: 11/18/15
 * Time: 13:53
 */
use yii\widgets\ActiveForm;
use yii\helpers\Html;
use unclead\widgets\MultipleInput;
use unclead\widgets\MultipleInputColumn;
use kartik\date\DatePicker;
use kartik\select2\Select2;
use kartik\growl\Growl;
echo DatePicker::widget(['name' => 'check_issue_date', 'value' => date('d-M-Y', strtotime('+2 days')), 'options' => ['placeholder' => 'Select issue date ...'], 'pluginOptions' => ['format' => 'dd-M-yyyy', 'todayHighlight' => true]]);
echo \kartik\time\TimePicker::widget(['name' => 'start_time', 'value' => '11:24', 'pluginOptions' => ['showSeconds' => false, 'showMeridian' => false]]);
echo \kartik\rating\StarRating::widget(['name' => 'rating_1', 'pluginOptions' => ['disabled' => false, 'showClear' => true]]);
?>



<?php 
$form = ActiveForm::begin([]);
?>

<h3>Single column</h3>
<?php 
echo $form->field($model, 'emails')->widget(\unclead\widgets\MultipleInput::className(), ['limit' => 6, 'allowEmptyList' => false, 'enableGuessTitle' => true, 'min' => 2, 'addButtonPosition' => \unclead\widgets\MultipleInput::POS_HEADER])->label(false);
//echo $form->field($model, 'list')->widget(Select2::classname(), [
//    'data' => \app\models\TestModel::getTestDataList(),
//    'language' => 'de',
コード例 #7
0
ファイル: _form.php プロジェクト: andripratama/trip-system
			</div>

		</div>
		<div class="col-md-6">
			<div class="row">
				<div class="col-md-6 offset-2">
					<?php 
echo '<label class="control-label">Tanggal Berakhir</label>';
echo DatePicker::widget(['model' => $model, 'attribute' => 'end_date', 'size' => 'md', 'pluginOptions' => ['startDate' => date('d-m-Y h:i:s'), 'autoclose' => true, 'format' => 'dd/mm/yyyy']]);
?>

				</div>
				<div class="col-md-4">
          <?php 
echo '<label>Waktu Berakhir</label>';
echo TimePicker::widget(['model' => $model, 'attribute' => 'end_time', 'value' => '', 'pluginOptions' => ['showSeconds' => true, 'defaultTime' => false]]);
?>
				</div>
			</div>
		</div>
	</div>

  <div class="row">
		<div class="col-md-12">
			<?php 
echo $form->field($model, 'location')->textInput(['maxlength' => true]);
?>
		</div>
	</div>

	<div class="row">