Sha256: 0d456517af22df43b3f581b21e1a96dcc27ad8ae6994d692c30ea7a9d885b4ac
Contents?: true
Size: 805 Bytes
Versions: 2
Compression:
Stored size: 805 Bytes
Contents
= form_for resource, :url => polymorphic_path([:admin, parent, resource]), :remote => request.xhr? do |f| .errors= resource_error_messages! .field = f.label :name, nil, :class => :req = f.text_field :name .field = f.label :template, nil, :class => :req = f.text_field :template %fieldset.poll-answers.nested-associations %legend= f.label(:poll_answers) .fields = render_nested_attribute_association(:poll_answers, f) .actions = link_to_add_nested_attribute(:poll_answers) - unless request.xhr? = render 'shared/admin/region_type_select', :f => f .actions = f.submit -# the js templates for adding fields, it would probably be nice if this was rendered once, perhaps :javascript #{nested_attribute_template_js(Poll, :poll_answers)}
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
e9_polls-1.0.4 | app/views/e9_polls/polls/_form.html.haml |
e9_polls-1.0.3 | app/views/e9_polls/polls/_form.html.haml |