Created
July 5, 2012 03:25
-
-
Save Asgaroth/3050987 to your computer and use it in GitHub Desktop.
Yii Foundation 3 Form Fields
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @var FounActiveForm | |
*/ | |
$form=$this->beginWidget('foundation.widgets.FounActiveForm'); ?> | |
?> | |
<?php echo $form->textFieldRow($model, "field1", array("placeholder" => "Standard Input")); ?> | |
<?php echo $form->textFieldRow($model, "field1_1", array("placeholder" => "Street")); ?> | |
<div class="row"> | |
<div class="six columns"> | |
<?php echo $form->textField( $model, "field1_2", array("placeholder" => "City")); ?> | |
</div> | |
<div class="three columns"> | |
<?php echo $form->textField( $model, "field1_3", array("placeholder" => "State")); ?> | |
</div> | |
<div class="three columns"> | |
<?php echo $form->textField( $model, "field2", array("placeholder" => "ZIP")); ?> | |
</div> | |
</div> | |
<?php echo $form->textArea( $model, "field2", array("placeholder" => "Message")); ?> | |
<?php $this->endWidget(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment