Sha256: e0163361dc5aa6e26e2f2579b46f859b0c082739a1e892d93e084f3b4a8ff6ed

Contents?: true

Size: 586 Bytes

Versions: 14

Compression:

Stored size: 586 Bytes

Contents

<%= alchemy_form_for resource_instance_variable, url: resource_path(resource_instance_variable) do |f| %>
  <% resource_handler.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

14 entries across 14 versions & 1 rubygems

Version Path
alchemy_cms-3.0.4 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.1.0.beta5 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.1.0.beta4 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.0.3 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.1.0.beta3 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.1.0.beta2 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.1.0.beta1 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.0.2 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.0.1 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.0.0 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.0.0.rc8 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.0.0.rc7 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.0.0.rc6 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.0.0.rc5 app/views/alchemy/admin/resources/_form.html.erb