Clean up admin_user_list.handlebars.

The inactive flag wasn't really supported, and the
activation_toggle_button class was misleading, since
we don't yet toggle in both directions.

(imported from commit 0c8511021dd580c86df4e80092a6dd49e32773f9)
This commit is contained in:
Steve Howell
2013-11-15 16:17:09 -05:00
committed by Tim Abbott
parent 1144e0b3f9
commit f5093ddc50
2 changed files with 2 additions and 9 deletions

View File

@@ -30,7 +30,7 @@ function populate_users () {
exports.setup_page = function () {
populate_users();
$("#admin_users_table").on("click", ".activation_toggle_button", function (e) {
$("#admin_users_table").on("click", ".deactivate", function (e) {
e.preventDefault();
e.stopPropagation();

View File

@@ -7,15 +7,8 @@
<span class="email">{{email}}</span>
</td>
<td>
<button class="btn activation_toggle_button btn-danger"
{{#inactive}}disabled{{/inactive}}
type="button" name="activation_toggle">
{{#inactive}}
Reactivate
{{/inactive}}
{{^inactive}}
<button class="btn deactivate btn-danger">
Deactivate
{{/inactive}}
</button>
</td>
</tr>