|
64 | 64 | </f:link.external> |
65 | 65 | </f:else> |
66 | 66 | </f:if> |
67 | | - <f:if condition="{redirect.disabled} == 1"> |
| 67 | + <f:if condition="{canEditRedirects}"> |
68 | 68 | <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> |
| 69 | + <f:if condition="{redirect.disabled} == 1"> |
| 70 | + <f:then> |
| 71 | + <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> |
| 72 | + </f:then> |
| 73 | + <f:else> |
| 74 | + <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> |
| 75 | + </f:else> |
| 76 | + </f:if> |
70 | 77 | </f:then> |
71 | 78 | <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> |
| 79 | + <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span> |
| 80 | + </f:else> |
| 81 | + </f:if> |
| 82 | + |
| 83 | + <f:if condition="{canEditRedirects}"> |
| 84 | + <f:then> |
| 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 | + </f:then> |
| 89 | + <f:else> |
| 90 | + <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span> |
| 91 | + </f:else> |
| 92 | + </f:if> |
| 93 | + <f:if condition="{canEditRedirects}"> |
| 94 | + <f:then> |
| 95 | + <a class="btn btn-default t3js-modal-trigger" |
| 96 | + href="{be:moduleLink(route:'tce_db', arguments:'{redirect: returnUrl}', query:'cmd[sys_redirect][{redirect.uid}][delete]=1', currentUrlParameterName:'redirect')}" |
| 97 | + title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:delete')}" |
| 98 | + data-severity="warning" |
| 99 | + data-title="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:label.confirm.delete_record.title')}" |
| 100 | + data-bs-content="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:deleteWarning')}" |
| 101 | + data-button-close-text="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:buttons.confirm.delete_record.no')}"> |
| 102 | + <core:icon identifier="actions-delete" /> |
| 103 | + </a> |
| 104 | + </f:then> |
| 105 | + <f:else> |
| 106 | + <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span> |
73 | 107 | </f:else> |
74 | 108 | </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 | 109 | </div> |
88 | 110 | </td> |
89 | 111 | </tr> |
|
96 | 118 | <f:else> |
97 | 119 | <f:be.infobox state="-1" title="{f:translate(key: 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:redirect_not_found.title')}"> |
98 | 120 | <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> |
| 121 | + <f:if condition="{canEditRedirects}"> |
| 122 | + <f:then> |
| 123 | + <be:link.newRecord returnUrl="{returnUrl}" class="btn btn-primary" table="sys_redirect"> |
| 124 | + <f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:redirect_create"/> |
| 125 | + </be:link.newRecord> |
| 126 | + </f:then> |
| 127 | + </f:if> |
102 | 128 | </f:be.infobox> |
103 | 129 | </f:else> |
104 | 130 | </f:if> |
|
0 commit comments