Sha256: d453c71b840bbe4d9bb391fa95f3f156053564606c0490b953b7cad5fac93467

Contents?: true

Size: 854 Bytes

Versions: 72

Compression:

Stored size: 854 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,
        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

72 entries across 72 versions & 1 rubygems

Version Path
alchemy_cms-5.3.8 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.3.7 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.3.6 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.3.5 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.3.4 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.3.3 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.3.2 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.3.1 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.3.0 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.2.7 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.2.6 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.1.10 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.0.10 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-4.6.7 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.2.5 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.1.9 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.0.9 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-4.6.6 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.2.4 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-5.1.8 app/views/alchemy/admin/resources/_form.html.erb