Пример #1
0
					<div class="help-block"><span class="text-danger"><?php 
echo $form->error($model, 'from');
?>
</span></div>
				</div>
			</div>
			<?php 
if ($model->isNewRecord) {
    ?>
    			<div class="form-group">
                	<?php 
    echo Chtml::label(Yii::t('app', 'Кому') . ' <span class="required">*</span>', '', array('class' => 'col-md-3 control-label', 'style' => 'padding-top: 15px;'));
    ?>
                	<div class="col-md-9">
    		            <?php 
    echo Chtml::radioButtonList('type', $type, array('0' => Yii::t('app', 'Всем пользователям'), '1' => Yii::t('app', 'Определенным пользователям')), array('style' => 'margin-left:-10px'));
    ?>
    	            	<div class="help-block"><span class="text-danger"></span></div>
    	            </div>
    	        </div>
		    <?php 
}
?>
			<?php 
echo $model->isNewRecord ? '<div class="form-group" id="emailRow" style="display:none;">' : '<div class="form-group">';
?>
				<?php 
echo $form->labelEx($model, 'to', array('class' => 'col-md-3 control-label'));
?>
				<div class="col-md-9">
					<?php 
Пример #2
0
} else {
    if (Yii::app()->user->hasFlash('error')) {
        ?>
					
					<div class="flash-error">
						<?php 
        echo Yii::t('citizen', Yii::app()->user->getFlash('error'));
        ?>
					</div>
	
	<?php 
    }
}
echo Chtml::hiddenField('geom');
echo "<div class=\"jFormComponent\">";
echo Chtml::radioButtonList('geom_type', 1, array('1' => Yii::t('citizen', 'Evaluate the quality of service'), '2' => Yii::t('citizen', 'Report a fault on the water network')), array('labelOptions' => array('style' => 'display:inline'), 'uncheckValue' => 1, 'separator' => '<br>'));
echo "</div>";
?>
	
	<div class="jFormComponent" id="quality">
		<?php 
echo CHtml::label('Quality <span class="required">*</span>', 'qualities_list');
?>
		<?php 
echo CHtml::dropDownList('qualities_list', '', CHtml::listData(WaterQualities::model()->findAll(array('order' => 'priority')), 'id', 'quality'), array('empty' => Yii::t('citizen', 'Select Quality')));
?>
	</div>
	
	<div class="jFormComponent" id="fault">
		<?php 
echo CHtml::label('Fault <span class="required">*</span>', 'faults_list');