Ejemplo n.º 1
0
<div class="form">

<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'job-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('enctype' => 'multipart/form-data')));
?>

	<?php 
echo $form->errorSummary(array_merge(AdminHelper::blocsErrors($blocs), array($model)));
?>
	
	<?php 
foreach (Yii::app()->languageManager->suffixes as $suffix) {
    ?>

		<div class="row">
			<?php 
    echo $form->labelEx($model, 'title' . $suffix);
    ?>
			<?php 
    echo $form->textField($model, 'title' . $suffix, array('size' => 60, 'maxlength' => 255));
    ?>
			<?php 
    echo $form->error($model, 'title' . $suffix);
    ?>
		</div>
	
	<?php 
}
?>
	
	<div class="row">
Ejemplo n.º 2
0
<div class="form">

<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'contest-intro-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('enctype' => 'multipart/form-data')));
?>

	<?php 
echo $form->errorSummary(AdminHelper::blocsErrors($blocs));
?>
	
	<?php 
$this->widget('application.widgets.AdminBlocsWidget', array('models' => $blocs, 'form' => $form));
?>

	<div class="row buttons">
		<?php 
echo CHtml::submitButton(Yii::t('admin', 'Save'));
?>
	</div>

<?php 
$this->endWidget();
?>

</div><!-- form -->
Ejemplo n.º 3
0
<div class="form">

<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'content-page-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('enctype' => 'multipart/form-data')));
?>

	<?php 
echo $form->errorSummary(array_merge(AdminHelper::blocsErrors($blocs), array($contentPage)));
?>
	
	<?php 
foreach (Yii::app()->languageManager->suffixes as $suffix) {
    ?>

	<div class="row">
		<?php 
    echo $form->labelEx($contentPage, 'title' . $suffix);
    ?>
		<?php 
    echo $form->textField($contentPage, 'title' . $suffix, array('style' => 'width: 70%;'));
    ?>
		<?php 
    echo $form->error($contentPage, 'title' . $suffix);
    ?>
	</div>
	
	<?php 
}
?>
	
	<fieldset class="separator">
Ejemplo n.º 4
0
<div class="form">

<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'product-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('enctype' => 'multipart/form-data')));
?>

	<?php 
echo $form->errorSummary(array_merge($productImages, AdminHelper::blocsErrors($productTab1), AdminHelper::blocsErrors($productTab2), array($product)));
?>
	
	<?php 
foreach (Yii::app()->languageManager->suffixes as $suffix) {
    ?>

		<div class="row">
			<?php 
    echo $form->labelEx($product, 'name' . $suffix);
    ?>
			<?php 
    echo $form->textField($product, 'name' . $suffix, array('style' => 'width: 60%;'));
    ?>
			<?php 
    echo $form->error($product, 'name' . $suffix);
    ?>
		</div>
	
	<?php 
}
?>
	
	<div class="row">