Created
May 3, 2013 14:46
-
-
Save yobud/5509553 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
- block collection_widget | |
- set attr = attr|merge({'data-prototype': block('prototype')|trim }) | |
= block('collection_rows')|replace({'\n':''})|raw | |
- block prototype | |
- if prototype is defined | |
- include 'IfgmSTVBundle:Category:_translationPrototype.html.haml' | |
- block collection_rows | |
- spaceless | |
= form_errors(form) | |
<div #{ block('widget_container_attributes') } > | |
- for prototype in form | |
= form_errors(prototype) | |
- include 'IfgmSTVBundle:Category:_translationPrototype.html.haml' | |
%span.button.add-collection-item | |
Add | |
</div> | |
= form_rest(form) |
This file contains hidden or 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
%div | |
- for field in prototype | |
= form_row(field) | |
%span.button.danger.remove-collection-item | |
Remove |
This file contains hidden or 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
- form_theme form "IfgmSTVBundle:Category:_translationCollectionTemplate.html.haml" | |
%form{:method => 'post', :action => path(form.vars.value.id ? 'ifgm_stv_category_admin_edit' : 'ifgm_stv_category_admin_new', {id: form.vars.value.id}), :class => 'custom'} | |
= form_errors(form) | |
= form_widget(form) | |
%div | |
%button{:type => 'submit'} | |
= 'send'|trans |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment