Sha256: a8f34dd42004be0af8c8d6d676a2a87f923f944690dec3b071b6798f251523a7
Contents?: true
Size: 897 Bytes
Versions: 1
Compression:
Stored size: 897 Bytes
Contents
<%= alchemy_form_for resource_instance_variable, url: resource_path(resource_instance_variable, search_filter_params) do |f| %> <% resource_handler.editable_attributes.each do |attribute| %> <% if relation = attribute[:relation] %> <%= f.association relation[:name].to_sym, collection: relation[:collection], label_method: relation[:attr_method], include_blank: Alchemy.t(:blank, scope: 'resources.relation_select'), input_html: {class: 'alchemy_selectbox'} %> <% else %> <%= f.input attribute[:name], resource_attribute_field_options(attribute) %> <% end %> <% end %> <% if f.object.respond_to?(:tag_list) %> <div class="input string autocomplete_tag_list"> <%= f.label :tag_list %> <%= render 'alchemy/admin/partials/autocomplete_tag_list', f: f %> </div> <% end %> <%= f.submit Alchemy.t(:save) %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-6.0.0.b1 | app/views/alchemy/admin/resources/_form.html.erb |