Fix markup in category privileges template

v1.18.x
pichalite 8 years ago
parent f09f1f6ed8
commit aea40902b0

@ -1,101 +1,109 @@
<table class="table table-striped privilege-table"> <table class="table table-striped privilege-table">
<tr class="privilege-table-header"> <thead>
<th colspan="2"></th> <tr class="privilege-table-header">
<th class="arrowed" colspan="3"> <th colspan="2"></th>
[[admin/manage/categories:privileges.section-viewing]] <th class="arrowed" colspan="3">
</th> [[admin/manage/categories:privileges.section-viewing]]
<th class="arrowed" colspan="7"> </th>
[[admin/manage/categories:privileges.section-posting]] <th class="arrowed" colspan="7">
</th> [[admin/manage/categories:privileges.section-posting]]
<th class="arrowed" colspan="2"> </th>
[[admin/manage/categories:privileges.section-moderation]] <th class="arrowed" colspan="2">
</th> [[admin/manage/categories:privileges.section-moderation]]
</tr><tr><!-- zebrastripe reset --></tr> </th>
<tr> </tr><tr><!-- zebrastripe reset --></tr>
<th colspan="2">[[admin/manage/categories:privileges.section-user]]</th> <tr>
<!-- BEGIN privileges.labels.users --> <th colspan="2">[[admin/manage/categories:privileges.section-user]]</th>
<th class="text-center">{privileges.labels.users.name}</th> <!-- BEGIN privileges.labels.users -->
<!-- END privileges.labels.users --> <th class="text-center">{privileges.labels.users.name}</th>
</tr> <!-- END privileges.labels.users -->
<!-- IF privileges.users.length --> </tr>
<!-- BEGIN privileges.users --> </thead>
<tr data-uid="{privileges.users.uid}"> <tbody>
<td> <!-- IF privileges.users.length -->
<!-- IF ../picture --> <!-- BEGIN privileges.users -->
<img class="avatar avatar-sm" src="{privileges.users.picture}" title="{privileges.users.username}" /> <tr data-uid="{privileges.users.uid}">
<!-- ELSE --> <td>
<div class="avatar avatar-sm" style="background-color: {../icon:bgColor};">{../icon:text}</div> <!-- IF ../picture -->
<!-- ENDIF ../picture --> <img class="avatar avatar-sm" src="{privileges.users.picture}" title="{privileges.users.username}" />
</td> <!-- ELSE -->
<td>{privileges.users.username}</td> <div class="avatar avatar-sm" style="background-color: {../icon:bgColor};">{../icon:text}</div>
{function.spawnPrivilegeStates, privileges.users.username, privileges} <!-- ENDIF ../picture -->
</tr> </td>
<!-- END privileges.users --> <td>{privileges.users.username}</td>
<tr> {function.spawnPrivilegeStates, privileges.users.username, privileges}
<td colspan="{privileges.columnCount}"> </tr>
<button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.user"> <!-- END privileges.users -->
[[admin/manage/categories:privileges.search-user]] <tr>
</button> <td colspan="{privileges.columnCount}">
</td> <button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.user">
</tr> [[admin/manage/categories:privileges.search-user]]
<!-- ELSE --> </button>
<tr> </td>
<td colspan="{privileges.columnCount}"> </tr>
[[admin/manage/categories:privileges.no-users]] <!-- ELSE -->
<button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.user"> <tr>
[[admin/manage/categories:privileges.search-user]] <td colspan="{privileges.columnCount}">
</button> [[admin/manage/categories:privileges.no-users]]
</td> <button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.user">
</tr> [[admin/manage/categories:privileges.search-user]]
<!-- ENDIF privileges.users.length --> </button>
</td>
</tr>
<!-- ENDIF privileges.users.length -->
</tbody>
</table> </table>
<table class="table table-striped privilege-table"> <table class="table table-striped privilege-table">
<tr class="privilege-table-header"> <thead>
<th colspan="2"></th> <tr class="privilege-table-header">
<th class="arrowed" colspan="3"> <th colspan="2"></th>
[[admin/manage/categories:privileges.section-viewing]] <th class="arrowed" colspan="3">
</th> [[admin/manage/categories:privileges.section-viewing]]
<th class="arrowed" colspan="7"> </th>
[[admin/manage/categories:privileges.section-posting]] <th class="arrowed" colspan="7">
</th> [[admin/manage/categories:privileges.section-posting]]
<th class="arrowed" colspan="2"> </th>
[[admin/manage/categories:privileges.section-moderation]] <th class="arrowed" colspan="2">
</th> [[admin/manage/categories:privileges.section-moderation]]
</tr><tr><!-- zebrastripe reset --></tr> </th>
<tr> </tr><tr><!-- zebrastripe reset --></tr>
<th colspan="2">[[admin/manage/categories:privileges.section-group]]</th> <tr>
<!-- BEGIN privileges.labels.groups --> <th colspan="2">[[admin/manage/categories:privileges.section-group]]</th>
<th class="text-center">{privileges.labels.groups.name}</th> <!-- BEGIN privileges.labels.groups -->
<!-- END privileges.labels.groups --> <th class="text-center">{privileges.labels.groups.name}</th>
</tr> <!-- END privileges.labels.groups -->
<!-- BEGIN privileges.groups --> </tr>
<tr data-group-name="{privileges.groups.name}" data-private="<!-- IF privileges.groups.isPrivate -->1<!-- ELSE -->0<!-- ENDIF privileges.groups.isPrivate -->"> </thead>
<td> <tbody>
<!-- IF privileges.groups.isPrivate --> <!-- BEGIN privileges.groups -->
<i class="fa fa-lock text-muted" title="[[admin/manage/categories:privileges.group-private]]"></i> <tr data-group-name="{privileges.groups.name}" data-private="<!-- IF privileges.groups.isPrivate -->1<!-- ELSE -->0<!-- ENDIF privileges.groups.isPrivate -->">
<!-- ENDIF privileges.groups.isPrivate --> <td>
{privileges.groups.name} <!-- IF privileges.groups.isPrivate -->
</td> <i class="fa fa-lock text-muted" title="[[admin/manage/categories:privileges.group-private]]"></i>
<td></td> <!-- ENDIF privileges.groups.isPrivate -->
{function.spawnPrivilegeStates, name, privileges} {privileges.groups.name}
</tr> </td>
<!-- END privileges.groups --> <td></td>
<tr> {function.spawnPrivilegeStates, name, privileges}
<td colspan="{privileges.columnCount}"> </tr>
<div class="btn-toolbar"> <!-- END privileges.groups -->
<button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.group"> <tr>
[[admin/manage/categories:privileges.search-group]] <td colspan="{privileges.columnCount}">
</button> <div class="btn-toolbar">
<button type="button" class="btn btn-info pull-right" data-ajaxify="false" data-action="copyToChildren"> <button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.group">
[[admin/manage/categories:privileges.copy-to-children]] [[admin/manage/categories:privileges.search-group]]
</button> </button>
<button type="button" class="btn btn-info pull-right" data-ajaxify="false" data-action="copyPrivilegesFrom"> <button type="button" class="btn btn-info pull-right" data-ajaxify="false" data-action="copyToChildren">
[[admin/manage/categories:privileges.copy-from-category]] [[admin/manage/categories:privileges.copy-to-children]]
</button> </button>
</div> <button type="button" class="btn btn-info pull-right" data-ajaxify="false" data-action="copyPrivilegesFrom">
</td> [[admin/manage/categories:privileges.copy-from-category]]
</tr> </button>
</div>
</td>
</tr>
</tbody>
</table> </table>
<div class="help-block"> <div class="help-block">
[[admin/manage/categories:privileges.inherit]] [[admin/manage/categories:privileges.inherit]]

Loading…
Cancel
Save