Skip to content

Instantly share code, notes, and snippets.

@Asgaroth
Created July 15, 2012 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Asgaroth/3118835 to your computer and use it in GitHub Desktop.
Save Asgaroth/3118835 to your computer and use it in GitHub Desktop.
Yii Foundation 3 Large Form Example
<?php $form=$this->beginWidget('foundation.widgets.FounActiveForm'); ?>
<fieldset>
<legend>Large Form Example</legend>
<div class="row">
<div class="five columns">
<?php echo $form->textFieldRow($model, "field14"); ?>
<?php echo $form->textFieldRow($model, "field15"); ?>
<?php echo $form->textFieldRow($model, "field16", array('prefix' => '@', 'placeholder' => 'asgarothbelem')); ?>
<?php echo $form->textFieldRow($model, "field17", array(
'postfix' => '.com',
'postfixOptions' => array('size' => 3),
'placeholder' => 'foundation.oakwebdev')); ?>
</div>
<div class="five columns">
<?php echo $form->textFieldRow($model, "field18"); ?>
<?php echo $form->textFieldRow($model, "field19"); ?>
</div>
</div>
<?php echo $form->textFieldRow($model, "field20", array('placeholder'=>"Street (e.g. 123 Awesome St.)")); ?>
<div class="row">
<div class="six columns">
<?php echo $form->textField( $model, "field21", array("placeholder" => "City")); ?>
</div>
<div class="two columns">
<?php echo $form->dropdownlist( $model, "field22", array("CA" => "CA")); ?>
</div>
<div class="four columns">
<?php echo $form->textField( $model, "field23", array("placeholder" => "ZIP")); ?>
</div>
</div>
</fieldset>
<?php $this->endWidget(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment