Sha256: 02d831dbda9ddd7dec4cd9cc3737c3f4fe96d5c01b6712aaad53afd24af2daa8

Contents?: true

Size: 939 Bytes

Versions: 8

Compression:

Stored size: 939 Bytes

Contents

<%= form_for resource_instance_variable, :url => resource_path(resource_instance_variable), :remote => true do |f| %>
  <div id="errors" style="display: none"></div>
  <table>
    <%- resource_handler.attributes.each do |attribute| -%>
    <tr>
      <%- if attribute[:type] == :boolean -%>
      <td></td>
      <td class="checkbox">
        <%= f.send :check_box, attribute[:name] -%>
        <%= f.send :label, attribute[:name] %>
      </td>
      <%- elsif attribute[:type] == :text -%>
      <td class="input"><%= f.send :text_area, attribute[:name] -%></td>
      <%- else -%>
      <td class="label"><%= f.send :label, attribute[:name] %></td>
      <td class="input"><%= f.send :text_field, attribute[:name], :class => 'thin_border' -%></td>
      <%- end -%>
    </tr>
    <%- end -%>
    <tr>
      <td class="submit" colspan="2">
        <%= f.button t('save'), :class => 'button' %>
      </td>
    </tr>
  </table>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
alchemy_cms-2.2.rc13 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-2.2.rc11 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-2.2.rc8 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-2.2.rc7 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-2.2.rc6 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-2.2.rc3 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-2.2.rc2 app/views/alchemy/admin/resources/_form.html.erb
alchemy_cms-2.2.rc1 app/views/alchemy/admin/resources/_form.html.erb