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/login.html.erb | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lib/generators/nifty/authentication/templates/views/erb/login.html.erb (limited to 'lib/generators/nifty/authentication/templates/views/erb/login.html.erb') diff --git a/lib/generators/nifty/authentication/templates/views/erb/login.html.erb b/lib/generators/nifty/authentication/templates/views/erb/login.html.erb new file mode 100644 index 0000000..1cbc428 --- /dev/null +++ b/lib/generators/nifty/authentication/templates/views/erb/login.html.erb @@ -0,0 +1,30 @@ +<%% title "Log in" %> + +

Don't have an account? <%%= link_to "Sign up!", signup_path %>

+ +<%- if options[:authlogic] -%> +<%%= form_for @<%= session_singular_name %> do |f| %> + <%%= f.error_messages %> +
+ <%%= f.label :username %> + <%%= f.text_field :username %> +
+
+ <%%= f.label :password %> + <%%= f.password_field :password %> +
+
<%%= f.submit "Log in" %>
+<%% end %> +<%- else -%> +<%%= form_tag <%= session_plural_name %>_path do %> +
+ <%%= label_tag :login, "Username or Email Address" %> + <%%= text_field_tag :login, params[:login] %> +
+
+ <%%= label_tag :password %> + <%%= password_field_tag :password %> +
+
<%%= submit_tag "Log in" %>
+<%% end %> +<%- end -%> -- cgit v1.2.3