?> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5><?php echo Yii::t('common', 'Information'); ?> </h5> </div> <div class="ibox-content"> <?php $form = ActiveForm::begin(['id' => 'formDefault', 'layout' => 'horizontal', 'options' => ['enctype' => 'multipart/form-data'], 'fieldConfig' => ['horizontalCssClasses' => ['label' => 'col-sm-2', 'wrapper' => 'col-sm-10', 'error' => 'help-block m-b-none', 'hint' => '']]]); // Image $imageConfig = ['options' => ['accept' => 'uploads/*'], 'pluginOptions' => ['previewFileType' => 'image', 'showCaption' => FALSE, 'showRemove' => FALSE, 'showUpload' => FALSE, 'browseClass' => 'btn btn-primary btn-block', 'browseIcon' => '<i class="glyphicon glyphicon-camera"></i> ', 'browseLabel' => 'Select Photo', 'removeClass' => 'btn btn-danger', 'removeLabel' => "Delete", 'removeIcon' => '<i class="glyphicon glyphicon-trash"></i>', 'allowedFileExtensions' => ['jpg', 'gif', 'png', 'jpeg']]]; if (!empty($model->image)) { $imageConfig['pluginOptions']['initialPreview'] = [Html::img(LetHelper::getFileUploaded($model->image), ['class' => 'file-preview-image'])]; } // END Image $tabs = [['label' => Yii::t('common', 'General information'), 'content' => $form->field($model, 'name')->textInput() . $form->field($model, 'class')->textInput() . $form->field($model, 'skin')->textInput() . $form->field($model, 'image')->widget(FileInput::classname(), $imageConfig) . $form->field($model, 'content')->widget(letyii\tinymce\Tinymce::className(), ['options' => ['style' => 'height: 400px;'], 'configs' => ['plugins' => 'moxiemanager advlist autolink lists link image charmap print preview hr anchor pagebreak ' . 'searchreplace wordcount visualblocks visualchars code fullscreen ' . 'insertdatetime media nonbreaking save table contextmenu directionality ' . 'emoticons template paste textcolor colorpicker textpattern', 'toolbar1' => 'insertfile undo redo | styleselect | fontselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image', 'toolbar2' => 'print preview media | forecolor backcolor emoticons', 'moxiemanager_image_settings' => ['moxiemanager_title' => 'Images', 'moxiemanager_extensions' => 'jpg,png,gif', 'moxiemanager_rootpath' => '/uploads/editor', 'moxiemanager_view' => 'thumbs'], 'external_plugins' => ['moxiemanager' => Url::base() . '/plugins/moxiemanager/plugin.min.js'], 'entity_encoding' => 'raw', 'force_p_newlines' => true, 'force_br_newlines' => false, 'auto_cleanup_word' => false, 'relative_urls' => true, 'convert_urls' => false, 'remove_script_host' => true, 'verify_html' => false, 'forced_root_block' => false, 'content_css' => 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css', 'templates' => Url::to(['template'])]]) . $form->field($model, 'description')->textarea() . $form->field($model, 'promotion')->widget(SwitchInput::className(['type' => SwitchInput::RADIO])) . $form->field($model, 'status')->widget(SwitchInput::className(['type' => SwitchInput::RADIO])), 'active' => true], ['label' => 'Seo', 'content' => $form->field($model, 'slug')->textInput() . $form->field($model, 'slug_prefix')->textInput() . $form->field($model, 'seo_url')->textInput() . $form->field($model, 'seo_title')->textInput() . $form->field($model, 'seo_desc')->textInput(), $form->field($model, 'seo_keyword')->textInput()]]; echo Html::hiddenInput('save_type', 'save'); echo yii\bootstrap\Tabs::widget(['items' => $tabs]); ActiveForm::end(); ?> </div> </div> </div> </div>
<?php use app\components\ActiveForm; $form = ActiveForm::begin(['id' => 'formDefault', 'layout' => 'horizontal']); ?> <?php echo $form->field($model, 'module')->dropDownList($modules, ['class' => 'form-control', 'prompt' => 'Chọn module']); ?> <?php echo $form->field($model, 'key')->textInput(['class' => 'form-control', 'placeholder' => 'Nhập key']); ?> <?php echo $form->field($model, 'value')->textarea(['class' => 'form-control', 'placeholder' => 'Nhập value']); ?> <div class="clearfix"></div> <?php ActiveForm::end();
<?php use app\components\ActiveForm; use yii\helpers\Html; ?> <?php $form = ActiveForm::begin(['id' => 'formDefault', 'method' => 'post', 'layout' => 'horizontal', 'fieldConfig' => ['horizontalCssClasses' => ['label' => 'col-sm-3', 'wrapper' => 'col-sm-9', 'error' => 'help-block m-b-none', 'hint' => '']]]); ?> <p><a target="_blank" href="#">Job posting requirements</a></p> <?php echo $form->field($model, 'code')->textInput(['placeholder' => Yii::t('job', 'Enter a name for your reference only')]); echo $form->field($model, 'title')->textInput(['placeholder' => Yii::t('job', 'What type of position is this?')]); echo $form->field($model, 'category_ids')->listBox(\app\modules\job\models\Job::getCategoryOptions(), ['multiple' => true]); echo $form->field($model, 'country_id')->dropDownList(\app\modules\job\models\JobLocation::getOptions(), ['prompt' => Yii::t('job', '--- Select a location ---')]); echo $form->field($model, 'city_name')->textInput(); ?> <div class="form-group field-job-annual_salary_from"> <label for="job-annual_salary_from" class="control-label col-sm-3"><?php echo '<em class="required">*</em> ' . Yii::t('job', 'Annual Salary'); ?> </label> <div class="col-sm-9"> <div class="row"> <?php $annualSalary = \app\modules\job\models\JobSalary::getOptions(); ?> <div class="col-xs-6">
<?php use app\components\ActiveForm; use yii\helpers\Html; use app\helpers\ArrayHelper; ?> <?php $form = ActiveForm::begin(['method' => 'GET', 'action' => ['job-search'], 'options' => ['id' => 'jobsearch-form', 'name' => 'jobsearch-form']]); ?> <div class="table-responsive"> <table class="table table-bordered table-striped table-hover"> <tbody> <tr> <td colspan="3"> <?php echo $form->field($searchModel, 'keyword')->textInput(['class' => 'form-control full-width', 'placeholder' => 'Enter job title, company name / information etc.'])->label(false); ?> </td> </tr> <tr> <th>Select Job Category:</th> <td> <?php echo $form->field($searchModel, 'category_ids')->dropDownList($searchModel->getCategoryOptions(), ['class' => 'form-control', 'prompt' => '---'])->label(false); ?> </td> <td class="text-center"> <input type="submit" class="button button-primary" name="jobsearch_submit1" id="candidate_home_search_button" value="Search"> </td> </tr>
?> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5><?php echo Yii::t('common', 'Edit avatar'); ?> </h5> </div> <div class="ibox-content"> <?php $form = ActiveForm::begin(['id' => 'formDefault', 'options' => ['enctype' => 'multipart/form-data']]); echo Html::hiddenInput('submit', 1); ?> <div class="row"> <div class="col-md-6"> <div class="image-crop"> <img src="<?php echo app\helpers\LetHelper::getAvatar(Yii::$app->user->id, LetHelper::URL, true, 48) . '?time=' . time(); ?> "> </div> </div> <div class="col-md-6"> <h4>Preview image</h4> <div class="img-preview img-preview-sm"></div> <h4>Comon method</h4>
<?php use yii\helpers\Html; use yii\helpers\Url; use app\helpers\ArrayHelper; use app\modules\job\models\Job; use app\modules\job\models\UserJob; use app\components\ActiveForm; ?> <?php $form = ActiveForm::begin([]); ?> <!-- MAIN --> <main id="main" class="main-container"> <!-- SECTION 1 --> <div class="section section-1"> <div class="container"> <div class="section-inner"> <div class="section-content layout-2cols-right"> <div class="row"> <div class="col-xs-12 col-sm-9 col-main section-gap"> <div class="table-responsive"> <table id="jobdetail" class="table table-bordered table-striped table-hover"> <tbody> <tr> <th colspan="2"> <?php if (\app\modules\job\models\UserFavourite::isFavourite($model->_id, 'job', Yii::$app->user->id)) { $class = "favourites"; $title = Yii::t('job', 'Remove from favourites list?');
<?php use yii\helpers\Html; use app\components\ActiveForm; use app\models\CommonStatus; use yii\helpers\ArrayHelper; /* @var $this yii\web\View */ /* @var $model app\models\Slide */ /* @var $form app\components\ActiveForm */ /* @var $form \yii\widgets\ActiveForm*/ ?> <div class="slide-form"> <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?> <?php echo $form->imageField($model, 'source_url', ['class' => 'form-image']); ?> <?php echo $form->field($model, 'alt')->textArea(['maxlength' => true]); ?> <?php echo $form->field($model, 'common_status_id')->dropDownList(CommonStatus::getAll()); ?> <div class="form-group">
<?php use app\components\ActiveForm; use yii\helpers\Html; use app\helpers\ArrayHelper; ?> <?php $form = ActiveForm::begin(['method' => 'GET', 'action' => ['search-seeker'], 'options' => ['id' => 'frm-search-seeker', 'name' => 'frm-search-seeker']]); ?> <?php $searchModel = new app\modules\job\models\UserJobSeekerResume(); $searchModel->scenario = 'search'; $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams(), 20); echo $form->field($searchModel, 'keyword')->textInput(['class' => 'form-control', 'placeholder' => 'keyword search'])->label(false); ?> <?php echo $form->field($searchModel, 'search_mode')->radioList($searchModel::getSearchModeOptions())->label(false); ?> <?php echo $form->field($searchModel, 'location')->dropDownList(\app\modules\job\models\JobLocation::getOptions(), ['class' => 'form-control', 'prompt' => '---'])->label(false); echo $form->field($searchModel, 'functions')->dropDownList(\app\modules\job\models\JobFunction::getOptions(), ['class' => 'form-control', 'prompt' => '---'])->label(false); echo $form->field($searchModel, 'industries')->dropDownList(\app\modules\job\models\JobIndustry::getOptions(), ['class' => 'form-control', 'prompt' => '---'])->label(false); ?> <br> <input class="button button-primary" type="submit" name="agent-home-search" /> <?php
<!-- MAIN --> <main id="main" class="main-container"> <!-- SECTION 1 --> <div class="section section-1"> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-8 col-lg-offset-2"> <div class="section-title section-title-style-2"> <h2 class="title"><?php echo Html::encode($this->title); ?> </h2> </div> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'email')->textInput(); ?> <?php echo $form->field($model, 'password')->passwordInput(); ?> <div class="form-group"> <?php echo Html::submitButton('Send', ['class' => 'button button-primary']); ?> </div> <?php ActiveForm::end(); ?>
/* @var $this yii\web\View */ use app\components\ActiveForm; use yii\helpers\Html; $this->title = 'Home'; $this->registerJsFile('@web/js/site.js', ['depends' => \app\assets\AppAsset::className(), 'position' => 3]); ?> <section class="section--center mdl-grid"> <div class="card-wide mdl-card mdl-shadow--2dp"> <div class="mdl-card__title"> <h2 class="mdl-card__title-text">Welcome</h2> </div> <div class="mdl-card__supporting-text"> <p>To short your URL put it in the field below and click on Short button.</p> <?php $form = ActiveForm::begin(['id' => 'form', 'action' => ['site/short'], 'validateOnType' => true]); ?> <?php echo $form->field($model, 'long_url')->input('url'); ?> <?php echo Html::submitButton('Short', ['class' => 'mdl-button mdl-button--raised mdl-button--accent mdl-js-button mdl-js-ripple-effect']); ?> <div class="mdl-spinner mdl-js-spinner" id="loadingSpinner"></div> <?php ActiveForm::end(); ?>