Sha256: a2f2202c111e947cc652d1c5afcca1def13f12457cff5f62ebd8029613f47ebe

Contents?: true

Size: 439 Bytes

Versions: 5

Compression:

Stored size: 439 Bytes

Contents

- unless <%=plural_child_name%>.empty?
  = form_for [:admin, <%=linking_model_name%>.new], :remote => true do |f|
    %table
      %tr
        %td= f.select :<%=child_name%>_id,  <%=plural_child_name%>, {:include_blank => true, :prompt => "add <%=child_name%>" }, :class => "chosen_select"
        %td

    = f.hidden_field :<%=resource_name%>_id, :value => <%=resource_name%>.id

    = f.submit "Добавить", :class =>'black_button'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ideyabox-0.1.12 lib/generators/ideyabox/many_to_many/templates/views/_form.html.haml
ideyabox-0.1.11 lib/generators/ideyabox/many_to_many/templates/views/_form.html.haml
ideyabox-0.1.10 lib/generators/ideyabox/many_to_many/templates/views/_form.html.haml
ideyabox-0.1.9 lib/generators/ideyabox/many_to_many/templates/views/_form.html.haml
ideyabox-0.1.8 lib/generators/ideyabox/many_to_many/templates/views/_form.html.haml