Sha256: d502f8fb44bbf4ec7aa6fd3abed18787662eaafa0c012d4d8cac924d2623e3f0

Contents?: true

Size: 572 Bytes

Versions: 9

Compression:

Stored size: 572 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| %>
  <%= slim_field_for_attribute(arg_1, arg_0) %>
  <%- end %>
  = f.tb_save_buttons('<%= module_name_formatted.singularize.humanize.titlecase %>', admin_<%= module_name_formatted %>_path)

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

Version data entries

9 entries across 9 versions & 1 rubygems

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