Sha256: 6c3d6b1316703b83c5fe00edecc7f94c3b8b261c839a26f61221d579b3f56692
Contents?: true
Size: 942 Bytes
Versions: 5
Compression:
Stored size: 942 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(<%= application_name %>.<%= module_name_formatted %>.init); </script>
Version data entries
5 entries across 5 versions & 1 rubygems