|
41 | 41 | <f:else><span><core:iconForRecord table="sys_redirect" row="{redirect}" /></span></f:else> |
42 | 42 | </f:if> |
43 | 43 | </f:alias> |
44 | | - <be:link.editRecord returnUrl="{returnUrl}" table="sys_redirect" uid="{redirect.uid}" title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:edit')}: {redirect.source_path}"> |
45 | | - {redirect.source_path -> f:format.crop(maxCharacters:100)} |
46 | | - </be:link.editRecord> |
| 44 | + <f:if condition="{canEditRedirects}"> |
| 45 | + <f:then> |
| 46 | + <be:link.editRecord returnUrl="{returnUrl}" table="sys_redirect" uid="{redirect.uid}" title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:edit')}: {redirect.source_path}"> |
| 47 | + {redirect.source_path -> f:format.crop(maxCharacters:100)} |
| 48 | + </be:link.editRecord> |
| 49 | + </f:then> |
| 50 | + <f:else> |
| 51 | + {redirect.source_path -> f:format.crop(maxCharacters:100)} |
| 52 | + </f:else> |
| 53 | + </f:if> |
47 | 54 | </td> |
48 | 55 |
|
49 | 56 | <td> |
|
64 | 71 | </f:link.external> |
65 | 72 | </f:else> |
66 | 73 | </f:if> |
67 | | - <f:if condition="{redirect.disabled} == 1"> |
| 74 | + |
| 75 | + <f:if condition="{canEditRedirects}"> |
68 | 76 | <f:then> |
69 | | - <a class="btn btn-default" href="{be:moduleLink(route:'tce_db', arguments:'{redirect: returnUrl}', query:'data[sys_redirect][{redirect.uid}][disabled]=0', currentUrlParameterName:'redirect')}" title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:unHide')}"><core:icon identifier="actions-edit-unhide" /></a> |
| 77 | + <f:if condition="{redirect.disabled} == 1"> |
| 78 | + <f:then> |
| 79 | + <a class="btn btn-default" href="{be:moduleLink(route:'tce_db', arguments:'{redirect: returnUrl}', query:'data[sys_redirect][{redirect.uid}][disabled]=0', currentUrlParameterName:'redirect')}" title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:unHide')}"><core:icon identifier="actions-edit-unhide" /></a> |
| 80 | + </f:then> |
| 81 | + <f:else> |
| 82 | + <a class="btn btn-default" href="{be:moduleLink(route:'tce_db', arguments:'{redirect: returnUrl}', query:'data[sys_redirect][{redirect.uid}][disabled]=1', currentUrlParameterName:'redirect')}" title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:hide')}"><core:icon identifier="actions-edit-hide" /></a> |
| 83 | + </f:else> |
| 84 | + </f:if> |
| 85 | + <be:link.editRecord returnUrl="{returnUrl}" class="btn btn-default" table="sys_redirect" uid="{redirect.uid}" title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:edit')}"> |
| 86 | + <core:icon identifier="actions-open" /> |
| 87 | + </be:link.editRecord> |
| 88 | + <a class="btn btn-default t3js-modal-trigger" |
| 89 | + href="{be:moduleLink(route:'tce_db', arguments:'{redirect: returnUrl}', query:'cmd[sys_redirect][{redirect.uid}][delete]=1', currentUrlParameterName:'redirect')}" |
| 90 | + title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:delete')}" |
| 91 | + data-severity="warning" |
| 92 | + data-title="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:label.confirm.delete_record.title')}" |
| 93 | + data-bs-content="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:deleteWarning')}" |
| 94 | + data-button-close-text="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:buttons.confirm.delete_record.no')}"> |
| 95 | + <core:icon identifier="actions-delete" /> |
| 96 | + </a> |
70 | 97 | </f:then> |
71 | | - <f:else> |
72 | | - <a class="btn btn-default" href="{be:moduleLink(route:'tce_db', arguments:'{redirect: returnUrl}', query:'data[sys_redirect][{redirect.uid}][disabled]=1', currentUrlParameterName:'redirect')}" title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:hide')}"><core:icon identifier="actions-edit-hide" /></a> |
73 | | - </f:else> |
74 | 98 | </f:if> |
75 | | - <be:link.editRecord returnUrl="{returnUrl}" class="btn btn-default" table="sys_redirect" uid="{redirect.uid}" title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:edit')}"> |
76 | | - <core:icon identifier="actions-open" /> |
77 | | - </be:link.editRecord> |
78 | | - <a class="btn btn-default t3js-modal-trigger" |
79 | | - href="{be:moduleLink(route:'tce_db', arguments:'{redirect: returnUrl}', query:'cmd[sys_redirect][{redirect.uid}][delete]=1', currentUrlParameterName:'redirect')}" |
80 | | - title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:delete')}" |
81 | | - data-severity="warning" |
82 | | - data-title="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:label.confirm.delete_record.title')}" |
83 | | - data-bs-content="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:deleteWarning')}" |
84 | | - data-button-close-text="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:buttons.confirm.delete_record.no')}"> |
85 | | - <core:icon identifier="actions-delete" /> |
86 | | - </a> |
87 | 99 | </div> |
88 | 100 | </td> |
89 | 101 | </tr> |
|
96 | 108 | <f:else> |
97 | 109 | <f:be.infobox state="-1" title="{f:translate(key: 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:redirect_not_found.title')}"> |
98 | 110 | <p><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:redirect_not_found.message"/></p> |
99 | | - <be:link.newRecord returnUrl="{returnUrl}" class="btn btn-primary" table="sys_redirect"> |
100 | | - <f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:redirect_create"/> |
101 | | - </be:link.newRecord> |
| 111 | + <f:if condition="{canEditRedirects}"> |
| 112 | + <be:link.newRecord returnUrl="{returnUrl}" class="btn btn-primary" table="sys_redirect"> |
| 113 | + <f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:redirect_create"/> |
| 114 | + </be:link.newRecord> |
| 115 | + </f:if> |
102 | 116 | </f:be.infobox> |
103 | 117 | </f:else> |
104 | 118 | </f:if> |
|
0 commit comments