You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by al...@apache.org on 2015/08/24 13:41:50 UTC

[24/50] [abbrv] incubator-taverna-databundle-viewer git commit: Update page for restore password

Update page for restore password


Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-databundle-viewer/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-taverna-databundle-viewer/commit/37bdcdd7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-taverna-databundle-viewer/tree/37bdcdd7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-taverna-databundle-viewer/diff/37bdcdd7

Branch: refs/heads/master
Commit: 37bdcdd707902fa30578731ab5656bb45d71d933
Parents: 19c091c
Author: Denis Karyakin <sa...@gmail.com>
Authored: Tue Aug 18 00:54:15 2015 +0300
Committer: Denis Karyakin <sa...@gmail.com>
Committed: Tue Aug 18 00:54:15 2015 +0300

----------------------------------------------------------------------
 app/views/devise/passwords/new.html.slim | 34 ++++++++++++++++++---------
 1 file changed, 23 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-taverna-databundle-viewer/blob/37bdcdd7/app/views/devise/passwords/new.html.slim
----------------------------------------------------------------------
diff --git a/app/views/devise/passwords/new.html.slim b/app/views/devise/passwords/new.html.slim
index 5910ebd..ba3745f 100644
--- a/app/views/devise/passwords/new.html.slim
+++ b/app/views/devise/passwords/new.html.slim
@@ -1,11 +1,23 @@
-h2
-  | Forgot your password?
-= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
-  = devise_error_messages!
-  .field
-    = f.label :email
-    br
-    = f.email_field :email, autofocus: true
-  .actions
-    = f.submit "Send me reset password instructions"
-= render "devise/shared/links"
+body.login-page
+  .login-box
+    .login-logo
+      = link_to root_path do
+        b
+          | DatabundleViewer
+    .login-box-body
+      p.login-box-msg
+        | Forgot your password?
+      = form_for(resource, as: resource_name, url: password_path(resource_name), html: {method: :post}) do |f|
+        - unless flash.alert.nil?
+          .alert.alert-danger.alert-dismissable
+            button.close aria-hidden="true" data-dismiss="alert" type="button"  ×
+            h5
+              i.icon.fa.fa-ban
+              = flash.alert
+        .form-group.has-feedback
+          = f.email_field :email, autofocus: true, class: 'form-control', placeholder: 'Email'
+          span.glyphicon.glyphicon-envelope.form-control-feedback
+        .row
+          .col-xs-10
+            = f.submit 'Send me reset password instructions', class: 'btn btn-primary btn-block btn-flat', id: 'reset_password'
+      = render 'devise/shared/links'