some UX tweaks to manage/category

v1.18.x
psychobunny 10 years ago
parent 28e2297e63
commit ffd38b8cc3

@ -96,7 +96,7 @@ define('admin/manage/category', [
$('.purge').on('click', function(e) { $('.purge').on('click', function(e) {
e.preventDefault(); e.preventDefault();
bootbox.confirm('<p class="lead">Do you really want to purge this category "' + $('form.category').find('input[data-name="name"]').val() + '"?</p><p><strong class="text-danger">Warning!</strong> All topics and posts in this category will be purged!</p>', function(confirm) { bootbox.confirm('<p class="lead">Do you really want to purge this category "' + $('form.category').find('input[data-name="name"]').val() + '"?</p><h5><strong class="text-danger">Warning!</strong> All topics and posts in this category will be purged!</h5> <p class="help-block">Purging a category will remove all topics and posts, and delete the category from the database. If you want to remove a category <em>temporarily</em>, you\'ll want to "disable" the category instead.</p>', function(confirm) {
if (!confirm) { if (!confirm) {
return; return;
} }

@ -129,11 +129,7 @@
</div> </div>
</div> </div>
<hr /> <hr />
<button class="btn btn-danger btn-block btn-xs purge"><i class="fa fa-eraser"></i> Purge Category</button> <button class="btn btn-danger btn-block purge"><i class="fa fa-eraser"></i> Purge Category</button>
<p class="help-block">
Purging a category will remove all topics and posts, and delete the category from the database. If you want to
remove a category <em>temporarily</em>, you'll want to "disable" the category instead.
</p>
</div> </div>
</div> </div>
</div> </div>

@ -15,16 +15,14 @@
<!-- END privileges.users --> <!-- END privileges.users -->
<tr> <tr>
<td colspan="{privileges.columnCount}"> <td colspan="{privileges.columnCount}">
<button type="button" class="btn btn-primary btn-xs pull-right" data-ajaxify="false" data-action="search.user"><i class="fa fa-plus"></i> Add User</button> <button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.user"> Add User</button>
</td> </td>
</tr> </tr>
<!-- ELSE --> <!-- ELSE -->
<tr> <tr>
<td colspan="{privileges.columnCount}"> <td colspan="{privileges.columnCount}">
<div class="alert alert-info"> <button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.user"> Add User</button>
<button type="button" class="btn btn-primary btn-xs pull-right" data-ajaxify="false" data-action="search.user"><i class="fa fa-plus"></i> Add User</button>
No user-specific privileges in this category. No user-specific privileges in this category.
</div>
</td> </td>
</tr> </tr>
<!-- ENDIF privileges.users.length --> <!-- ENDIF privileges.users.length -->
@ -52,16 +50,14 @@
<!-- END privileges.groups --> <!-- END privileges.groups -->
<tr> <tr>
<td colspan="{privileges.columnCount}"> <td colspan="{privileges.columnCount}">
<button type="button" class="btn btn-primary btn-xs pull-right" data-ajaxify="false" data-action="search.group"><i class="fa fa-plus"></i> Add Group</button> <button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.group"> Add Group</button>
</td> </td>
</tr> </tr>
<!-- ELSE --> <!-- ELSE -->
<tr> <tr>
<td colspan="{privileges.columnCount}"> <td colspan="{privileges.columnCount}">
<div class="alert alert-info"> <button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.group"> Add Group</button>
<button type="button" class="btn btn-primary btn-xs pull-right" data-ajaxify="false" data-action="search.group"><i class="fa fa-plus"></i> Add Group</button>
No group-specific privileges in this category. No group-specific privileges in this category.
</div>
</td> </td>
</tr> </tr>
<!-- ENDIF privileges.groups.length --> <!-- ENDIF privileges.groups.length -->

Loading…
Cancel
Save