Sha256: 73ecf70232dadeed3b937a740acca297764278dca6241674b7118e81151370da

Contents?: true

Size: 928 Bytes

Versions: 6

Compression:

Stored size: 928 Bytes

Contents

<%%= form_for [:admin, @<%=module_name_formatted.singularize%>], :html => {:class => 'form-horizontal'} do |f| %>

  <%%= error_messages_for(f.object) %>

  <fieldset>
    <legend>Details</legend> <%attributes.each do |attribute|%>
      <%attribute_args = attribute.split(":")%>
      <div class="control-group">
        <%%= f.label :<%=attribute_args[0]%>, :class => "control-label" %>
        <div class="controls">
          <%= field_for_attribute(attribute_args[1], attribute_args[0]) %>
        </div>
      </div> <%end%>
  </fieldset>

  <div class="form-actions">
    <%%= f.submit "Save <%=module_name_formatted.singularize.humanize.titlecase%>", :class => "btn btn-primary form-btn", "data-loading-text" => "Saving..." %> or <%%= link_to "Cancel", admin_<%= module_name_formatted %>_path, :class => "btn" %>
  </div>

<%% end %>

<script>
  $(document).ready(app.admin.<%= module_name_formatted %>.edit);
</script>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tb_core-1.2.8 lib/generators/spud/templates/views/admin/_form.html.erb
tb_core-1.2.7 lib/generators/spud/templates/views/admin/_form.html.erb
tb_core-1.2.6 lib/generators/spud/templates/views/admin/_form.html.erb
tb_core-1.2.4 lib/generators/spud/templates/views/admin/_form.html.erb
tb_core-1.2.3 lib/generators/spud/templates/views/admin/_form.html.erb
tb_core-1.2.2 lib/generators/spud/templates/views/admin/_form.html.erb