[FEATURE] Indicate status of permissions by color in EXT:beuser
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / Resources / Private / Templates / Permission / Index.html
1 {namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
2
3 <f:layout name="Permission" />
4
5 <f:section name="iconButtons">
6 <a href="#" onclick="{previewUrl}" title="{f:translate(key: 'LLL:EXT:lang/locallang_core.xlf:labels.showPage')}"><bu:spriteManagerIcon iconName="actions-document-view" /></a>
7 </f:section>
8
9 <f:section name="headline">
10 <h1><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:permissions" /></h1>
11 </f:section>
12
13 <f:section name="content">
14
15 <div class="form-group">
16 <label for="depth"><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:Depth" />:</label>
17 <f:form.select class="form-control" id="depth" value="{depth}" options="{depthOptions}" additionalAttributes="{onchange: 'jumpToUrl(\'{depthBaseUrl}\'.replace(\'__DEPTH__\', this.options[this.selectedIndex].value), this);'}" />
18 </div>
19
20 <div class="panel panel-default panel-space">
21 <div class="table-fit">
22 <table class="table table-striped table-hover" id="typo3-permissionList">
23 <thead>
24 <tr>
25 <th colspan="2">&nbsp;</th>
26 <th><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:Owner" /></th>
27 <th align="center"><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:Group" /></th>
28 <th align="center"><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:Everybody" /></th>
29 <th align="center"><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:EditLock" /></th>
30 </tr>
31 </thead>
32 <f:for each="{viewTree}" as="data">
33 <tr>
34 <f:if condition="{data.cellAttrib}">
35 <f:then>
36 <td align="left" nowrap="nowrap" {data.cellAttrib}>
37 <f:format.raw>{data.html}</f:format.raw>
38 </td>
39 </f:then>
40 <f:else>
41 <td align="left" nowrap="nowrap" {data.groupName}>
42 <f:format.raw>{data.html}</f:format.raw>
43 </td>
44 </f:else>
45 </f:if>
46 <td>
47 <f:if condition="{data.id} > 0">
48 <f:link.action action="edit" arguments="{id: data.id, depth: depth}" title="{f:translate(key: 'LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:ch_permissions')}">
49 <bu:spriteManagerIcon iconName="actions-document-open" />
50 </f:link.action>
51 </f:if>
52 </td>
53 <td nowrap="nowrap"><f:format.raw>{data.userPermissions}</f:format.raw></td>
54 <td nowrap="nowrap"><f:format.raw>{data.groupPermissions}</f:format.raw></td>
55 <td nowrap="nowrap"><f:format.raw>{data.otherPermissions}</f:format.raw></td>
56 <td nowrap="nowrap">
57 <f:if condition="{data.id} > 0">
58 <span id="el_{data.id}">
59 <f:if condition="{data.editLock}">
60 <f:then>
61 <a class="editlock" data-page="{data.pageId}" data-lockstate="1" title="{f:translate(key: 'LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:EditLock_descr')}">
62 <bu:spriteManagerIcon iconName="status-warning-lock" />
63 </a>
64 </f:then>
65 <f:else>
66 <a class="editlock" data-page="{data.pageId}" data-lockstate="0" title="Enable the &raquo;Admin-only&laquo; edit lock for this page">
67 [+]
68 </a>
69 </f:else>
70 </f:if>
71 </span>
72 </f:if>
73 </tr>
74 </f:for>
75 </table>
76 </div>
77 </div>
78
79 <f:format.raw>{cshItem}</f:format.raw>
80
81 <h3><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:Legend" />:</h3>
82 <div class="beuser-legend">
83 <table>
84 <tr>
85 <td nowrap="nowrap" class="edge"><span><span></span></span></td>
86 <td nowrap="nowrap" class="hr"><span></span></td>
87 <td nowrap="nowrap" class="hr"><span></span></td>
88 <td nowrap="nowrap" class="hr"><span></span></td>
89 <td nowrap="nowrap" class="hr"><span></span></td>
90 <td nowrap="nowrap"><span class="number">1</span></td>
91 <td nowrap="nowrap"><strong><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:1" /></strong>: <f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:1_t" /></td>
92 </tr>
93 <tr>
94 <td nowrap="nowrap" class="vr"><span></span></td>
95 <td nowrap="nowrap" class="edge"><span><span></span></span></td>
96 <td nowrap="nowrap" class="hr"><span></span></td>
97 <td nowrap="nowrap" class="hr"><span></span></td>
98 <td nowrap="nowrap" class="hr"><span></span></td>
99 <td nowrap="nowrap"><span class="number">2</span></td>
100 <td nowrap="nowrap"><strong><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:16" /></strong>: <f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:16_t" /></td>
101 </tr>
102 <tr>
103 <td nowrap="nowrap" class="vr"><span></span></td>
104 <td nowrap="nowrap" class="vr"><span></span></td>
105 <td nowrap="nowrap" class="edge"><span><span></span></span></td>
106 <td nowrap="nowrap" class="hr"><span></span></td>
107 <td nowrap="nowrap" class="hr"><span></span></td>
108 <td nowrap="nowrap"><span class="number">3</span></td>
109 <td nowrap="nowrap"><strong><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:2" /></strong>: <f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:2_t" /></td>
110 </tr>
111 <tr>
112 <td nowrap="nowrap" class="vr"><span></span></td>
113 <td nowrap="nowrap" class="vr"><span></span></td>
114 <td nowrap="nowrap" class="vr"><span></span></td>
115 <td nowrap="nowrap" class="edge"><span><span></span></span></td>
116 <td nowrap="nowrap" class="hr"><span></span></td>
117 <td nowrap="nowrap"><span class="number">4</span></td>
118 <td nowrap="nowrap"><strong><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:4" /></strong>: <f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:4_t" /></td>
119 </tr>
120 <tr>
121 <td nowrap="nowrap"><bu:spriteManagerIcon iconName="status-status-permission-granted" options="{class:'text-success'}" /></td>
122 <td nowrap="nowrap"><bu:spriteManagerIcon iconName="status-status-permission-denied" options="{class:'text-danger'}" /></td>
123 <td nowrap="nowrap"><bu:spriteManagerIcon iconName="status-status-permission-granted" options="{class:'text-success'}" /></td>
124 <td nowrap="nowrap"><bu:spriteManagerIcon iconName="status-status-permission-denied" options="{class:'text-danger'}" /></td>
125 <td nowrap="nowrap"><bu:spriteManagerIcon iconName="status-status-permission-denied" options="{class:'text-danger'}" /></td>
126 <td nowrap="nowrap"><span class="number">5</span></td>
127 <td nowrap="nowrap"><strong><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:8" /></strong>: <f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:8_t" /></td>
128 </tr>
129 </table>
130 </div>
131 <p><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:def" /></p>
132 <p>
133 <bu:spriteManagerIcon iconName="status-status-permission-granted" options="{class:'text-success'}" /> <f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:A_Granted" /><br/>
134 <bu:spriteManagerIcon iconName="status-status-permission-denied" options="{class:'text-danger'}" /> <f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:A_Denied" />
135 </p>
136 </f:section>