Sha256: 4023addf701711389b821128dde2f56214b4d0239964d686ffd9333a94ccf1df

Contents?: true

Size: 634 Bytes

Versions: 6

Compression:

Stored size: 634 Bytes

Contents

<%= alchemy_form_for resource_instance_variable, url: resource_path(resource_instance_variable, current_location_params) do |f| %>
  <% resource_handler.editable_attributes.each do |attribute| %>
    <% if relation = attribute[:relation] %>
      <%= f.association relation[:name].to_sym,
        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 %>
  <%= f.submit Alchemy.t(:save) %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alchemy_cms-3.3.3 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.3.2 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.3.1 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.3.0 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.3.0.rc2 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.3.0.rc1 app/views/alchemy/admin/resources/_form.html.erb