Exemplo n.º 1
0
    echo $remain->warehouse->name;
    ?>
            </td>
            <td>
                <?php 
    echo Html::textInput('remain[' . $remain->id . '][in_warehouse]', $remain->in_warehouse, ['class' => 'warehouse-remain-input form-control', 'placeholder' => Yii::t('app', 'In warehouse')]);
    ?>
            </td>
            <td>
                <?php 
    echo Html::textInput('remain[' . $remain->id . '][reserved_count]', $remain->reserved_count, ['class' => 'warehouse-remain-input form-control', 'placeholder' => Yii::t('app', 'Reserved count')]);
    ?>
            </td>
            <td>
                <?php 
    echo Html::textInput('remain[' . $remain->id . '][sku]', $remain->sku, ['class' => 'warehouse-remain-input form-control', 'placeholder' => Yii::t('app', 'SKU')]);
    ?>
            </td>
        </tr>
    <?php 
}
?>
    </tbody>
</table>

<?php 
$this->beginBlock('warehousesWidget');
?>
        $('.warehouse-remain-input').change(function(){
            var formData = {},
                $this = $(this);
Exemplo n.º 2
0
    <div class="box box-primary direct-chat direct-chat-primary">
        <div class="box-header with-border">
            <h3 class="box-title">Simple Chat</h3>
        </div>
        <div class="box-body">
            <div class="direct-chat-messages" id="message-container">
					<!-- <div id="notification" ></div> -->
            </div>
        </div>
        <div class="box-footer">
            <?php 
echo Html::beginForm(['/widget/chat/send-chat'], 'POST', ['id' => 'chat-form']);
?>
            <div class="input-group">
               <?php 
echo Html::textInput('message', null, ['id' => 'message-field', 'class' => 'form-control', 'placeholder' => 'Message', 'required' => true]);
?>
                <span class="input-group-btn">
                    <?php 
echo Html::submitButton('Send', ['class' => 'btn btn-primary btn-flat']);
?>
                </span>
            </div>
        </div>
    </div>
</div>


<?php 
$this->beginBlock('template_you');
?>
Exemplo n.º 3
0
                     <?php 
             echo Html::encode($property->name);
             ?>
                 </div>
                     <?php 
             $minval = isset(Yii::$app->request->get("p", [])[$property->id]['min']) ? Yii::$app->request->get("p", [])[$property->id]['min'] : '';
             $maxval = isset(Yii::$app->request->get("p", [])[$property->id]['max']) ? Yii::$app->request->get("p", [])[$property->id]['max'] : '';
             ?>
                 <div class="input-group input-group-sm">
                     <?php 
             echo Html::textInput("p[{$property->id}][min]", $minval, ['class' => 'form-control', 'placeholder' => 'from', 'style' => 'margin-bottom:5px;']);
             ?>
                 </div>
                 <div class="input-group input-group-sm">
                     <?php 
             echo Html::textInput("p[{$property->id}][max]", $maxval, ['class' => 'form-control', 'placeholder' => 'to']);
             ?>
                 </div>
                 <?php 
         }
     }
     ?>
             </div>
         <?php 
 }
 ?>
     <?php 
 echo Html::endForm();
 ?>
 </div>
 <?php 
Exemplo n.º 4
0
<?php

use kartik\helpers\Html;
use yii\grid\GridView;
#use backend\models\Zstitel;
use yii\widgets\Pjax;
use app\components\XActionColumn;
$zs = [];
#new Zstitel;
Pjax::begin(['id' => 'docpicker-pjax']);
echo Html::panel(['heading' => 'Summary', 'headingTitle' => true, 'body' => GridView::widget(['dataProvider' => $model, 'filterModel' => $searchModel, 'tableOptions' => ['class' => 'table table-condensed table-bordered table-hover'], 'summary' => "<div class='summary'>{begin}-{end} von {totalCount} Dokumenten gefiltert</div>", 'pager' => ['options' => ['class' => 'pagination pagination-sm']], 'columns' => ['cb' => ['class' => 'yii\\grid\\CheckboxColumn', 'options' => ['style' => 'width:20px;'], 'multiple' => false], 'eye' => ['class' => 'app\\components\\XActionColumn', 'options' => ['style' => 'width:20px'], 'buttonOptions' => ['style' => 'color:green;'], 'template' => '{view}'], 'f' => ['label' => 'Dateiname', 'attribute' => 'filename', 'value' => 'filenamePlain', 'enableSorting' => true, 'filter' => Html::textInput('filename', Yii::$app->request->get('filename'), ['class' => 'form-control input-sm', 'placeholder' => '*Filter']), 'options' => ['style' => 'width:240px;']], 'titel' => ['label' => 'Titel', 'attribute' => 'metadata.TITEL', 'filter' => Html::textInput('titel', Yii::$app->request->get('titel'), ['class' => 'form-control input-sm', 'placeholder' => '*Filter']), 'enableSorting' => true], 'groups' => ['label' => 'Gruppe/n', 'attribute' => 'groupstr', 'filter' => Html::dropDownList('group', Yii::$app->request->get('group'), app\models\Documents::getAllgroups(), ['class' => 'form-control input-sm', 'prompt' => '- Filter -']), 'enableSorting' => true, 'options' => ['style' => 'width:110px;']], 'status' => ['label' => 'akt. Status', 'attribute' => 'onlineStatus', 'value' => 'onlineStatus_str', 'options' => ['style' => 'width:80px;'], 'filter' => Html::dropDownList('onlineStatus', Yii::$app->request->get('onlineStatus'), ['true' => 'Online', 'false' => 'Offline'], ['class' => 'form-control input-sm', 'prompt' => '- Filter -']), 'contentOptions' => ['style' => 'text-align:center;'], 'enableSorting' => true, 'format' => 'raw'], ['class' => 'yii\\grid\\ActionColumn', 'content' => 'foo', 'template' => '{edit}&nbsp;{delete}', 'filterOptions' => ['style' => 'text-align:right;'], 'contentOptions' => ['style' => 'text-align:right;width:40px;'], 'buttons' => ['edit' => function ($url, $model, $key) {
    return Html::a("<i class='fa fa-pencil'></i>", $url, ['data-class' => 'edit']);
}]]]]), 'footer' => '<small><i>* mit Tabulator/Enter Taste Filter bestätigen</i></small>'], 'default', ['style' => 'font-size:12px;', 'id' => 'docpicker']);
Pjax::end();
//
// Verkleinern der Filterfelder und ausblenden der Summary ---------------------
$css = <<<CSS
#docpicker .input-sm{
\theight: 23px;\t
}
#docpicker select.input-sm{
\theight: 23px;
\tpadding: 3px 3px;\t
}
.summary{
\tdisplay:none;\t
}
#docpicker table thead tr,
#docpicker table thead th{
\tborder:0px;
}
<?php

use kartik\helpers\Html;
echo Html::textInput('fields[2426ced136024a631a2a0672a269b700]', '', ['class' => 'form-control', 'placeholder' => Yii::t('frontend', 'Vul hier je e-mailadres in'), 'addon' => ['append' => ['content' => Html::button(Yii::t('frontend', 'Verzenden'), ['class' => 'btn btn-primary']), 'asButton' => true]]]);
?>

<?php 
echo Html::submitButton('Verzenden', ['class' => 'btn btn-primary']);
?>

<?php 
/*
<div class="form-group">
    <label class="control-label" for="name"><?= Yii::t('frontend', 'Naam') ?></label>
    <?= Html::textInput('fields[1a2f3e3b4cebe60c0e9659520e7e121a]', '', [
        'class' => 'form-control',
        'placeholder' => Yii::t('frontend', 'Naam'),
        'id' => 'name',
    ]); ?>
</div>
<div class="form-group">
    <label class="control-label" for="email"><?= Yii::t('frontend', 'E-mail') ?></label>
    <?= Html::textInput('fields[2426ced136024a631a2a0672a269b700]', '', [
        'class' => 'form-control',
        'placeholder' => Yii::t('frontend', 'E-mail'),
        'id' => 'email',
    ]); ?>
</div>
*/
?>