aboutsummaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-05-26 02:35:34 -0400
committerPaul Duncan <pabs@pablotron.org>2016-05-26 02:35:34 -0400
commit3c5e821b3cdd1c5a144bf012bada282fffd871a2 (patch)
treefe6e12a488605481bd9c2fe18a0d59fac9030836 /src/views
parent9e73b3b2bd571b5f7dd752db80bc86f27d2300dd (diff)
downloadguff-3c5e821b3cdd1c5a144bf012bada282fffd871a2.tar.bz2
guff-3c5e821b3cdd1c5a144bf012bada282fffd871a2.zip
fix user-edit
Diffstat (limited to 'src/views')
-rw-r--r--src/views/admin-page.ecr87
1 files changed, 79 insertions, 8 deletions
diff --git a/src/views/admin-page.ecr b/src/views/admin-page.ecr
index 89a75d0..f82d06c 100644
--- a/src/views/admin-page.ecr
+++ b/src/views/admin-page.ecr
@@ -631,7 +631,12 @@
class='form-control'
title='Enter name of user.'
placeholder='John Doe'
+ aria-describedby='user-edit-name-help'
/>
+
+ <p id='user-edit-name-help' class='help-block'>
+ Name of this user.
+ </p>
</div><!-- form-group -->
<div class='form-group'>
@@ -645,22 +650,88 @@
class='form-control'
title='Enter user email.'
placeholder='johndoe@example.com'
+ aria-describedby='user-edit-email-help'
/>
+
+ <p id='user-edit-email-help' class='help-block'>
+ Email address for this user.
+ </p>
</div><!-- form-group -->
<div class='form-group'>
- <label for='user-edit-role'>
- Role
+ <label for='user-edit-password'>
+ Password
</label>
- <select
- id='user-edit-role'
+ <input
+ type='password'
+ id='user-edit-password'
class='form-control'
- title='Choose role of user.'
- ><%=
- role_options
- %></select>
+ title='Enter user password.'
+ aria-describedby='user-edit-password-help'
+ />
+
+ <p id='user-edit-password-help' class='help-block'>
+ Password for this user.
+ </p>
</div><!-- form-group -->
+
+ <div class='row'>
+ <div class='col-md-6'>
+ <div class='form-group'>
+ <label for='user-edit-role'>
+ Role
+ </label>
+
+ <select
+ id='user-edit-role'
+ class='form-control'
+ title='Choose role of user.'
+ aria-describedby='user-edit-role-help'
+ ><%=
+ role_options
+ %></select>
+
+ <p id='user-edit-role-help' class='help-block'>
+ User role.
+ </p>
+ </div><!-- form-group -->
+ </div><!-- col-md-6 -->
+
+ <div class='col-md-6'>
+ <div class='form-group'>
+ <label for='user-edit-active'>
+ Active
+ </label>
+
+ <select
+ id='user-edit-active'
+ class='form-control'
+ title='Choose active state of user.'
+ aria-describedby='user-edit-active-help'
+ >
+ <option
+ value='inactive'
+ selected='selected'
+ title='Inactive: user cannot log in.'
+ >
+ Inactive
+ </option>
+
+ <option
+ value='active'
+ title='Active: user can log in.'
+ >
+ Active
+ </option>
+ </select>
+
+ <p id='user-edit-active-help' class='help-block'>
+ Is this user active?
+ </p>
+ </div><!-- form-group -->
+ </div><!-- col-md-6 -->
+ </div><!-- row -->
</div><!-- modal-body -->
<div class='modal-footer'>