From ebbfe3d77efddbe8f97fa82c171632ac4cfcf6da Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 27 Sep 2012 22:39:08 +0200 Subject: added in leap web users - one repo to rule them all --- users/app/views/.gitkeep | 0 users/app/views/sessions/new.html.haml | 7 +++++++ users/app/views/users/new.html.haml | 10 ++++++++++ 3 files changed, 17 insertions(+) create mode 100644 users/app/views/.gitkeep create mode 100644 users/app/views/sessions/new.html.haml create mode 100644 users/app/views/users/new.html.haml (limited to 'users/app/views') diff --git a/users/app/views/.gitkeep b/users/app/views/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/users/app/views/sessions/new.html.haml b/users/app/views/sessions/new.html.haml new file mode 100644 index 0000000..39ee7bf --- /dev/null +++ b/users/app/views/sessions/new.html.haml @@ -0,0 +1,7 @@ +%h2=t :login += simple_form_for :session, :url => sessions_path, :html => { :id => :new_session } do |f| + %legend=t :login_message + = f.input :login, :input_html => { :id => :srp_username } + = f.input :password, :required => true, :input_html => { :id => :srp_password } + = f.button :submit, :value => t(:login), :class => 'btn-primary' + = link_to t(:cancel), root_url, :class => :btn diff --git a/users/app/views/users/new.html.haml b/users/app/views/users/new.html.haml new file mode 100644 index 0000000..f6ece3a --- /dev/null +++ b/users/app/views/users/new.html.haml @@ -0,0 +1,10 @@ +%h2=t :signup += simple_form_for @user do |f| + %legend=t :signup_message + = f.input :login, :input_html => { :id => :srp_username } + = f.input :password, :required => true, :input_html => { :id => :srp_password } + = f.input :password_confirmation, :required => true, :input_html => { :id => :srp_password_confirmation } + = f.input :password_verifier, :as => :hidden, :input_html => { :id => :srp_password_verifier } + = f.input :password_salt, :as => :hidden, :input_html => { :id => :srp_salt } + = f.button :submit, :value => t(:signup), :class => 'btn-primary' + = link_to t(:cancel), root_url, :class => :btn -- cgit v1.2.3