Example #1
0
 */
$tags = Image::model()->tags();
/**
 * Prints all the radio button list -> radio labels -> list label -systems
 * Nested in a table.
 */
echo "<table class=\"tagGrid\" id=\"tagGrid\"><tr><td>";
foreach ($tags as $tag) {
    if ($tag == 'aikavarma') {
        continue;
    }
    echo "<div class='row'>";
    if ($styleContext == "search") {
        echo CHtml::activeLabel($model, $tag, array('class' => 'properlabel'));
        // label for the radio button list
        echo CHtml::activeRadioButtonList($model, $tag, $model->getTypeOptions(), $htmlOptions);
    }
    if ($styleContext == "metadatabox") {
        if ($dataProvider->{$tag} == 'k') {
            echo '<b>';
            echo CHtml::activeLabel($model, $tag);
            echo '</b>';
        } else {
            echo CHtml::activeLabel($model, $tag, array('style' => 'color:#888888;'));
        }
    }
    if ($styleContext == "metadataboxedit") {
        if ($dataProvider->{$tag} == 'k') {
            echo CHtml::activeCheckBox($model, $tag, array('checked' => 'checked'));
        } else {
            echo CHtml::activeCheckBox($model, $tag);
Example #2
0
			
			<?php 
echo $form->error($model, 'user_id_instal');
?>
		</div>
	</div>	
	
	<div class="mtitle">АОИ YesTech</div>
	<div class="mash_item _fclear">
		<div class="row col">
			<?php 
echo $form->labelEx($model, 'job_aoi', array('label' => 'Статус:'));
?>
</br>
			<?php 
echo CHtml::activeRadioButtonList($model, 'job_aoi', array(0 => 'Не требуется', 1 => 'Не сделано', 2 => 'Сделано'), array('onclick' => 'togglePrint(this)'));
?>
			<?php 
echo $form->error($model, 'job_aoi');
?>
		</div>
		<div class="row col">
			<?php 
echo $form->labelEx($model, 'date_aoi', array('label' => 'Дата выполнения'));
?>
			<?php 
echo CHtml::activeDateField($model, 'date_aoi');
?>
			<?php 
echo $form->error($model, 'date_aoi');
?>
Example #3
0
?>
        <span class="help-block">
            <?php 
echo CHtml::error($model, 'safe', array('class' => 'label label-danger'));
?>
        </span>
    </div>
</div>

<div class="form-group">
    <?php 
echo CHtml::activeLabel($model, 'skipOnError', array('class' => 'col-md-3 control-label'));
?>
    <div class="col-md-5">
            <?php 
echo CHtml::activeRadioButtonList($model, 'skipOnError', array('true' => Yii::t('EavModule.eavactiverecord', 'Enabled'), 'false' => Yii::t('EavModule.eavactiverecord', 'Disabled')), array('container' => 'div', 'separator' => '', 'template' => '{beginLabel}{input}{labelTitle}{endLabel}', 'labelOptions' => array('class' => 'radio-inline')));
?>
        <span class="help-block">
            <?php 
echo CHtml::error($model, 'skipOnError', array('class' => 'label label-danger'));
?>
        </span>
    </div>
</div>

<div class="form-group">
    <?php 
echo CHtml::activeLabel($model, 'max', array('class' => 'col-md-3 control-label'));
?>
    <div class="col-md-5">
        <?php 
Example #4
0
echo CHtml::activeTextField($model, 'nickname', array('size' => 50, 'maxlength' => 50, 'class' => 'validate[required] form-control'));
?>
							</div>
							<?php 
echo CHtml::error($model, 'nickname');
?>
						</div>
					</div>

					<div class="form-group">
						<?php 
echo CHtml::activeLabelEx($model, 'gender', array('class' => $label_class));
?>
						<div class="col-md-6 col-xs-12">
							<?php 
echo CHtml::activeRadioButtonList($model, 'gender', ReferenceEmployeeStatuses::model()->getGender(), array('class' => 'validate[required] form-control iradio', 'separator' => ' &nbsp; &nbsp; &nbsp; &nbsp; '));
?>
							<?php 
echo CHtml::error($model, 'gender');
?>
						</div>
					</div>

					<div class="form-group">
						<?php 
echo CHtml::activeLabelEx($model, 'religion_id', array('class' => $label_class));
?>
						<div class="col-md-6 col-xs-12">
							<?php 
echo CHtml::activeDropDownList($model, 'religion_id', CHtml::listData(ReferenceReligions::model()->findAll(), 'id', 'name'), array('data-placeholder' => at('Please select one...'), 'prompt' => '', 'class' => 'validate[required] form-control select'));
?>
Example #5
0
						<?php 
echo CHtml::activeTextArea($model, 'alergy', array('size' => 50, 'maxlength' => 50, 'class' => 'validate[required] form-control'));
?>
						<?php 
echo CHtml::error($model, 'alergy');
?>
					</div>
				</div>
				
				<div class="form-group">
					<?php 
echo CHtml::activeLabelEx($model, 'mcu_status', array('class' => $label_class));
?>
					<div class="col-md-6 col-xs-12">
						<?php 
echo CHtml::activeRadioButtonList($model, 'mcu_status', MastersEmployeeMcu::model()->getStatuses(), array('class' => 'validate[required] form-control iradio', 'separator' => ' &nbsp; &nbsp; &nbsp; &nbsp; '));
?>
						<?php 
echo CHtml::error($model, 'mcu_status');
?>
					</div>
				</div>
			</div>
			
			<div class="panel-footer">
				<?php 
/*echo CHtml::button('Clear Form', array('class'=>'btn btn-default'));*/
?>
				<?php 
echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class' => 'btn btn-primary pull-right'));
?>
Example #6
0
</label>
                            <div class="col-md-7">
                                <?php 
echo CHtml::checkBox('is_filter_' . SettingsControllerBase::ReportAliasBirthday, $params->is_filter, array('onClick' => 'changeFilter("' . SettingsControllerBase::ReportAliasBirthday . '")'));
?>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label" for="title"><?php 
echo CHtml::activeLabel($params, 'datefilter_type');
?>
</label>
                            <div class="col-md-7">
                                <?php 
echo CHtml::activeRadioButtonList($params, 'datefilter_type', array(OfficeStatsReportsParams::dateFilterTypeBetween => Yii::t('app', 'Фильтровать в интервале двух дат'), OfficeStatsReportsParams::dateFilterTypeMonthSelect => Yii::t('app', 'Фильтровать выбором конкретного месяца')));
?>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label" for="title"><?php 
echo CHtml::activeLabel($params->lang, 'title');
?>
</label>
                            <div class="col-md-7">
                                <?php 
echo CHtml::activeTextField($params->lang, 'title', array('class' => "form-control"));
?>
                            </div>
                        </div>
Example #7
0
<div class="middlenarrow">
    <h1>Mail Settings</h1>

    <?php 
echo CHtml::beginForm($this->createUrl('admin/mailsetup'), 'post', array('id' => 'formMailSettings'));
?>

    <table class="formtable">
        <tr>
            <td><?php 
echo CHtml::activeRadioButtonList($settings, 'mail__use_fake_sendmail', array(0 => 'This PC has Sendmail Software', 1 => 'PC doesn\'t have a sendmail program. Please use an alternative mail program.'));
?>
</td>
            <td><?php 
echo CHtml::error($settings, 'mail__use_fake_sendmail');
?>
</td>
            <td>&nbsp;</td>
        </tr>
    </table>


    <table class="formtable">
        <tr>
            <th style="width: 150px;"><?php 
echo CHtml::activeLabel($settings, 'mail__sender_address');
?>
</th>
            <td>
                <?php 
Example #8
0
    echo $model->getDateFormat($model->importanceTime);
    ?>
            </div>
            <?php 
}
?>
        </div>

        <div class="wrapper">
            <div class="title"><?php 
echo CHtml::encode($model->getAttributeLabel('disposition'));
?>
</div>
            <div class="content" style='text-align: center'>
                <?php 
echo CHtml::activeRadioButtonList($model, 'disposition', $model->getDispositionOptions(), array('disabled' => true, 'separator' => '   '));
?>
            </div>
            <?php 
if ($model->dispositionDescription) {
    ?>
            <div class='description'>
                <b><?php 
    echo CHtml::encode($model->dispositionDescription);
    ?>
</b>
            </div>
            <?php 
}
?>
            <?php 
                </td>
                <td>
                    <?php 
echo CHtml::activeDropDownList($form, 'period', Yii::app()->params['schedule_generation_period'], array('style' => 'width: 50px;'));
?>
                </td>
                <td>
                    <?php 
echo CHtml::activeDropDownList($form, 'report_format', Yii::app()->params['schedule_report_format'], array('style' => 'width: 50px;'));
?>
                </td>
            </tr>
            <tr>
               <td colspan="2" >
                    <?php 
echo CHtml::activeRadioButtonList($form, 'send_like_attach', array('1' => 'attachments to the report', '0' => 'write to the message body'), array('style' => 'width: 50px;'));
?>
                </td>

                <td >
                    <?php 
echo CHtml::activeCheckbox($form, 'send_email_together', array('style' => 'width: 50px;'));
?>
  &nbsp;&nbsp;<span>Send messages together</span>
                </td>

            </tr>
        </table>

        <table class="formtable station_table">
            <?php 
Example #10
0
        <?php 
echo CHtml::error($model, 'idno');
?>
    </div>
</div>

<div class="form-group">
    <?php 
echo CHtml::activeLabelEx($model, 'gender', array('class' => $label_class));
?>
    <div class="<?php 
echo $input_class;
?>
" style="padding-top: 4px;">
        <?php 
echo CHtml::activeRadioButtonList($model, 'gender', Person::genderOptions(), array('separator' => '&nbsp;&nbsp;&nbsp;&nbsp;'));
?>
    </div>
</div>

<div class="form-group">
    <?php 
echo CHtml::activeLabelEx($model, 'birthdate', array('class' => $label_class));
?>
    <div class="<?php 
echo $input_class;
?>
">
        <?php 
echo CHtml::activeDropDownList($model, 'birthdate_month', Person::birthDateMonthOptions(), array('style' => 'width:80px;'));
?>
Example #11
0
			<td>
				<?php 
echo CHtml::activeCheckBox($column, 'autoIncrement');
?>
				<?php 
echo CHtml::activeLabel($column, 'autoIncrement');
?>
			</td>
		</tr>
		<tr>
			<td>
				<?php 
echo Yii::t('core', 'attribute');
?>
				<?php 
$radio_options = explode('|', CHtml::activeRadioButtonList($column, 'attribute', array('' => Yii::t('core', 'noAttribute'), 'unsigned' => Yii::t('core', 'unsigned'), 'unsigned zerofill' => Yii::t('core', 'unsignedZerofill'), 'on update current_timestamp' => Yii::t('core', 'onUpdateCurrentTimestamp')), array('template' => '{input} {label}', 'separator' => '|')));
?>
			</td>
			<td colspan="2">
				<?php 
echo $radio_options[0];
?>
				<!---
				<?php 
echo CHtml::activeRadioButton($column, 'attribute', array('value' => '', 'id' => CHtml::$idPrefix . 'Column_attribute_'));
?>
				<?php 
echo CHtml::label(Yii::t('core', 'noAttribute'), 'Column_attribute_', array('style' => 'font-style: italic'));
?>
				--->
			</td>
Example #12
0
</p></br>
        <?php 
echo CHtml::beginForm($url);
?>
    <div class="row">
         <?php 
//var_dump($cart);
//echo CHtml::errorSummary($cart,'Ошибка ввода:',null,array('style'=>"color: red"));
?>
         </br> <h3>Введите адрес доставки: </h3></br>
        <?php 
echo CHtml::activeTextField($cart, 'address');
?>
        <?php 
echo CHtml::error($cart, 'address', array('style' => "color: red"));
?>
        </br></br><h3>Укажите желаемое время доставки:</h3>
          <?php 
echo CHtml::activeRadioButtonList($cart, 'hours', array('C 8 00 до 12 00' => 'С 8 00 до 12 00', 'C 12 00 до 18 00' => 'C 12 00 до 18 00', 'C 18 00 до 22 00' => 'C 18 00 до 22 00'));
?>
</br>
        <?php 
echo CHtml::SubmitButton('Отправить');
?>
    </div>
        <?php 
echo CHtml::endForm();
?>
    </div>
    <div id="MakeCartFooter"></div>
</div>
Example #13
0
		<div class="step-pane" id="step3">
			<br>
			<div class="kontakt">
				<?php 
echo CHtml::activeLabelEx($anlegenformmodel, 'kontakt', array("label" => "<strong>Kontaktadresse:</strong> (postalisch + E-Mail; wird standardmäßig im Impressum genannt)"));
?>
				<?php 
echo CHtml::activeTextArea($anlegenformmodel, 'kontakt');
?>
			</div>
			<br><br>

			<div class="zahlung">
				<strong>Wärest du bereit, einen freiwilligen Beitrag über 20€ an die Netzbegrünung zu leisten?</strong><br>(Wenn ja, schicken wir dir eine Rechnung an die oben eingegebene Adresse)<br>
				<?php 
echo CHtml::activeRadioButtonList($anlegenformmodel, "zahlung", VeranstaltungsreihenEinstellungen::$BEREIT_ZU_ZAHLEN);
?>
			</div>
			<br>

			<div class="weiter">
				<?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'success', 'label' => 'Anlegen', 'icon' => 'icon-ok', 'htmlOptions' => array('name' => AntiXSS::createToken('anlegen'))));
?>
			</div>

		</div>
	</div>
	<script>
		$(function() { instanz_neu_anlegen_init(); });
	</script>
Example #14
0
                    &nbsp;&nbsp;
                    <?php 
if (Yii::app()->user->isSuperAdmin()) {
    ?>
                        <?php 
    echo CHtml::submitButton(It::t('site_label', 'do_delete_checked'), array('name' => 'delete_checked', 'onclick' => "return confirm('" . It::t('site_label', 'msg_history__confirm_delete') . "');"));
    ?>
                    <?php 
}
?>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <?php 
echo CHtml::activeRadioButtonList($form, 'date_type_selected', $form->date_type);
?>

                </td>
            </tr>
            </table>
        </div>
        <div class='clear'></div>
    </div>
</div>

<div class="middlenarrow">



<br/><br/>
Example #15
0
    ?>
				<div class='row'>
					<?php 
    echo CHtml::activeLabel($model, 'status');
    ?>
					<?php 
    echo CHtml::activeDropDownList($model, 'status', User::model()->statusOptions);
    ?>
				</div>

				<div class='row'>
					<?php 
    echo CHtml::activeLabel($model, 'banned');
    ?>
					<?php 
    $result = CHtml::activeRadioButtonList($model, 'banned', User::model()->bannedOptions, array('separator' => ''));
    ?>
					<?php 
    echo str_replace('label', 'span', $result);
    ?>
				</div>
			<?php 
}
?>

			<div class='row'>
				<?php 
echo CHtml::activeLabel($model, 'avatar');
?>
				<?php 
echo CHtml::activeFileField($model, 'avatar');
Example #16
0
 public static function enumRadioButtonList($model, $attribute, $htmlOptions = array())
 {
     return CHtml::activeRadioButtonList($model, $attribute, self::enumItem($model, $attribute), $htmlOptions);
 }
Example #17
0
                </tr>
                <tr>
                    <th><?php 
echo CHtml::activeLabelEx($machine, 'responsible');
?>
</th>
                    <td><?php 
$this->widget('application.extensions.combobox.InputComboBox', array('model' => $machine, 'attribute' => 'responsible', 'data' => Yii::app()->user->getUserOpts(), 'options' => array('allowText' => false, 'showStyle' => false), 'htmlOptions' => array('class' => 'focus', 'style' => 'width: 180px')));
?>
                    </td>
                    <th><?php 
echo CHtml::activeLabelEx($machine, 'notify');
?>
</th>
                    <td><?php 
echo CHtml::activeRadioButtonList($machine, 'notify', $machine->getNotifyOptions(), array('style' => 'width:auto', 'separator' => '&nbsp;&nbsp;'));
?>
</td>
                </tr>
                <tr>
                    <th><?php 
echo CHtml::activeLabel($machine, 'desc_info');
?>
</th>
                    <td colspan="3"><?php 
echo CHtml::activeTextArea($machine, 'desc_info', array('class' => 'focus info-area', 'rows' => '5'));
?>
</td>
                </tr>
            </table>
        </div>
		<div class="row">
		
			<?php 
echo CHtml::activeRadioButtonList($model, 'membership_id', CHtml::listData(YumRole::model()->findAll('price != 0'), 'id', 'description'), array('template' => '<div style="float:left;margin-right:5px;">{input}</div>{label}'));
?>
			<div class="clear"></div>
		</div>
		<br />
		<div class="row">
			<?php 
echo $form->labelEx($model, 'payment_id');
?>
 <br />
			<?php 
echo CHtml::activeRadioButtonList($model, 'payment_id', CHtml::listData(YumPayment::model()->findAll(), 'id', 'title'), array('template' => '<div style="float:left;margin-right:5px;">{input}</div>{label}'));
?>
			<div class="clear"></div>
		</div>
		<?php 
echo $form->error($model, 'membership_id');
?>

	<?php 
echo CHtml::submitButton(Yum::t('Order membership'));
?>
	</div> <!-- form -->
	
	<div style="padding:20px 60px 60px;">
		<div class="more-info" id="more-information">mehr Informationen</div>
		<div id="detail-information" style="display:none;">
Example #19
0
						<?php 
echo CHtml::activeDropDownList($model, 'language_id', CHtml::listData(ReferenceLanguages::model()->byOrder()->findAll(), 'id', 'name'), array('data-placeholder' => at('Please select one...'), 'prompt' => '', 'data-live-search' => 'true', 'class' => 'validate[required] form-control select'));
?>
						<?php 
echo CHtml::error($model, 'language_id');
?>
					</div>
				</div>

				<div class="form-group">
					<?php 
echo CHtml::activeLabelEx($model, 'level', array('class' => $label_class));
?>
					<div class="col-md-6 col-xs-12">                                                                                                                                           
						<?php 
echo CHtml::activeRadioButtonList($model, 'level', MyHelper::getLangAbility(), array('class' => 'validate[required] form-control iradio', 'separator' => ' &nbsp; &nbsp; &nbsp; &nbsp; '));
?>
						<?php 
echo CHtml::error($model, 'level');
?>
					</div>
				</div>
			</div>
			
			<div class="panel-footer">
				<?php 
/*echo CHtml::button('Clear Form', array('class'=>'btn btn-default'));*/
?>
				<?php 
echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class' => 'btn btn-primary pull-right'));
?>
	public function radioButtonList($model, $attribute)
	{
		return CHtml::activeRadioButtonList($model, $attribute, $this->all);	
	}
}
?>
                                <li id="station-feature-attention" class="hide">Please select station(s) first</li>
                            </ul>
                        </div>
                    </div>
                </td>
                <td>
                    <div class="select-list">
                        <?php 
echo CHtml::button(It::t('site_label', 'do_select'), array('id' => 'accumulation_select', 'style' => 'width: 100px; display: none;'));
?>
                        <div class="select-option" style="display: none;">
                            <h3>This only applies to Rain, Sun Radiation or Sun Duration.</h3>
                            <?php 
echo CHtml::activeRadioButtonList($form, 'accumulation_period', $form->getAccumulationList(), array('separator' => '', 'template' => '<li>{input} {label}</li>', 'container' => 'ul class="select-ul column-8"'));
?>
                        </div>
                    </div>
                </td>
                <td>
                    <?php 
echo CHtml::activeTextField($form, 'date_from', array('class' => 'date-pick input-calendar', 'style' => 'width: 80px'));
?>
                    <div class="clear"></div>
                    <?php 
echo CHtml::error($form, 'date_from');
?>

                </td>
                <td>
Example #22
0
 public static function activeRadioButtonList($model, $attribute, $data, $htmlOptions = array())
 {
     self::getJValidateInstance()->activeRadioButtonList($model, $attribute, $data, $htmlOptions);
     return parent::activeRadioButtonList($model, $attribute, $data, $htmlOptions);
 }
Example #23
0
    <div class="row-fluid">
        <?php 
echo CHtml::activeLabel($job, 'machine_id', array('class' => 'span2'));
echo '<div class="span10" id="machine-selector">';
$this->widget('application.extensions.combobox.InputComboBox', array('model' => $job, 'attribute' => 'machine_id', 'data' => Machine::model()->getMachineOptions(), 'options' => array('onSelect' => '', 'onChange' => '', 'allowText' => false, 'showStyle' => true), 'htmlOptions' => array('class' => 'focus span12', 'style' => 'margin-left: 0', 'placeholder' => Yii::t('Job', 'Machine Tip'))));
echo '</div>';
?>
    </div>
    <div class="row-fluid">
        <?php 
echo CHtml::activeLabel($job, 'sudoer', array('class' => 'span2'));
echo CHtml::activeTextField($job, 'sudoer', array('class' => 'focus span4'));
echo CHtml::activeLabel($job, 'timeout', array('class' => 'span2'));
echo CHtml::activeTextField($job, 'timeout', array('class' => 'focus span3'));
echo CHtml::tag('label', array('class' => 'span1'), Yii::t('Run', 'Minutes'));
?>
    </div>
    <div class="row-fluid">
        <?php 
echo CHtml::activeLabel($job, 'crucial', array('class' => 'span2'));
echo '<div class="span4" id="curical-opts">';
echo CHtml::activeRadioButtonList($job, 'crucial', $job->getCrucialOptions(), array('separator' => '&nbsp;&nbsp;'));
echo '</div>';
echo CHtml::activeLabel($job, 'failed_repeat', array('class' => 'span2'));
echo CHtml::tag('input', array('value' => $job->failed_repeat, 'type' => 'number', 'max' => 99, 'min' => '0', 'maxlength' => '2', 'class' => 'focus span1', 'style' => 'text-align: center', 'placeholder' => '0', 'name' => 'Job[failed_repeat]', 'id' => 'Job_failed_repeat'));
?>
    </div>
</div>
<?php 
echo CHtml::endForm();
$this->endWidget('zii.widgets.jui.CJuiDialog');
Example #24
0
    ?>
    <?php 
    echo '<h1>' . $msg . '</h1>';
} else {
    ?>
    <div class="form">
	<?php 
    echo CHtml::beginForm();
    ?>

	<?php 
    echo CHtml::errorSummary($model);
    ?>
	
	<?php 
    echo CHtml::activeRadioButtonList($model, 'type', UserModel::model()->arr_of_type);
    ?>

	<div class="row">
	    <?php 
    echo CHtml::activeLabel($model, 'name');
    ?>
	    <?php 
    echo CHtml::activeTextField($model, 'name');
    ?>
	</div>

	<div class="row" id="surname" style="display: none;">
	    <?php 
    echo CHtml::activeLabel($model, 'surname');
    ?>
Example #25
0
echo $form->labelEx($model, 'text');
?>
            <?php 
echo $form->textArea($model, 'text', array('style' => 'width:100%', 'rows' => '6'));
?>
            <?php 
echo $form->error($model, 'text');
?>
        </div>

        <div class="row">
            <?php 
echo $form->labelEx($model, 'type');
?>
            <?php 
echo CHtml::activeRadioButtonList($model, 'type', array(t('Demand'), t('Offer')), array('labelOptions' => array('style' => 'display:inline'), 'separator' => ' '));
?>
            <?php 
echo $form->error($model, 'type');
?>
        </div>
        
        <div class="row">
            <?php 
echo $form->labelEx($model, 'price');
?>
            <?php 
echo $form->textField($model, 'price');
?>
            <?php 
echo $form->dropDownList($model, 'currency', $this->settings['currency']);
    ?>
            </td>    
        </tr>    

    <?php 
}
?>
    </table>
</div>
<?php 
if ($formulas) {
    ?>
    <div style="float: left; margin-left:20px;">
        <b>Choose formula:</b><br/>
        <?php 
    echo CHtml::activeRadioButtonList($calculation_db, 'formula', $formulas, array('separator' => '&nbsp;'));
    ?>
    </div>
<?php 
}
?>
<div class="clear"></div>

<br/><br/>
<?php 
echo CHtml::submitButton($calculation_db->calculation_id ? 'Update' : 'Add');
if ($calculation_db->calculation_id) {
    ?>
    <?php 
    echo CHtml::button('Delete', array('onclick' => 'deleteCalculation()'));
}
Example #27
0
				<div class="row" style="height:42px;">
					<?php 
echo CHtml::label('Kuvauspäivämäärä', '');
?>
 <br />
					<?php 
echo CHtml::textField('day', '', array('maxlength' => '2', 'size' => '2'));
echo CHtml::textField('month', '', array('maxlength' => '2', 'size' => '2'));
echo CHtml::textField('year', '', array('maxlength' => '4', 'size' => '4'));
?>
				</div>
				
				<div class="row" id="aikavarma" style="position:relative;">
					<?php 
echo CHtml::activeLabel($model, 'aikavarma', array('class' => 'properlabel'));
echo CHtml::activeRadioButtonList($model, 'aikavarma', $model->getTypeOptions(), array('separator' => '', 'labelOptions' => array('style' => 'font-weight:normal')));
?>
				</div>
				
			</td>
			
			<td class="withbordernopadding">
			
				<div>
					<?php 
$this->renderPartial('_tagGrid', array('styleContext' => 'search', 'dataProvider' => $model));
?>
				</div>	
			
			</td>
			
<div class="form">
<p class="note">
<?php 
echo Yii::t('app', 'Fields with');
?>
 <span class="required">*</span> <?php 
echo Yii::t('app', 'are required');
?>
.
</p>

<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'membership-form', 'enableAjaxValidation' => true));
echo $form->errorSummary($model);
?>
	<div class="row">
<?php 
echo $form->labelEx($model, 'type');
echo CHtml::activeRadioButtonList($model, 'type', CHtml::listData(YumRole::model()->findAll('price != 0'), 'id', 'title'));
echo $form->error($model, 'type');
?>
</div>

<?php 
echo CHtml::Button(Yii::t('app', 'Cancel'), array('submit' => array('membership/index')));
echo CHtml::submitButton(Yum::t('Buy membership'));
$this->endWidget();
?>
</div> <!-- form -->
Example #29
0
 /**
  * Renders a radio button list for a model attribute.
  * This method is a wrapper of {@link CHtml::activeRadioButtonList}.
  * Please check {@link CHtml::activeRadioButtonList} for detailed information
  * about the parameters for this method.
  * @param CModel $model the data model
  * @param string $attribute the attribute
  * @param array $data value-label pairs used to generate the radio button list.
  * @param array $htmlOptions addtional HTML options.
  * @return string the generated radio button list
  */
 public function radioButtonList($model, $attribute, $data, $htmlOptions = array())
 {
     return CHtml::activeRadioButtonList($model, $attribute, $data, $htmlOptions);
 }
Example #30
0
?>
					<div class="col-md-6 col-xs-12">
						<?php 
echo CHtml::activeDropDownList($language, 'language_id', CHtml::listData(ReferenceLanguages::model()->byOrder()->findAll(), 'id', 'name'), array('data-placeholder' => at('Please select one...'), 'prompt' => '', 'data-live-search' => 'true', 'class' => 'validate[required] form-control select'));
?>
						<div id="error_language_id" class="errorMessage"></div>
					</div>
				</div>

				<div class="form-group">
					<?php 
echo CHtml::activeLabelEx($language, 'level', array('class' => $label_class));
?>
					<div class="col-md-6 col-xs-12">                                                                                                                                           
						<?php 
echo CHtml::activeRadioButtonList($language, 'level', MyHelper::getLangAbility(), array('separator' => ' &nbsp; &nbsp; &nbsp; &nbsp; '));
?>
						<div id="error_level" class="errorMessage"></div>
					</div>
				</div>
			</div>
			
			<div class="panel-footer">
				<?php 
/*echo CHtml::button('Clear Form', array('class'=>'btn btn-default'));*/
?>
				
				<a href="#" class="btn btn-primary pull-right" id="btnSubmitLanguages"><?php 
echo $language->isNewRecord ? 'Create' : 'Save';
?>
</a>