[TASK] Set TYPO3 version to 10.1.0-dev
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / Resources / Private / Templates / Permission / Index.html
1 {namespace be = TYPO3\CMS\Backend\ViewHelpers}
2 {namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
3
4 <f:layout name="Permission" />
5
6 <f:section name="headline">
7 <h1><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:permissions" /></h1>
8 </f:section>
9
10 <f:section name="content">
11
12 <div class="form-group">
13 <label for="depth"><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:Depth" />:</label>
14 <f:form.select class="form-control" id="depth" value="{depth}" options="{depthOptions}" additionalAttributes="{onchange: 'TYPO3.Permissions.jumpToUrl(\'{depthBaseUrl}\'.replace(\'__DEPTH__\', this.options[this.selectedIndex].value), this);'}" />
15 </div>
16
17 <div class="panel panel-default panel-space">
18 <div class="table-fit">
19 <table class="table table-striped table-hover" id="typo3-permissionList">
20 <thead>
21 <tr>
22 <th colspan="2">&nbsp;</th>
23 <th><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:Owner" /></th>
24 <th align="center"><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:Group" /></th>
25 <th align="center"><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:Everybody" /></th>
26 <th align="center"><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:EditLock" /></th>
27 </tr>
28 </thead>
29 <f:for each="{viewTree}" as="data">
30 <tr>
31 <f:if condition="{data.row.uid}">
32 <f:then>
33 <f:comment>
34 A "normal" page row is rendered, not the root page
35 </f:comment>
36
37 <td align="left" class="nowrap">
38 <f:link.action
39 action="edit"
40 arguments="{id: '{f:if(condition: data.row._ORIG_uid, then: data.row._ORIG_uid, else: data.row.uid)}', depth: depth, returnUrl: '{f:uri.action(action: \'index\', arguments: {id: currentId, depth: depth})}'}"
41 title="{f:translate(key: 'LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:ch_permissions')}"
42 >
43 <f:format.raw>{data.depthData}{data.HTML}</f:format.raw>
44 {data.row.title -> f:format.crop(maxCharacters:20)}
45 </f:link.action>
46 </td>
47
48 <td>
49 <f:comment>
50 Edit link is workspace aware: If in ws, link to edit the ws overlay record is rendered
51 </f:comment>
52 <f:link.action
53 action="edit"
54 arguments="{id: '{f:if(condition: data.row._ORIG_uid, then: data.row._ORIG_uid, else: data.row.uid)}', depth: depth, returnUrl: '{f:uri.action(action: \'index\', arguments: {id: currentId, depth: depth})}'}"
55 class="btn btn-default"
56 title="{f:translate(key: 'LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:ch_permissions')}"
57 >
58 <core:icon identifier="actions-open" />
59 </f:link.action>
60 </td>
61
62 <td class="nowrap">
63 <bu:permissions permission="{data.row.perms_user}" scope="user" pageId="{data.row.uid}" />
64 <f:render
65 partial="Permission/Ownername"
66 arguments="{
67 pageId: '{data.row.uid}',
68 userId: '{data.row.perms_userid}',
69 username: '{bu:arrayElement(array:beUsers, key:data.row.perms_userid, subKey:\'username\')}'
70 }"
71 />
72 </td>
73
74 <td class="nowrap">
75 <bu:permissions permission="{data.row.perms_group}" scope="group" pageId="{data.row.uid}" />
76 <f:render
77 partial="Permission/Groupname"
78 arguments="{
79 pageId: '{data.row.uid}',
80 groupId: '{data.row.perms_groupid}',
81 groupname: '{bu:arrayElement(array:beGroups, key:data.row.perms_groupid, subKey:\'title\')}'
82 }"
83 />
84 </td>
85
86 <td class="nowrap">
87 <bu:permissions permission="{data.row.perms_everybody}" scope="everybody" pageId="{data.row.uid}" />
88 </td>
89
90 <td class="nowrap">
91 <span id="el_{data.row.uid}">
92 <f:if condition="{data.row.editlock}">
93 <f:then>
94 <a
95 class="editlock btn btn-default"
96 data-page="{data.row.uid}"
97 data-lockstate="1"
98 title="{f:translate(key: 'LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:EditLock_descr')}"
99 >
100 <core:icon identifier="actions-lock" />
101 </a>
102 </f:then>
103 <f:else>
104 <a
105 class="editlock btn btn-default"
106 data-page="{data.row.uid}"
107 data-lockstate="0"
108 title="{f:translate(key: 'LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:EditLock_descr2')}"
109 >
110 <core:icon identifier="actions-unlock" />
111 </a>
112 </f:else>
113 </f:if>
114 </span>
115 </td>
116 </f:then>
117
118 <f:else>
119 <f:comment>
120 Root page row is rendered
121 </f:comment>
122 <td align="left" class="nowrap">
123 <f:format.raw>{data.HTML}</f:format.raw>
124 {data.row.title -> f:format.crop(maxCharacters:20)}
125 </td>
126 <td></td>
127 <td class="nowrap"></td>
128 <td class="nowrap"></td>
129 <td class="nowrap"></td>
130 <td class="nowrap"></td>
131 </f:else>
132 </f:if>
133 </tr>
134 </f:for>
135 </table>
136 </div>
137 </div>
138
139 <f:format.raw>{cshItem}</f:format.raw>
140
141 <h3><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:Legend" />:</h3>
142 <div class="beuser-legend">
143 <table>
144 <tr>
145 <td class="edge nowrap"><span><span></span></span></td>
146 <td class="hr nowrap"><span></span></td>
147 <td class="hr nowrap"><span></span></td>
148 <td class="hr nowrap"><span></span></td>
149 <td class="hr nowrap"><span></span></td>
150 <td class="nowrap"><span class="number">1</span></td>
151 <td class="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>
152 </tr>
153 <tr>
154 <td class="vr nowrap"><span></span></td>
155 <td class="edge nowrap"><span><span></span></span></td>
156 <td class="hr nowrap"><span></span></td>
157 <td class="hr nowrap"><span></span></td>
158 <td class="hr nowrap"><span></span></td>
159 <td class="nowrap"><span class="number">2</span></td>
160 <td class="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>
161 </tr>
162 <tr>
163 <td class="vr nowrap"><span></span></td>
164 <td class="vr nowrap"><span></span></td>
165 <td class="edge nowrap"><span><span></span></span></td>
166 <td class="hr nowrap"><span></span></td>
167 <td class="hr nowrap"><span></span></td>
168 <td class="nowrap"><span class="number">3</span></td>
169 <td class="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>
170 </tr>
171 <tr>
172 <td class="vr nowrap"><span></span></td>
173 <td class="vr nowrap"><span></span></td>
174 <td class="vr nowrap"><span></span></td>
175 <td class="edge nowrap"><span><span></span></span></td>
176 <td class="hr nowrap"><span></span></td>
177 <td class="nowrap"><span class="number">4</span></td>
178 <td class="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>
179 </tr>
180 <tr>
181 <td class="nowrap"><core:icon identifier="status-status-permission-granted" /></td>
182 <td class="nowrap"><core:icon identifier="status-status-permission-denied" /></td>
183 <td class="nowrap"><core:icon identifier="status-status-permission-granted" /></td>
184 <td class="nowrap"><core:icon identifier="status-status-permission-denied" /></td>
185 <td class="nowrap"><core:icon identifier="status-status-permission-denied" /></td>
186 <td class="nowrap"><span class="number">5</span></td>
187 <td class="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>
188 </tr>
189 </table>
190 </div>
191 <p><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:def" /></p>
192 <p>
193 <core:icon identifier="status-status-permission-granted" /> <f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:A_Granted" /><br/>
194 <core:icon identifier="status-status-permission-denied" /> <f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:A_Denied" />
195 </p>
196 </f:section>