private static function rowStart(CModel $model, $ngFieldName) { echo '<div class="control-group">'; if ($ngFieldName != "") { CHtml::activeLabel($ngFieldName, $model); } echo '<div class="controls">'; }
/** * Renders a checkbox. * @return string the rendered content */ protected function checkBox() { $attribute = $this->attribute; echo '<label class="checkbox" for="' . $this->getAttributeId($attribute) . '">'; echo $this->form->checkBox($this->model, $this->attribute, $this->htmlOptions) . PHP_EOL; $attr = CHtml::resolveName($this->model, $attribute); // strip off square brackets if any echo CHtml::activeLabel($this->model, $attribute); echo $this->getError() . $this->getHint(); echo '</label>'; }
/** * Renders the label for this input. * The default implementation returns the result of {@link CHtml activeLabelEx}. * @return string the rendering result */ public function renderLabel() { $options = array('label' => $this->getLabel(), 'required' => $this->getRequired(), 'class' => 'control-label'); if ($this->parent->layout == 'horizontal') { $options['class'] .= ' col-sm-3'; } if (!empty($this->attributes['id'])) { $options['for'] = $this->attributes['id']; } return CHtml::activeLabel($this->getParent()->getModel(), $this->name, $options); }
public function renderLabel() { $options = array('label' => $this->getLabel(), 'class' => 'control-label'); if ($this->getRequired()) { $options['class'] .= ' required'; } //Agrego la clase required al label if (!empty($this->attributes['id'])) { $options['for'] = $this->attributes['id']; } return CHtml::activeLabel($this->getParent()->getModel(), $this->name, $options); }
public function renderInputs() { $this->attributes = array('oauthAccessToken' => null, 'oauthAccessTokenSecret' => null, 'consumerKey' => null, 'consumerSecret' => null); echo CHtml::activeLabel($this, 'consumerKey'); $this->renderInput('consumerKey'); echo CHtml::activeLabel($this, 'consumerSecret'); $this->renderInput('consumerSecret'); echo CHtml::activeLabel($this, 'oauthAccessToken'); $this->renderInput('oauthAccessToken'); echo CHtml::activeLabel($this, 'oauthAccessTokenSecret'); $this->renderInput('oauthAccessTokenSecret'); echo CHtml::errorSummary($this); }
public function run() { $attr = $this->attribute; if (!$this->model->{$attr} instanceof JSONEmbeddedModel) { $this->model->instantiateField($attr); } echo '<br />'; echo '<br />'; echo CHtml::activeLabel($this->model, $attr); echo '<hr />'; $this->model->{$attr}->renderInputs(); echo '<br />'; echo '<br />'; }
public function renderInputs() { $this->password = null; echo CHtml::activeLabel($this, 'senderName'); $this->renderInput('senderName'); echo CHtml::activeLabel($this, 'email'); $this->renderInput('email'); echo CHtml::activeLabel($this, 'user'); $this->renderInput('user'); echo CHtml::activeLabel($this, 'password'); $this->renderInput('password'); echo '<br/>'; echo CHtml::errorSummary($this); }
/** * Renders an HTML label for a model attribute. * This method is a wrapper of {@link CHtml::activeLabel}. * Please check {@link CHtml::activeLabel} for detailed information * about the parameters for this method. * @param CModel $model the data model * @param string $attribute the attribute * @param array $htmlOptions additional HTML attributes. * @return string the generated label tag */ public function label($model, $attribute, $htmlOptions = array()) { return CHtml::activeLabel($model, $attribute, $htmlOptions); }
<?php echo CHtml::activeTextField($form, 'sms_message', array('style' => 'width: 130px;')); ?> <?php echo CHtml::error($form, 'sms_message'); ?> </td> </tr> <tr> <th><?php echo CHtml::activeLabel($form, 'lat'); ?> :</th> <th><?php echo CHtml::activeLabel($form, 'lng'); ?> :</th> </tr> <tr> <td><?php echo CHtml::activeTextField($form, 'lat', array('style' => 'width: 130px;')); echo CHtml::error($form, 'lat'); ?> </td> <td><?php echo CHtml::activeTextField($form, 'lng', array('style' => 'width: 130px;')); echo CHtml::error($form, 'lng'); ?> </td> </tr>
<?php echo CHtml::errorSummary($model); ?> <fieldset class="top"> <div class="row clearfix"> <?php echo CHtml::activeLabel($model, 'course_code'); ?> <?php echo CHtml::activeTextField($model, 'course_code'); ?> </div> <div class="row clearfix"> <?php echo CHtml::activeLabel($model, 'user_id'); ?> <?php echo CHtml::activeTextField($model, 'user_id'); ?> </div> </fieldset> <fieldset class="buttons bottom"> <?php echo CHtml::submitButton('Assign'); ?> </fieldset> <?php echo CHtml::endForm(); ?> </div>
<?php echo CHtml::endForm(); ?> <h1>Import settings</h1> <?php echo CHtml::beginForm($this->createUrl('superadmin/exportadminssettings'), 'post', array('id' => 'formimportadminssettings', 'enctype' => 'multipart/form-data')); ?> <?php echo CHtml::hiddenField('type', 'import'); ?> <table class=""> <tr> <th><?php echo CHtml::activeLabel($importAdminsSettings, 'imported_file'); ?> :</th> <td><?php echo CHtml::activeFileField($importAdminsSettings, 'imported_file'); ?> </td> </tr> </table> <br/><br/> <?php echo CHtml::submitButton('Import'); ?> <?php echo CHtml::endForm(); ?>
<?php echo CHtml::activeDropDownList($user, 'role', array_slice(Yii::app()->params['user_role'], 0), array('style' => 'width: 270px;')); ?> </td> </tr> <tr> <th><?php echo CHtml::activeLabel($user, 'access'); ?> </th> <td> <div> <input type="checkbox" id="check_all_features" onclick="//$('div.checkBoxList input').attr('checked', ($(this).attr('checked') == 'checked' ? true : false));"/> <?php echo CHtml::activeLabel($user, 'allAccess'); ?> </div> <?php if (is_array($actions)) { foreach ($actions as $value) { ?> <div class="checkBoxList"> <input type="checkbox" name="access[]" value="<?php echo $value['id']; ?> " <?php echo in_array($value['id'], $access) ? 'checked' : ''; ?> /> <?php
?> <div class="alert alert-warning span12" id="msjError" style="">Atención: Hay un examen en esa fecha de otra materia del plan. </div> <p class="note"> Campos obligatorios <span class="required">*</span> </p> <?php echo $form->errorSummary($model, '', null, array('class' => 'alert alert-error')); ?> <div class="control-group"> <div class="span10"> <div class="row"> <?php if (Yii::app()->user->isAdmin()) { echo CHtml::activeLabel($model, $model->materia->nombreMateria, array('class' => 'lead')); echo $form->hiddenField($model, 'materia_id'); } ?> </div> <div id="left-content"> <div class="row"> <?php echo $form->labelEx($model, 'fechaExamen'); ?> <?php $this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'fechaExamen', 'language' => 'es', 'themeUrl' => Yii::app()->baseUrl . '/css/jquery-ui-themes/themes', 'theme' => 'bootstrap', 'flat' => true, 'options' => array('onSelect' => 'js: test', 'dateFormat' => 'dd-mm-yy', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeYear' => true, 'changeMonth' => true, 'showButtonPanel' => true, 'yearRange' => '2013:2099'), 'htmlOptions' => array('size' => '7', 'readonly' => "readonly", 'maxlength' => '10'))); ?> <?php echo $form->error($model, 'fechaExamen'); ?>
<div class="large-4 column"> <?php echo CHtml::activeLabel($model, 'username', array('label' => 'Username:'******'class' => 'align')); ?> </div> <div class="large-8 column"> <?php echo $form->textField($model, 'username', array('autocomplete' => Yii::app()->params['html_autocomplete'], 'placeholder' => 'Enter username...', 'class' => 'large')); ?> </div> </div> <div class="row field-row"> <div class="large-4 column"> <?php echo CHtml::activeLabel($model, 'password', array('label' => 'Password:'******'class' => 'align')); ?> </div> <div class="large-8 column"> <?php echo $form->passwordField($model, 'password', array('autocomplete' => 'off', 'placeholder' => 'Enter password...', 'class' => 'large')); ?> </div> </div> <div class="row field-row text-right"> <div class="large-12 column"> <img class="loader" src="<?php echo Yii::app()->assetManager->createUrl('img/ajax-loader.gif'); ?>
</tr> <tr> <td> <?php echo CHtml::activeTextField($model, 'subject'); ?> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td><?php echo CHtml::activeLabel($model, 'body'); ?> </td> </tr> <tr> <td COLSPAN=2><?php echo CHtml::activeTextArea($model, 'body', array('rows' => 5, 'cols' => 35)); ?> </td> </tr> <tr> <td> </td> <td> </td>
</div> <div class="simple"> <?php echo CHtml::activeLabel($contact, 'body'); ?> <?php $this->widget('ext.uiautogrow.EAutoGrowTextArea', array('model' => $contact, 'attribute' => 'body', 'htmlOptions' => array('style' => 'width:400px; min-height:70px;', 'minheight' => 70))); ?> </div> <?php if (extension_loaded('gd')) { ?> <div class="simple"> <?php echo CHtml::activeLabel($contact, 'verifyCode'); ?> <div style="width:150px;text-align:center;float:left;margin-left:0px;"> <?php $this->widget('CCaptcha'); ?> </div> <div style="margin-top:10px"> <?php echo CHtml::activeTextField($contact, 'verifyCode'); ?> <div class="hint" style="margin-left:0px;"> <?php echo Yii::t('amo', 'Please enter the letters as they are shown in the image above.<br/>' . 'Letters are not case-sensitive.'); ?> </div>
<h1 class="has_background"><?php echo Yii::t('UsersModule.core', 'Напомнить пароль'); ?> </h1> <div class="login_box rc5"> <div class="form wide"> <?php echo CHtml::form(); echo CHtml::errorSummary($model); ?> <div class="row"> <?php echo CHtml::activeLabel($model, 'email', array('required' => true)); ?> <?php echo CHtml::activeTextField($model, 'email'); ?> </div> <div class="row buttons"> <input type="submit" class="blue_button" value="<?php echo Yii::t('UsersModule.core', 'Напомнить'); ?> "> </div> <div class="row buttons"> <?php
echo CHtml::activeTextField($model, 'username'); ?> <?php echo CHtml::activeLabelEx($model, 'password'); ?> <?php echo CHtml::activePasswordField($model, 'password'); ?> <?php if ($model->scenario == 'captcha' && CCaptcha::checkRequirements()) { ?> <?php echo CHtml::activeLabel($model, 'verifyCode'); ?> <?php $this->widget('CCaptcha'); ?> <?php echo CHtml::activeTextField($model, 'verifyCode'); ?> <?php echo CHtml::error($model, 'verifyCode'); } ?> </div>
/** * Renders the label for this input. * The default implementation returns the result of {@link CHtml activeLabelEx}. * @return string the rendering result */ public function renderLabel() { $options = array('label' => $this->getLabel(), 'required' => $this->getRequired()); if (!empty($this->attributes['id'])) { $options['for'] = $this->attributes['id']; } return CHtml::activeLabel($this->getParent()->getModel(), $this->name, $options); }
echo CHtml::form(); ?> <div class="simple"> <?php echo CHtml::activeLabel($user, 'username'); ?> <?php echo CHtml::activeTextField($user, 'username'); echo CHtml::error($user, 'username'); ?> </div> <div class="simple"> <?php echo CHtml::activeLabel($user, 'password'); ?> <?php echo CHtml::activePasswordField($user, 'password'); echo CHtml::error($user, 'password'); ?> </div> <div class="action"> <?php if ($this->enableRememberMe) { echo CHtml::activeCheckBox($user, 'rememberMe'); ?> Remember me next time<br/> <?php
</p> </div> <div class="row"> <?php echo CHtml::activeLabel($post, 'tags'); ?> <?php echo CHtml::activeTextField($post, 'tags', array('size' => 65)); ?> <p class="hint"> Separate different tags with commas. </p> </div> <div class="row"> <?php echo CHtml::activeLabel($post, 'status'); ?> <?php echo CHtml::activeDropDownList($post, 'status', Post::model()->statusOptions); ?> </div> <div class="row action"> <?php echo CHtml::submitButton($update ? 'Save' : 'Create', array('name' => 'submitPost')); ?> <?php echo CHtml::submitButton('Preview', array('name' => 'previewPost')); ?> </div>
?> </td> </tr> <tr> <td><?php echo CHtml::activeLabel($form, 'password_repeat'); ?> </td> <td><?php echo CHtml::activePasswordField($form, 'password_repeat'); ?> </td> </tr> <tr> <td><?php echo CHtml::activeLabel($form, 'email'); ?> </td> <td><?php echo CHtml::activeTextField($form, 'email'); ?> </td> </tr> <tr> <td><?php $this->widget('CCaptcha', array('showRefreshButton' => false, 'clickableImage' => true)); ?> </td> <td><?php echo CHtml::activeTextField($form, 'captcha'); ?>
?> </td> </tr> <tr class="even"> <th><?php echo CHtml::activeLabel($vMachine, 'update_time'); ?> </th> <td><?php echo $vMachine->update_time; ?> </td> </tr> <tr class="odd"> <th><?php echo CHtml::activeLabel($vMachine, 'desc_info'); ?> </th> <td><?php echo $vMachine->desc_info; ?> </td> </tr> </table> <h3><?php echo Yii::t('Machine', 'Tasks may be affected'); ?> </h3> <table class="items"> <tr> <th><?php
<div class="form-group"> <?php echo CHtml::activeLabel($model, 'max', array('class' => 'col-md-3 control-label')); ?> <div class="col-md-5"> <?php echo CHtml::activeTextField($model, 'max', array('class' => 'form-control')); ?> <span class="help-block"> <?php echo CHtml::error($model, 'max', array('class' => 'label label-danger')); ?> </span> </div> </div> <div class="form-group"> <?php echo CHtml::activeLabel($model, 'min', array('class' => 'col-md-3 control-label')); ?> <div class="col-md-5"> <?php echo CHtml::activeTextField($model, 'min', array('class' => 'form-control')); ?> <span class="help-block"> <?php echo CHtml::error($model, 'min', array('class' => 'label label-danger')); ?> </span> </div> </div>
<?php /** * @var $this YdAccountController * @var $user YdAccountRecover * @var $recaptcha string * * @author Brett O'Donnell <*****@*****.**> * @author Zain Ul abidin <*****@*****.**> * @copyright 2013 Mr PHP * @link https://github.com/cornernote/yii-dressing * @license BSD-3-Clause https://raw.github.com/cornernote/yii-dressing/master/license.txt */ $this->pageTitle = Yii::t('dressing', 'Recover Password'); /** @var YdActiveForm $form */ $form = $this->beginWidget('dressing.widgets.YdActiveForm', array('id' => 'recover-form', 'type' => 'horizontal')); echo $form->beginModalWrap(); echo $form->errorSummary($user); echo $form->textFieldRow($user, 'username_or_email'); if ($recaptcha) { echo CHtml::activeLabel($user, 'recaptcha'); $this->widget('dressing.widgets.YdReCaptchaInput', array('model' => $user)); echo CHtml::error($user, 'recaptcha'); } echo $form->endModalWrap(); echo '<div class="' . $form->getSubmitRowClass() . '">'; $this->widget('bootstrap.widgets.TbButton', array('label' => Yii::t('dressing', 'Recover'), 'type' => 'primary', 'buttonType' => 'submit')); echo ' '; $this->widget('bootstrap.widgets.TbButton', array('label' => Yii::t('dressing', 'Back to Login'), 'url' => array('/account/login'))); echo '</div>'; $this->endWidget();
echo CHtml::errorSummary($form); ?> </div> <table class="h32"> <tr> <td> <?php echo CHtml::activeLabel($form, 'recipient'); ?> <?php echo CHtml::activeTextField($form, 'recipient'); ?> </td> <td> <?php echo CHtml::activeLabel($form, 'sum'); ?> <?php echo CHtml::activeTextField($form, 'sum'); ?> </td> <td> <input type="submit" class="button" name="yt0" value="Передать"> </td> </tr> </table> <?php echo CHtml::endForm(); ?> </div> </div>
echo CHtml::activeLabel($forum, 'description'); echo CHtml::activeTextArea($forum, 'description', array('rows' => 6, 'cols' => 50)); ?> </div> <div class="simple"> <?php echo CHtml::activeLabel($forum, 'position'); echo CHtml::activeTextField($forum, 'position'); ?> </div> <div class="simple"> <?php echo CHtml::activeLabel($forum, 'created_at'); echo CHtml::activeTextField($forum, 'created_at'); ?> </div> <div class="simple"> <?php echo CHtml::activeLabel($forum, 'updated_at'); echo CHtml::activeTextField($forum, 'updated_at'); ?> </div> <div class="action"> <?php echo CHtml::submitButton('Create'); ?> </div> </form> </div>
<?php echo CHtml::activeCheckBox($params, 'is_max_layout'); ?> </div> </div> <?php } ?> <?php if (Yii::app()->user->username == Yii::app()->params['superAdminInfo']['username']) { ?> <div class="form-group"> <label class="col-md-3 control-label" for="title"><?php echo CHtml::activeLabel($params, 'filter_header_color_background'); ?> </label> <div class="col-md-7"> <?php echo CHtml::activeTextField($params, 'filter_header_color_background'); ?> </div> </div> <?php } ?> <div class="form-group"> <label class="col-md-3 control-label" for="title"></label> <div class="col-md-5">
]</a> <a href="javascript:void(0)" onclick="x2.dropdownManager.moveOptionDown(this);">[<?php echo Yii::t('admin', 'Down'); ?> ]</a> <a href="javascript:void(0)" onclick="x2.dropdownManager.deleteOption(this);">[<?php echo Yii::t('admin', 'Del'); ?> ]</a> </div> <br /> </li> <?php echo CHtml::activeLabel($model, 'multi', array('class' => 'multi-checkbox-label')) . ' ' . CHtml::activeCheckBox($model, 'multi'); ?> </ol> </div> <a href="javascript:void(0)" onclick="x2.dropdownManager.addOption();" class="add-dropdown-option">[<?php echo Yii::t('admin', 'Add Option'); ?> ]</a> <div class="row buttons"> <br /> <?php echo CHtml::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Save'), array('class' => 'x2-button')); ?> </div> <?php
<br/> <div class="input-append"> <?php echo $form->textField($model, 'watermarkTextOpacity', array('class' => 'span1')); ?> <span class="add-on">%</span> </div> <?php echo $form->error($model, 'watermarkTextOpacity'); ?> </div> </div> <div class="rowold"> <?php echo CHtml::activeLabel($model, 'watermarkPosition', array('required' => true)); ?> <div id="waermarkPositionTemplate"> <div class="relative"> <input type="radio" style="position:absolute; top: 3px; left: 7px;" name="ImageSettings[watermarkPosition]" value="<?php echo ImageSettings::POS_LEFT_TOP; ?> " <?php echo $model->watermarkPosition == ImageSettings::POS_LEFT_TOP ? 'checked="checked"' : ''; ?> /> <input type="radio"