Beispiel #1
0
echo $form->field($release, 'date')->widget(MaskedInput::className(), ['mask' => '9999[-99-99]', 'clientOptions' => ['placeholder' => 'yyyy-mm-dd']]);
?>

        <?php 
if (!$release->type) {
    $release->type = $release::TYPE_ALBUM;
}
echo $form->field($release, 'type')->dropDownList($release::getTypesMap());
?>

        <?php 
echo $form->field($release, 'info')->textarea(['rows' => 3]);
?>

        <?php 
echo TagsWidget::widget(['id' => 'release-tags', 'name' => 'Release[tags]']);
?>
    </div>

    <div id="tracks">
        <?php 
foreach ($tracks as $index => $track) {
    echo "<div id='track-{$index}' class='track-block form-group'>";
    echoTrack($form, $track, $index);
    echo '</div>';
}
?>
    </div>

    <div class="form-group">
        <span class="btn btn-primary fileinput-button default-button">
Beispiel #2
0
GalleryWidget::printHiddenFields($photos);
?>

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

            <?php 
echo $form->field($model, 'latin_name')->textInput(['maxlength' => true]);
?>

            <div class="form-group">
                <label class="control-label" for="artist-tags">Tags</label>
                <?php 
echo TagsWidget::widget(['id' => 'artist-tags', 'name' => 'Artist[tags]', 'placeholder' => '']);
?>
            </div>
        </div>
    </div>

    <div class="form-group">
        <?php 
echo Html::submitButton('Create', ['class' => 'btn btn-success default-button']);
?>
    </div>

    <?php 
ActiveForm::end();
?>
Beispiel #3
0
        <div class="col-md-11">
            <?php 
echo Html::input('text', 'name', null, ['class' => 'form-control full-width', 'placeholder' => 'Artist Name']);
?>
        </div>
        <div class="col-md-1" style="padding-left:0">
            <?php 
echo Html::submitButton('Search', ['class' => 'btn btn btn-primary full-width', 'style' => 'width: 100%']);
?>
        </div>
    </div>

    <div class="row" style="margin-top:4px;">
        <div class="col-md-11">
            <?php 
echo TagsWidget::widget(['id' => 'tags', 'name' => 'tags']);
?>
        </div>
        <div class="col-md-1 text-center" style="padding-left:0; padding-top:2px;">
            <?php 
echo \dosamigos\switchinput\SwitchBox::widget(['name' => 'tags_mode', 'checked' => true, 'clientOptions' => ['size' => 'small', 'offColor' => 'success', 'onText' => 'All', 'offText' => 'Any']]);
?>
        </div>
    </div>
    <?php 
echo Html::endForm();
?>

    <div style="margin-top: 10px;">
        <?php 
echo ListView::widget(['dataProvider' => $dataProvider, 'itemView' => '_artist']);