Sha256: 290f1ace1ba7e4530ba828a9ed3eb0f321faed8b09a5db7117b32d1ff87c53c6

Contents?: true

Size: 835 Bytes

Versions: 25

Compression:

Stored size: 835 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 %>
  <% if f.object.respond_to?(:tag_list) %>
    <div class="input string">
      <%= f.label :tag_list %>
      <%= render 'alchemy/admin/partials/autocomplete_tag_list', f: f %>
    </div>
  <% end %>
  <%= f.submit Alchemy.t(:save) %>
<% end %>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
alchemy_cms-4.0.6 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.6.7 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.6.6 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-4.0.5 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-4.0.4 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-4.0.3 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.6.5 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-4.0.2 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-4.0.1 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.6.4 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-4.0.0 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.6.3 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.6.2 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-4.0.0.rc2 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-4.0.0.rc1 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.6.1 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-4.0.0.beta app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.6.0 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.5.0 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-3.4.2 app/views/alchemy/admin/resources/_form.html.erb