Sha256: 20897da87b073897b444938eefc2b651b18e8de122e534713b79b36e9ca2812d

Contents?: true

Size: 612 Bytes

Versions: 10

Compression:

Stored size: 612 Bytes

Contents

<%%= tb_form_for [:admin, @<%=module_name_formatted.singularize%>], :remote => true, :data => {:errors => :inline, :success => admin_<%= module_name_formatted %>_path} do |f| %>
  
  <%%= tb_form_errors(f.object, :base) %>
  <%- attributes.collect{ |att| att.split(':') }.each do |arg_0, arg_1| %>
  <%= field_for_attribute(arg_1, arg_0) %>
  <%- end %>
  <%%= f.tb_save_buttons('<%= module_name_formatted.singularize.humanize.titlecase %>', admin_<%= module_name_formatted %>_path) %>

<%% end %>

<script>
  document.addEventListener('DOMContentLoaded', app.admin.<%= module_name_formatted %>.edit);
</script>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tb_core-1.5.4 lib/generators/spud/templates/views/admin/_form.html.erb
tb_core-1.5.3 lib/generators/spud/templates/views/admin/_form.html.erb
tb_core-1.5.2 lib/generators/spud/templates/views/admin/_form.html.erb
tb_core-1.5.1 lib/generators/spud/templates/views/admin/_form.html.erb
tb_core-1.5.0 lib/generators/spud/templates/views/admin/_form.html.erb
tb_core-1.4.8 lib/generators/spud/templates/views/admin/_form.html.erb
tb_core-1.4.7 lib/generators/spud/templates/views/admin/_form.html.erb
tb_core-1.4.6 lib/generators/spud/templates/views/admin/_form.html.erb
tb_core-1.4.5 lib/generators/spud/templates/views/admin/_form.html.erb
tb_core-1.4.4 lib/generators/spud/templates/views/admin/_form.html.erb