Sha256: 35e136a119329795ffd21f7c061997dc9b6381de0b4f89466ba02e671072ca0f

Contents?: true

Size: 595 Bytes

Versions: 13

Compression:

Stored size: 595 Bytes

Contents

<%= alchemy_form_for resource_instance_variable, url: resource_path(resource_instance_variable) 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: _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 _t(:save) %>
<% end %>

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.1.3 app/views/alchemy/admin/resources/_form.html.erb
lc_alchemy_cms-3.2.1 app/views/alchemy/admin/resources/_form.html.erb
lc_alchemy_cms-3.2.0 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.2.0 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.2.0.rc1 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.2.0.beta app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.1.1 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.1.0 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.1.0.rc3 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.1.0.rc2 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.1.0.rc1 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.1.0.beta6 app/views/alchemy/admin/resources/_form.html.erb