From b80bd744ad873f6fc43018bc4bfb90677de167bd Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Mon, 17 Dec 2012 12:01:45 +0100 Subject: Start of GS5. --- .../templates/views/erb/_form.html.erb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lib/generators/nifty/authentication/templates/views/erb/_form.html.erb (limited to 'lib/generators/nifty/authentication/templates/views/erb/_form.html.erb') diff --git a/lib/generators/nifty/authentication/templates/views/erb/_form.html.erb b/lib/generators/nifty/authentication/templates/views/erb/_form.html.erb new file mode 100644 index 0000000..4e1c47d --- /dev/null +++ b/lib/generators/nifty/authentication/templates/views/erb/_form.html.erb @@ -0,0 +1,20 @@ +<%%= form_for @<%= user_singular_name %> do |f| %> + <%%= f.error_messages %> +
+ <%%= f.label :username %> + <%%= f.text_field :username %> +
+
+ <%%= f.label :email, "Email Address" %> + <%%= f.text_field :email %> +
+
+ <%%= f.label :password %> + <%%= f.password_field :password %> +
+
+ <%%= f.label :password_confirmation, "Confirm Password" %> + <%%= f.password_field :password_confirmation %> +
+
<%%= f.submit (@<%= user_singular_name %>.new_record? ? "Sign up" : "Update") %>
+<%% end %> -- cgit v1.2.3