public function run()
 {
     parent::run();
     $model = new \app\models\ProjectSimpleForm();
     $form = ActiveForm::begin(['id' => 'project-simple-form', 'action' => ['/project/simplecreate'], 'layout' => 'inline', 'validateOnChange' => false, 'validateOnBlur' => false]);
     echo $form->field($model, 'title')->textInput(['maxlength' => 255, 'class' => 'form-control input-sm'])->label(false);
     echo '<div class="form-group">' . Html::submitButton(Yii::t('app', 'Create'), ['class' => 'btn btn-sm btn-success', 'style' => 'margin: 5px 5px 5px 0;']) . Html::resetButton(Yii::t('app', 'Cancel'), ['class' => 'btn btn-xs', 'style' => 'margin: 5px;']) . '</div>';
     ActiveForm::end();
     $this->registerJs();
 }
 /**
  * @param array $config
  * @return string
  */
 public static function generate($config = [])
 {
     $reservedAttributeNames = ['plainHTML'];
     ob_start();
     $form = ActiveForm::begin($config['formConfig']);
     foreach ($config['fields'] as $attribute => $fieldConfig) {
         if (in_array($attribute, $reservedAttributeNames)) {
             echo $fieldConfig;
         } else {
             if (isset($fieldConfig['render'])) {
                 $render = $fieldConfig['render'];
                 switch ($render['type']) {
                     case 'inline':
                         $method = $render['method'];
                         $options = isset($render['options']) ? $render['options'] : [];
                         echo $form->field($fieldConfig['model'], $attribute, isset($fieldConfig['options']) ? $fieldConfig['options'] : [])->{$method}($options);
                         break;
                     case 'widget':
                         $class = $render['class'];
                         $options = isset($render['options']) ? $render['options'] : [];
                         echo $form->field($fieldConfig['model'], $attribute, isset($fieldConfig['options']) ? $fieldConfig['options'] : [])->widget($class, $options);
                         break;
                 }
             } else {
                 echo $form->field($fieldConfig['model'], $attribute, isset($fieldConfig['options']) ? $fieldConfig['options'] : []);
             }
         }
     }
     ActiveForm::end();
     $result = ob_get_contents();
     ob_end_clean();
     return $result;
 }
 /**
  * @inheritdoc
  */
 public function run()
 {
     $form = ActiveForm::begin();
     echo $form->errorSummary($this->commentModel);
     echo $form->field($this->commentModel, 'title')->textInput(['maxlength' => true]);
     echo $form->field($this->commentModel, 'content')->textarea($this->textAreaOptions);
     echo Html::submitButton(empty($this->buttonLabel) ? Yii::t('app', 'Save') : $this->buttonLabel, $this->buttonOptions);
     ActiveForm::end();
 }
Exemple #4
0
 public function api_form($options = [])
 {
     $model = new Subscriber();
     $options = array_merge($this->_defaultFormOptions, $options);
     ob_start();
     $form = ActiveForm::begin(['enableAjaxValidation' => true, 'action' => Url::to(['/admin/subscribe/send']), 'layout' => 'inline']);
     echo Html::hiddenInput('errorUrl', $options['errorUrl'] ? $options['errorUrl'] : Url::current([self::SENT_VAR => 0]));
     echo Html::hiddenInput('successUrl', $options['successUrl'] ? $options['successUrl'] : Url::current([self::SENT_VAR => 1]));
     echo $form->field($model, 'email')->input('email', ['placeholder' => 'E-mail']);
     echo Html::submitButton(Yii::t('easyii/subscribe/api', 'Subscribe'), ['class' => 'btn btn-primary', 'id' => 'subscriber-send']);
     ActiveForm::end();
     return ob_get_clean();
 }
 public function run()
 {
     $formId = $this->formOptions['id'];
     $this->getView()->registerCss("#{$formId} button {-webkit-box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2);box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2);}");
     $form = ActiveForm::begin(array_merge($this->defaultFormOptions, $this->formOptions));
     print Html::beginTag('div', ['class' => 'row']);
     print Html::beginTag('div', ['class' => 'col-xs-12']);
     print Html::beginTag('div', ['class' => 'input-group']);
     if ($this->inputWidget) {
         print $form->field($this->model, $this->attribute, ['template' => '{input}'])->widget($this->inputWidget, $this->inputOptions);
     } else {
         print $form->field($this->model, $this->attribute, ['template' => '{input}'])->input($this->inputType, array_merge(['placeholder' => $this->model->getAttributeLabel($this->attribute), 'class' => 'form-control'], $this->inputOptions));
     }
     print Html::beginTag('span', ['class' => 'input-group-btn']);
     print Html::submitButton(Yii::t('hipanel', 'Search'), ['class' => 'btn btn-flat ' . $this->buttonColor]);
     print Html::endTag('span');
     print Html::endTag('div');
     print Html::endTag('div');
     print Html::endTag('div');
     ActiveForm::end();
 }
Exemple #6
0
                    <input id="' . $index . '_' . $name . '" type="checkbox" name="' . $name . '" value="' . $value . '" ' . $seleccion . '>
                    <label for="' . $index . '_' . $name . '">' . $label . '</label>
                 </div>';
    return $html;
}, 'itemOptions' => ['labelOptions' => []]];
$inputClase = 'form-control input-md';
$inputReadClase = 'form-control form-control-static';
$articulo = $model->cargarArticulo();
$listadoImagenes = Yii::$app->controller->action->id != 'publicar' ? ImagenHelper::listaImagenesString($articulo->archivos) : [];
$ImagenPrincipal = Yii::$app->controller->action->id != 'publicar' ? $articulo->obtenerPosicionImagenPrincipal() : 0;
$session = Yii::$app->session;
?>


<?php 
$form = ActiveForm::begin(['id' => 'articulo', "enableClientValidation" => false, 'enableAjaxValidation' => false, 'validateOnChange' => false, 'options' => ['validateOnSubmit' => true, 'enctype' => 'multipart/form-data', 'class' => 'enviarForm form', 'role' => 'form'], 'fieldConfig' => ['template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}", 'hintOptions' => ['tag' => 'span'], 'errorOptions' => ['tag' => 'span'], 'horizontalCssClasses' => ['label' => 'col-sm-3', 'offset' => 'col-sm-offset-3', 'wrapper' => 'col-sm-9', 'error' => 'error-block', 'hint' => 'help-block']]]);
?>
    <!-- BEGIN CONTENIDO -->
    <div class="row">
        <div class="col-md-12">
            <div class="card-box">

                <?php 
echo Html::activeHiddenInput($model, 'idarticulo');
?>

                    <div class="row">
                        <div class="col-xs-12">

                            <?php 
echo DropZone::widget(['subirUrl' => Yii::$app->urlManager->createUrl('addimagenes'), 'eliminarUrl' => Yii::$app->urlManager->createUrl('delimagenes'), 'textoContenedor' => 'Arrastra aquí tus fotos. Puedes subir varias a la vez', 'iconContenedor' => 'zmdi zmdi-image', 'initImagenes' => $listadoImagenes, 'initImagenPrincipal' => $ImagenPrincipal, 'maxImagenes' => 4, 'options' => ['maxFilesize' => '2']]);
Exemple #7
0
<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\Url;
use dosamigos\ckeditor\CKEditorInline;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $model backend\models\BgForm */
/* @var $form ActiveForm */
?>

<div class="site-bgform">

    <?php 
$form = ActiveForm::begin(['options' => ['data-pjax' => '1'], 'id' => 'bg-form']);
?>
    <div>
        <?php 
$model->setDir();
$model->BgForm();
foreach ($model->dir as $value) {
    echo '<div>';
    echo '<div class="col-sm-3"><a href="./uploads/' . $value . '"><IMG src="./uploads/' . $value . '" class = "img" WIDTH="100%" HEIGHT="200px" align="left" >';
    //echo substr($value, -12); //сокращаем изображаемое название на 12 символов
    echo '</a>';
    echo $form->field($model, 'value[]')->radio(['value' => $value]);
    echo '</div>';
    echo '</div>';
}
?>
Exemple #8
0
                        });
JS
);
?>
                </div>
            </div>

            <div id="blockOrder"<?php 
if (Yii::$app->user->isGuest) {
    echo ' style="display: none;"';
}
?>
>
                <?php 
$model = new \app\models\Form\Shop\Request();
$form = \yii\bootstrap\ActiveForm::begin(['id' => 'contact-form', 'options' => ['enctype' => 'multipart/form-data'], 'enableClientScript' => false]);
?>
                <?php 
echo $model->field($form, 'dostavka')->radioList(\app\models\Shop\Request::$dostavkaList);
?>
                <?php 
echo $model->field($form, 'address')->textarea(['rows' => 3]);
?>
                <?php 
echo $model->field($form, 'phone');
?>
                <?php 
echo $model->field($form, 'comment')->textarea(['rows' => 3]);
?>
                <?php 
\yii\bootstrap\ActiveForm::end();
Exemple #9
0
    }
    /*$countries = Category::findOne(['name' => $menu->name]);
    
                    $leaves = $countries->leaves()->all();
    
                    foreach ($leaves as $children) {
                        echo $children->name;
                    }*/
}
echo '</ul>';
echo '</div>';
?>
    </div>
    <div class="col-sm-8">
        <?php 
$form = ActiveForm::begin(['id' => 'create_category', 'action' => ['/category/create']]);
echo $form->field($model, 'parent')->textInput()->label('Parents');
echo $form->field($model, 'name')->textInput();
echo "<button class='btn btn-primary'>Save</button>";
ActiveForm::end();
?>
    </div>
</div>
<?php 
/*$countries = Category::find()->where(['name' => 'Countries'])->roots()->all();
//$parent = $countries->parents()->all();
foreach ($countries as $test) {
    echo $test['name'];
}

        ?>
        <?php 
        echo GridView::widget(['dataProvider' => $tourGames[$tour], 'responsive' => false, 'hover' => true, 'showPageSummary' => true, 'responsiveWrap' => false, 'export' => false, 'bordered' => false, 'showHeader' => false, 'caption' => "Тур {$tour}", 'summary' => '', 'columns' => [['attribute' => 'date_time_game', 'content' => function ($model) {
            return '<strong>' . date('d.m.y H:i', $model['date_time_game']) . '</strong>';
        }, 'contentOptions' => ['class' => 'reduceDateFont'], 'options' => ['class' => 'col-xs-1'], 'hAlign' => 'center', 'vAlign' => 'middle'], ['content' => function ($model) {
            return "<row>" . "<div class = 'text-right col-xs-4'>" . $model['idTeamHome']['idTeam']['team_name'] . " " . "</div>" . "<div class = 'text-center col-xs-4'>" . "<strong>" . $model['score_home'] . " - " . $model['score_guest'] . "</strong>" . "</div>" . "<div class = 'text-left col-xs-4'>" . " " . $model['idTeamGuest']['idTeam']['team_name'] . "</div>" . "</row>" . "<div class='clearfix visible-xs-block visible-sm-block visible-md-block visible-lg-block'></div>" . "<row>" . "<div class = 'col-xs-4 col-xs-offset-4 col-sm-2 col-sm-offset-5 text-center'>" . Html::tag('div', isset($model['f_id']) ? $model['fscore_home'] . ' - ' . $model['fscore_guest'] : " - ", ['class' => !isset($model['f_id']) ? '' : ($model['fpoints'] == 0 ? 'bg-danger' : ($model['fpoints'] == 1 ? 'bg-info' : ($model['fpoints'] == 3 ? 'bg-success' : ($model['fpoints'] == 2 ? 'bg-warning' : ''))))]) . "</div>" . "<div class = 'col-xs-4 col-sm-2 col-sm-offset-3 text-right'>" . Html::tag('span', isset($model['f_id']) ? "Очки: " . $model['fpoints'] : '', []) . "</div>" . "</row>";
        }, 'options' => ['class' => 'col-xs-11'], 'attribute' => 'fpoints', 'pageSummary' => function ($summary, $data, $widget) {
            return "<div class = 'row'>" . "<div class = 'col-xs-10'>" . "<p class = 'pull-left'>Всего очков в туре:</p>" . "</div>" . "<div class = 'col-xs-2'>" . "<p class = 'pull-left'>{$summary}</p>" . "</div>" . "</div>";
        }, 'hAlign' => 'right', 'vAlign' => 'middle']]]);
        ?>

    <?php 
    } else {
        ?>
        <?php 
        $form = ActiveForm::begin(['action' => ['site/forecast-save']]);
        ?>
        <?php 
        echo GridView::widget(['dataProvider' => $tourGames[$tour], 'responsive' => false, 'hover' => true, 'showPageSummary' => true, 'responsiveWrap' => false, 'export' => false, 'bordered' => false, 'showHeader' => false, 'caption' => "Тур {$tour}", 'summary' => '', 'columns' => [['content' => function ($model) {
            return '<strong>' . date('d.m.y H:i', $model['date_time_game']) . '</strong>';
        }, 'options' => ['class' => 'col-xs-1'], 'contentOptions' => ['class' => 'reduceDateFont'], 'hAlign' => 'center', 'vAlign' => 'middle'], ['content' => function ($model) use($form) {
            return isset($model['score_home']) ? "<row>" . "<div class = 'text-right col-xs-5'>" . $model['idTeamHome']['idTeam']['team_name'] . " " . "</div>" . "<div class = 'text-center col-xs-2'>" . "<strong>" . $model['score_home'] . " - " . $model['score_guest'] . "</strong>" . "</div>" . "<div class = 'text-left col-xs-5'>" . " " . $model['idTeamGuest']['idTeam']['team_name'] . "</div>" . "</row>" . "<div class='clearfix visible-xs-block'></div>" . "<row>" . "<div class = 'col-xs-2 col-xs-offset-5 text-center'>" . Html::tag('div', isset($model['f_id']) ? $model['fscore_home'] . ' - ' . $model['fscore_guest'] : " - ", ['class' => !isset($model['f_id']) ? '' : ($model['fpoints'] == 0 ? 'bg-danger' : ($model['fpoints'] == 1 ? 'bg-info' : ($model['fpoints'] == 3 ? 'bg-success' : ($model['fpoints'] == 2 ? 'bg-warning' : ''))))]) . "</div>" . "<div class = 'col-xs-2 col-xs-offset-3 text-right'>" . Html::tag('span', isset($model['f_id']) ? "Очки: " . $model['fpoints'] : '', []) . "</div>" . "</row>" : "<row>" . "<div class = 'text-right col-xs-5'>" . $model['idTeamHome']['idTeam']['team_name'] . " " . "</div>" . "<div class = 'text-center col-xs-2'>" . ' - ' . "</div>" . "<div class = 'text-left col-xs-5'>" . " " . $model['idTeamGuest']['idTeam']['team_name'] . "</div>" . "</row>" . "<row>" . "<div class = 'col-xs-12 text-center'>" . Html::input('number', "forecasts[{$model['id_game']}][fscore_home]", isset($model['f_id']) ? $model['fscore_home'] : '', ['class' => 'forecast', 'form' => $form->getID(), 'maxlength' => 2, 'disabled' => $model['date_time_game'] - time() < 60 * 60 ? true : false]) . Html::input('number', "forecasts[{$model['id_game']}][fscore_guest]", isset($model['f_id']) ? $model['fscore_guest'] : '', ['class' => 'forecast', 'maxlength' => 2, 'form' => $form->getID(), 'disabled' => $model['date_time_game'] - time() < 60 * 60 ? true : false]) . "</div>" . "</row>";
        }, 'options' => ['class' => 'col-xs-11'], 'attribute' => 'fpoints', 'pageSummary' => function ($summary, $data, $widget) {
            return "<div class = 'row'>" . "<div class = 'col-xs-11'>" . "<p class = 'pull-left'>Всего очков в туре:</p>" . "</div>" . "<div class = 'col-xs-1'>" . "<p class = 'pull-left'>{$summary}</p>" . "</div>" . "</div>";
        }, 'vAlign' => 'middle']]]);
        ?>
        <p class = 'pull-right'><?php 
        echo Html::submitButton('Сохранить', ['class' => 'btn btn-success', 'form' => $form->getId()]);
        ?>
</p>
        <?php 
Exemple #11
0
/* @var $model \app\models\ResetPasswordForm */
$this->title = 'Reset password';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-reset-password">
    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <p>Please choose your new password:</p>

    <div class="row">
        <div class="col-lg-5">
            <?php 
$form = ActiveForm::begin(['id' => 'reset-password-form', 'layout' => 'horizontal']);
?>
            <?php 
echo $form->field($model, 'password')->passwordInput();
?>
            <div class="form-group">
                <?php 
echo Html::submitButton('Save', ['class' => 'btn btn-primary']);
?>
            </div>
            <?php 
ActiveForm::end();
?>
        </div>
    </div>
</div>
Exemple #12
0
$this->registerJsFile('@web/public/ueditor/ueditor.all.min.js');
$this->registerJsFile('@web/public/ueditor/lang/zh-cn/zh-cn.js');
?>
<script type="text/javascript"></script>
<script type="text/javascript">

    var ue = UE.getEditor('editor');

</script>
<style>
    .inline .radio,.inline .checkbox{display: inline-block;margin: 0 5px;}
    #editor{margin-top: 20px;padding:0;margin:20px 0;width:100%;height:auto;border: none;}
    
</style>
<?php 
$form = ActiveForm::begin(['id' => 'upload', 'enableAjaxValidation' => false, 'options' => ['enctype' => 'multipart/form-data']]);
?>
    <?php 
echo $form->field($model, 'title')->textInput();
?>
    <?php 
echo $form->field($model, 'tags')->fileInput();
?>
    <?php 
echo $form->field($model, 'content')->textarea(['rows' => 6, 'id' => 'editor', 'class' => 'col-sm-1 col-md-12']);
?>
    <?php 
echo Html::submitButton('提交', ['class' => 'btn btn-primary', 'name' => 'submit-button']);
?>

<?php 
Exemple #13
0
<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\AdminRole */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $id string */
$id = 'admin-role-form';
?>

<div class="admin-role-form-block">
  <?php 
$form = ActiveForm::begin(['id' => $id, 'options' => ['class' => 'model-form'], 'layout' => 'horizontal', 'fieldConfig' => ['horizontalCssClasses' => ['label' => 'col-sm-3', 'offset' => 'col-sm-offset-3', 'wrapper' => 'col-sm-5']]]);
?>
  <?php 
echo $form->field($model, 'honor')->textInput(['maxlength' => 15]);
?>

  <div class="form-group required">
    <label class="control-label col-sm-3" for="adminrole-acls">权限</label>
    <div class="col-sm-8" id="<?php 
echo $model->formName() . '-acl';
?>
">
    <?php 
if ($model->id == 1) {
    ?>
      <div style="margin-top: 5px;">拥有所有权限!</div>
    <?php 
} else {
Exemple #14
0
<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\ArrayHelper;
use yii\jui\DatePicker;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model app\modules\student\models\StuDocs */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="stu-docs-form">

    <?php 
$form = ActiveForm::begin(['id' => 'stu-docs-form', 'options' => ['class' => 'form-horizontal', 'enctype' => 'multipart/form-data'], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-3\">{input}</div>\n<div class=\"col-lg-7\"><span class='status'>&nbsp;</span>{error}</div>", 'labelOptions' => ['class' => 'col-lg-2 control-label']]]);
?>

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

    <?php 
echo $form->field($model, 'stu_docs_category_id')->dropDownList(ArrayHelper::map(\app\models\DocumentCategory::find()->all(), 'doc_category_id', 'doc_category_name'), ['prompt' => '---Select Category---']);
?>

    <?php 
echo $form->field($model, 'stu_docs_path')->fileInput(['maxlength' => 150]);
?>
	<div class="hint col-sm-offset-1 col-lg-10" style="margin-bottom:2%; color:red"><b>Hint:- </b>&nbsp;Upload Only Jpeg, Jpg, Pdf, Txt, Doc, Png Type Document</div>
Exemple #15
0
		<b>Телефон:</b> <?php 
echo $settings->get('info.phone');
?>
<br />
		<b>Адрес:</b> <?php 
echo $settings->get('info.address');
?>
	</p>
    <p>
        If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.
    </p>

    <div class="row">
        <div class="col-lg-5">
            <?php 
$form = ActiveForm::begin(['id' => 'contact-form']);
?>
                <?php 
echo $form->field($model, 'name');
?>
                <?php 
echo $form->field($model, 'email');
?>
                <?php 
echo $form->field($model, 'subject');
?>
                <?php 
echo $form->field($model, 'body')->textArea(['rows' => 6]);
?>
                <?php 
echo $form->field($model, 'verifyCode')->widget(Captcha::className(), ['template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>']);
Exemple #16
0
<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\ArrayHelper;
$profile = Yii::$app->getUserOpt->Profile_user();
//echo $roHeader->KD_RO;
//echo $roEmpe->EMP_ID;
//echo $profile->emp->EMP_NM;
$arrayStt = [['status' => 4, 'DESCRIP' => 'REJECT'], ['status' => 1, 'DESCRIP' => 'PENDING'], ['status' => 103, 'DESCRIP' => 'APPROVED']];
$valStt = ArrayHelper::map($arrayStt, 'status', 'DESCRIP');
?>

	<?php 
$form = ActiveForm::begin(['id' => 'auth3Mdl-ro', 'enableClientValidation' => true, 'enableAjaxValidation' => true, 'method' => 'post', 'action' => ['/purchasing/sales-order/sign-auth3-save']]);
?>
	
	
		<?php 
echo $form->field($auth3Mdl, 'empNm')->hiddenInput(['value' => $profile->emp->EMP_NM . ' ' . $profile->emp->EMP_NM_BLK, 'maxlength' => true, 'readonly' => true])->label('Employee Name')->label(false);
?>
		<?php 
echo $form->field($auth3Mdl, 'kdro')->hiddenInput(['value' => $roHeader->KD_RO, 'maxlength' => true, 'readonly' => true])->label(false);
?>
		<?php 
echo $form->field($auth3Mdl, 'status')->dropDownList($valStt);
?>
		<?php 
echo $form->field($auth3Mdl, 'password')->textInput(['type' => 'password', 'maxlength' => true])->label('Password');
?>
		<div style="text-align: right;"">
use yii\bootstrap\ActiveForm;
$this->title = 'Reset password';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-reset-password">
	<h1><?php 
echo Html::encode($this->title);
?>
</h1>

	<p>Please choose your new password:</p>

	<div class="row">
		<div class="col-lg-5">
            <?php 
$form = ActiveForm::begin(['id' => 'reset-password-form']);
?>

                <?php 
echo $form->field($model, 'password')->passwordInput();
?>

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

            <?php 
ActiveForm::end();
?>
<?php

use yii\bootstrap\ActiveForm;
use humhub\models\Setting;
?>
<div class="modal-dialog modal-dialog-small animated fadeIn">
    <div class="modal-content">
        <?php 
$form = ActiveForm::begin();
?>
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title"
                id="myModalLabel"><?php 
echo Yii::t('SpaceModule.views_space_invite', '<strong>Invite</strong> members');
?>
</h4>
        </div>
        <div class="modal-body">

            <br/>

            <?php 
if (Setting::Get('internalUsersCanInvite', 'authentication_internal')) {
    ?>
                <div class="text-center">
                    <ul id="tabs" class="nav nav-tabs tabs-center" data-tabs="tabs">
                        <li class="active tab-internal"><a href="#internal"
                                                           data-toggle="tab"><?php 
    echo Yii::t('SpaceModule.views_space_invite', 'Pick users');
    ?>
Exemple #19
0
<div class="panel panel-default">
    <div class="panel-heading">
        <h2>
                <?php 
echo $model->id;
?>
        </h2>
    </div>

    <div class="panel-body">

        <div class="questions-form">

            <?php 
$form = ActiveForm::begin(['id' => 'Questions', 'layout' => 'horizontal', 'enableClientValidation' => true, 'errorSummaryCssClass' => 'error-summary alert alert-error']);
?>

            <div class="">
                <?php 
$this->beginBlock('main');
?>

                <p>

			<?php 
echo $form->field($model, 'question')->textInput(['maxlength' => true]);
?>
			<?php 
echo $form->field($model, 'part')->dropDownList(\yii\helpers\ArrayHelper::map(common\models\Parts::find()->all(), 'id', 'name'), ['prompt' => 'Select']);
?>
Exemple #20
0
/* @var $model app\models\LoginForm */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$this->title = 'Login';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-login">
    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <p>Please fill out the following fields to login:</p>

    <?php 
$form = ActiveForm::begin(['id' => 'login-form', 'options' => ['class' => 'form-horizontal'], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-3\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>", 'labelOptions' => ['class' => 'col-lg-1 control-label']]]);
?>

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

        <?php 
echo $form->field($model, 'password')->passwordInput();
?>

        <?php 
echo $form->field($model, 'rememberMe')->checkbox(['template' => "<div class=\"col-lg-offset-1 col-lg-3\">{input} {label}</div>\n<div class=\"col-lg-8\">{error}</div>"]);
?>

        <div class="form-group">
Exemple #21
0
use yii\bootstrap\ActiveForm;
$this->title = 'Login';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-login">
    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <p>Please fill out the following fields to login:</p>

    <div class="row">
        <div class="col-lg-5">
            <?php 
$form = ActiveForm::begin(['id' => 'login-form']);
?>

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

                <?php 
echo $form->field($model, 'password')->passwordInput();
?>

                <?php 
echo $form->field($model, 'rememberMe', ['template' => '{input}{label}{error}{hint}', 'labelOptions' => ['class' => 'cbx-label']])->widget(CheckboxX::classname(), ['autoLabel' => false]);
?>

                <div class="form-group">
Exemple #22
0
<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\ProductSpecification */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="product-specification-form">

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

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

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

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

    <?php 
echo $form->field($model, 'product_specification_prefix');
?>
Exemple #23
0
                                <?php 
    echo !empty($orderShipping->shipping_phone) ? Html::tag('div', $orderShipping->shipping_phone) : '';
    ?>
                            </td>
                        </tr>
                    <?php 
}
?>


                </table>

            </div>
            <div class="col-sm-7">
                <?php 
ActiveForm::begin(['action' => Url::to(['/provider/order/update-consumed', 'id' => $model->id])]);
?>
                <table class="info table table-bordered">
                    <thead>
                    <tr>
                        <th nowrap="nowrap"><?php 
echo Yii::t('app', 'Items');
?>
</th>
                        <th style="text-align: right"><?php 
echo Yii::t('app', 'Quantity');
?>
</th>
                        <th style="text-align: right"><?php 
echo Yii::t('app', 'Subtotal');
?>
Exemple #24
0
    </div>
<?php 
}
?>

<div id="sc-payment-new" style="margin-top: 20px;<?php 
if (is_null($model) && !empty($payments)) {
    echo "display:none;";
}
?>
">
    <?php 
if (!isset($model) || is_null($model)) {
    $model = new \app\models\CreditCardForm();
}
$form = ActiveForm::begin(['action' => Url::to(['shopcart/payment-save']), 'layout' => 'horizontal']);
echo Html::activeHiddenInput($model, 'profile_id');
echo Html::activeHiddenInput($model, 'payment_profile_id');
?>
    <h3>2. <?php 
echo Yii::t('app', 'Add New Payment Method');
?>
</h3>
    <?php 
echo $form->errorSummary([$model]);
?>

    <div class="row">
        <div class="col-sm-5">
            <div style="margin-bottom: 4px;"><?php 
echo Yii::t('app', 'Credit Card');
Exemple #25
0
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\modules\services\models\ServicesPartsRecord */
$this->title = Yii::t('app', 'Добавление части');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Услуга: ' . $model->service->title . ' / ' . $model->lang), 'url' => ['services/update', 'id' => $model->serviceId]];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="services-parts-record-create">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <?php 
$form = \yii\bootstrap\ActiveForm::begin(['enableClientValidation' => false]);
?>

    <?php 
echo \app\modules\core\widgets\LanguageTabs::widget(['models' => $models, 'form' => $form, 'view' => $this, 'template' => '_form']);
?>

    <div class="form-group">
        <?php 
echo Html::submitButton('Добавить', ['class' => 'btn btn-success']);
?>
    </div>

    <?php 
\yii\bootstrap\ActiveForm::end();
?>
<div class="site-signup">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <div class="col-md-5 well bs-component">

        <p><?php 
echo Yii::t('app', 'Please fill out the following fields to signup:');
?>
</p>

        <?php 
$form = ActiveForm::begin(['id' => 'form-signup']);
?>

            <?php 
echo $form->field($model, 'username')->textInput(['placeholder' => Yii::t('app', 'Create your username'), 'autofocus' => true]);
?>

            <?php 
echo $form->field($model, 'email')->input('email', ['placeholder' => Yii::t('app', 'Enter your e-mail')]);
?>

            <?php 
echo $form->field($model, 'password')->widget(PasswordInput::classname(), ['options' => ['placeholder' => Yii::t('app', 'Create your password')]]);
?>

            <div class="form-group">
<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$form = ActiveForm::begin(['id' => 'upload-form', 'options' => ['class' => 'form-horizontal']]);
?>
    <?php 
echo $form->field($model, 'filename');
?>

    <div class="form-group">
        <div class="col-lg-offset-1 col-lg-11">
            <?php 
echo Html::submitButton('Login', ['class' => 'btn btn-primary']);
?>
        </div>
    </div>
<?php 
ActiveForm::end();
                    <div class="alert alert-warning alert-dismissible fade in" role="alert">
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                                aria-hidden="true">×</span></button>
                        <strong><?php 
    echo Yii::t('hipanel/domainchecker', 'There are no available domain zones');
    ?>
!</strong>
                    </div>
                <?php 
}
?>
                <div class="box box-solid">
                    <!-- /.box-header -->
                    <div class="box-body">
                        <?php 
$form = ActiveForm::begin(['id' => 'check-domain', 'action' => Url::to(['@domainchecker/check-domain']), 'method' => 'get', 'options' => ['data-pjax' => false], 'fieldConfig' => ['template' => "{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}"]]);
?>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <?php 
echo $form->field($model, 'domain')->textInput(['placeholder' => Yii::t('hipanel/domainchecker', 'Domain name'), 'class' => 'form-control input-lg', 'name' => 'domain']);
?>
                                </div>
                            </div>
                            <!-- /.col-md-8 -->
                            <div class="col-md-4">
                                <div class="form-group">
                                    <?php 
echo $form->field($model, 'zone')->widget(StaticCombo::classname(), ['data' => $dropDownZonesOptions, 'hasId' => true, 'inputOptions' => ['value' => $model->zone !== null ? $model->zone : $model::DEFAULT_ZONE, 'class' => 'form-control input-lg', 'name' => 'zone']]);
?>
Exemple #29
0
use webvimark\modules\slider\models\Slider;
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use webvimark\extensions\BootstrapSwitch\BootstrapSwitch;
use yii\helpers\Url;
/**
 * @var yii\web\View $this
 * @var webvimark\modules\slider\models\SliderImage $model
 * @var yii\bootstrap\ActiveForm $form
 * @var Slider $sliderModel
 */
?>
<div class="slider-image-form">

	<?php 
$form = ActiveForm::begin(['id' => 'slider-image-form', 'layout' => 'horizontal', 'options' => ['enctype' => "multipart/form-data"]]);
?>

	<?php 
echo $form->field($model->loadDefaultValues(), 'active')->checkbox(['class' => 'b-switch'], false);
?>

	<div class='form-group'>
		<div class='col-sm-3'></div>
		<div class='col-sm-6'>
			<div id='slider-image'>
				<?php 
if (!$model->isNewRecord and is_file($model->getImagePath('full', 'image'))) {
    ?>
					<?php 
    echo Html::img($model->getImageUrl('full', 'image'), ['alt' => 'image', 'style' => 'max-width: 100%']);
Exemple #30
-1
 public function api_form($options = [])
 {
     if (is_array($options) && count($options)) {
         $this->options = array_merge($this->options, $options);
     }
     $model = new Subscriber();
     ob_start();
     $form = ActiveForm::begin(['enableAjaxValidation' => true, 'action' => Url::to(['/admin/subscribe/send']), 'layout' => 'inline']);
     switch (Yii::$app->session->getFlash(Subscriber::FLASH_KEY)) {
         case 'success':
             Yii::$app->getView()->registerJs('alert("' . Yii::t('easyii/subscribe/api', 'You have successfully subscribed') . '");');
             break;
         case 'error':
             Yii::$app->getView()->registerJs('alert("' . Yii::t('easyii/subscribe/api', 'An error has occurred') . '");');
             break;
     }
     echo $form->field($model, 'email')->input('email', ['placeholder' => 'E-mail']);
     echo Html::submitButton(Yii::t('easyii/subscribe/api', $this->options['buttonText']), ['class' => $this->options['buttonClass'], 'id' => 'subscriber-send']);
     ActiveForm::end();
     return ob_get_clean();
 }