Sha256: e53aa3ad7bfda2faad52dc7355c05e8293c496cad51954d0842ac42d3c5e5666
Contents?: true
Size: 1.67 KB
Versions: 1
Compression:
Stored size: 1.67 KB
Contents
<div class="nested-fields <%= field.attribute %>"> <div class="bibibibib"> <% field.nested_fields_for_builder(f).each do |attribute| -%> <% if attribute.html_class.to_s != "boolean"%> <div class="field-unit field-unit--<%= attribute.html_class %>"> <%= render_field attribute, f: f %> </div> <% else %> <%= render_field attribute, f: f %> <% end -%> <% end -%> </div> <!-- <div class="button remove-field button remove-field__option_buton"> <%#= link_to( t("add option"), [:showproductoption, # order_number: "toto", # quotation_id: "#{page.resource.id}", # user_id: "#{page.resource.user_id}" ], remote: :true, :'data-dismiss' => "modal", :'data-toggle' => "modal", :'data-target' => "#exampleModal", # method: :get, ) %> </div> --> <!-- <div class="button remove-field button remove-field__option_buton" > <%#= link_to showproductoption_path, remote: true,:'data-dismiss' =>'modal', :'data-toggle' => 'modal', :'data-target' => '#exampleModal' do%> <div class="specialite">réseau</div> <%# end %> </div> --> <% if field.attribute.to_s == "line_items"%> <div class="button remove-field button remove-field__option_buton executer-button" > <div class="specialite">Ajouter des options</div> </div> <% end %> <!-- <a href='#' id='executer-button' class='btn btn-default'>Executer</a> --> <div class="button remove-field"> <%= link_to_remove_association I18n.t("administrate.fields.nested_has_many.remove", resource: field.associated_class_name.titleize), f %> </div> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
worker-field-nested_has_many-0.1.0 | app/views/fields/nested_has_many/_fields.html.erb |