aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/password_edit.hbs20
-rw-r--r--views/reset_password.hbs18
2 files changed, 31 insertions, 7 deletions
diff --git a/views/password_edit.hbs b/views/password_edit.hbs
index 903388a..f5e87ab 100644
--- a/views/password_edit.hbs
+++ b/views/password_edit.hbs
@@ -5,12 +5,24 @@
{{# if success }}
<section class="alert alert-success">
<!-- Change those to banners later -->
- <h4>{{success}}</h4>
+ <p>{{success}}</p>
</section>
{{ else }}
{{# if errors }}
+ {{# if errors.length}}
+ <section class="alert alert-danger">
+ <ul>
+ {{# each errors }}
+ <li>{{ this.msg }}</li>
+ {{/each}}
+ </ul>
+ </section>
+ {{/if}}
+
+ {{/if}}
+ {{# if error}}
<section class="alert alert-danger">
- <h4>{{errors}}</h4>
+ <p>{{error}}</p>
</section>
{{/if}}
{{/if}}
@@ -27,13 +39,13 @@
<div class="input-group-addon addon-username">
<i class="fa fa-lock" aria-hidden="true"></i>
</div>
- <input type="text" class="form-control input-username" placeholder="password" name="password" required>
+ <input type="password" class="form-control input-username" placeholder="password" name="password">
</div>
<div class="input-group input-group-lg">
<div class="input-group-addon addon-password">
<i class="fa fa-unlock-alt" aria-hidden="true"></i>
</div>
- <input type="password" class="form-control input-lg input-password" placeholder="password" name="passwordConfirm" required>
+ <input type="password" class="form-control input-lg input-password" placeholder="confirm password" name="confirmPassword">
</div>
</div>
<input type="hidden" name="_email" value="{{ email}}">
diff --git a/views/reset_password.hbs b/views/reset_password.hbs
index 5526123..9403b04 100644
--- a/views/reset_password.hbs
+++ b/views/reset_password.hbs
@@ -5,12 +5,24 @@
{{# if success }}
<section class="alert alert-success">
<!-- Change those to banners later -->
- <h4>{{success}}</h4>
+ <p>{{success}}</p>
</section>
{{ else }}
{{# if errors }}
+ {{# if errors.length}}
+ <section class="alert alert-danger">
+ <ul>
+ {{# each errors }}
+ <li>{{ this.msg }}</li>
+ {{/each}}
+ </ul>
+ </section>
+ {{/if}}
+
+ {{/if}}
+ {{# if error}}
<section class="alert alert-danger">
- <h4>{{errors}}</h4>
+ <p>{{error}}</p>
</section>
{{/if}}
{{/if}}
@@ -27,7 +39,7 @@
<div class="input-group-addon addon-email-reset">
<i class="fa fa-at" aria-hidden="true"></i>
</div>
- <input type="text" class="form-control input-email-reset" placeholder="email" name="email" required>
+ <input type="text" class="form-control input-email-reset" placeholder="email" name="email">
</div>
</div>
<input type="hidden" name="_csrf" value="{{ csrfToken }}">