Skip to content

Commit

Permalink
Add button from type
Browse files Browse the repository at this point in the history
  • Loading branch information
voltan committed Aug 23, 2016
1 parent 99ed8c3 commit cd44a74
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions lib/Pi/Form/View/Helper/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,17 @@ public function render(FormInterface $form, $options = array())
</div>
</div>
<div class="%error_size% help-block">%error_content%</div>
EOT;
break;

case 'button':
$labelPattern = '';
$elementPattern =<<<EOT
<div class="%element_size% js-form-element">
%element_content%
%desc_html%
</div>
<div class="%error_size% help-block">%error_content%</div>
EOT;
break;

Expand Down

0 comments on commit cd44a74

Please sign in to comment.