<?php echo $form->field($model, 'name'); ?> <?php echo $form->field($model, 'description')->textarea(); ?> <?php echo $form->field($model, 'is_published')->checkbox(); ?> </div> <div class="form-group"> <div class="col-lg-12"> <?php echo \app\helpers\Html::submitButton('Zapisz', ['class' => 'btn btn-primary']); ?> <?php if ($id > 0) { ?> <?php echo \app\helpers\Html::a('Dodaj zdjęcia', ['/photo/admin/photo/add', 'album_id' => $id], ['class' => 'btn btn-default']); ?> <?php echo \app\helpers\Html::a('Przeglądaj zdjęcia', ['/photo/admin/photo/list', 'album_id' => $id], ['class' => 'btn btn-default']); ?> <?php } ?> </div> </div>
?> <?php echo $form->field($model, 'inn')->widget(MaskedInput::className(), ['mask' => '999999999999']); ?> </div> </div> <?php } ?> <div class="row"> <div class="col-md-10 col-md-offset-1"> <div class="row form-buttons"> <div class="col-md-4 col-md-offset-2"> <?php echo Html::submitButton('Записаться', ['class' => 'btn btn-primary btn-block']); ?> </div> <div class="col-md-4"> <?php echo Html::returningA('Отменить', ['class' => 'btn btn-default btn-block']); ?> </div> </div> </div> </div> <?php ActiveForm::end();
?> <div class="fields-group-heading"> <h3>Роли пользователя в системе</h3> </div> <?php echo $form->field($model, 'roli')->widget(Select2::classname(), ['data' => Rol::names(), 'options' => ['multiple' => true, 'placeholder' => 'Выберите роль ...']]); ?> </div> </div> <div class="row"> <div class="col-md-10 col-md-offset-1"> <div class="fields-group-heading"></div> <div class="row"> <div class="col-md-6 col-md-offset-3"> <?php echo Html::submitButton('Зарегистрировать', ['class' => 'btn btn-primary btn-block']); ?> </div> </div> </div> </div> <?php ActiveForm::end();
</div> <div class="form-group"> <label class="control-label col-sm-3" for="dolzhnostmodel-name">Выбранные должности</label> <div class="col-sm-6"> <?php echo Html::ul(ArrayHelper::getColumn($model->getDolzhnosti(), 'nazvanie')); ?> </div> </div> <?php foreach ($model->ids as $key => $id) { echo Html::activeHiddenInput($model, "ids[{$key}]"); } ?> <?php echo $form->field($model, 'name'); ?> <div class="row"> <div class="col-sm-offset-3"> <?php echo Html::submitButton($actionCaption, ['class' => 'btn btn-primary']); ?> </div> </div> <?php ActiveForm::end();