From 34413615683677e26213263fb98f63b5aab64872 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 12 Mar 2016 20:47:22 +0100 Subject: Adding simple_form, adding profile settings, header image --- lib/templates/haml/scaffold/_form.html.haml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/templates/haml/scaffold/_form.html.haml (limited to 'lib/templates') diff --git a/lib/templates/haml/scaffold/_form.html.haml b/lib/templates/haml/scaffold/_form.html.haml new file mode 100644 index 000000000..ac3aa7bc1 --- /dev/null +++ b/lib/templates/haml/scaffold/_form.html.haml @@ -0,0 +1,10 @@ += simple_form_for(@<%= singular_table_name %>) do |f| + = f.error_notification + + .form-inputs + <%- attributes.each do |attribute| -%> + = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> + <%- end -%> + + .form-actions + = f.button :submit -- cgit