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