|
1 | 1 | <div class="l-center"> |
2 | 2 | <div class="l-sort clearfix noselect"> |
3 | 3 | <div class="l-unit-toolbar__buttonstrip"> |
4 | | - <a href="/schedule/backup/?token=<?=$_SESSION['token']?>" class="ui-button cancel" dir="ltr"><i class="fas fa-plus-circle status-icon green"></i><?=_('Create Backup')?></a> |
5 | 4 | <? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin')) {?> |
6 | | - <!-- Restrict ability to edit backup exclusions when impersonating 'admin' account --> |
| 5 | + <!-- Hide item creation button when impersonating 'admin' account --> |
7 | 6 | <? } else { ?> |
| 7 | + <a href="/schedule/backup/?token=<?=$_SESSION['token']?>" class="ui-button cancel" dir="ltr"><i class="fas fa-plus-circle status-icon green"></i><?=_('Create Backup')?></a> |
8 | 8 | <a href="/list/backup/exclusions/" class="ui-button cancel" dir="ltr"><i class="fas fa-folder-minus status-icon orange"></i><?=_('backup exclusions')?></a> |
9 | 9 | <? } ?> |
10 | 10 | </div> |
|
18 | 18 | <button type="submit" class="l-sort-toolbar__filter-apply" onclick="return doSearch('/search/')" value=""><i class="fas fa-search"></i></button> |
19 | 19 | </form> |
20 | 20 | </td> |
21 | | - <td> |
22 | | - <form action="/bulk/backup/" method="post" id="objects"> |
23 | | - <input type="hidden" name="token" value="<?=$_SESSION['token']?>" /> |
24 | | - <div class="l-select"> |
25 | | - <select name="action" id=""> |
26 | | - <option value=""><?=_('apply to selected')?></option> |
27 | | - <option value="delete"><?php print _('delete') ?></option> |
28 | | - </select> |
29 | | - </div> |
30 | | - <button type="submit" class="l-sort-toolbar__filter-apply" value=""><i class="fas fa-arrow-right"></i></button> |
31 | | - </td> |
| 21 | + <? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin')) {?> |
| 22 | + <!-- Hide bulk actions for domain items when impersonating 'admin' account--> |
| 23 | + <? } else { ?> |
| 24 | + <td> |
| 25 | + <form action="/bulk/backup/" method="post" id="objects"> |
| 26 | + <input type="hidden" name="token" value="<?=$_SESSION['token']?>" /> |
| 27 | + <div class="l-select"> |
| 28 | + <select name="action" id=""> |
| 29 | + <option value=""><?=_('apply to selected')?></option> |
| 30 | + <option value="delete"><?php print _('delete') ?></option> |
| 31 | + </select> |
| 32 | + </div> |
| 33 | + <button type="submit" class="l-sort-toolbar__filter-apply" value=""><i class="fas fa-arrow-right"></i></button> |
| 34 | + </td> |
| 35 | + <? } ?> |
32 | 36 | </tr> |
33 | 37 | </table> |
34 | 38 | </div> |
|
78 | 82 | <div class="clearfix l-unit__stat-col--left super-compact"> |
79 | 83 | <input id="check<?php echo $i ?>" class="ch-toggle" type="checkbox" name="backup[]" value="<?php echo $key ?>"> |
80 | 84 | </div> |
81 | | - <div class="clearfix l-unit__stat-col--left wide-3 truncate"><b><a href="/list/backup/?backup=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('restore')?>"><?=$key?></a></b></div> |
| 85 | + <div class="clearfix l-unit__stat-col--left wide-3 truncate"> |
| 86 | + <? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin')) {?> |
| 87 | + <b><?=$key?></b> |
| 88 | + <? } else { ?> |
| 89 | + <b><a href="/list/backup/?backup=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('restore')?>"><?=$key?></a></b> |
| 90 | + <? } ?> |
| 91 | + </div> |
82 | 92 | <!-- START QUICK ACTION TOOLBAR AREA --> |
83 | 93 | <div class="clearfix l-unit__stat-col--left compact-4 text-right"> |
84 | 94 | <div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect"> |
85 | 95 | <div class="actions-panel clearfix"> |
86 | | - <div class="actions-panel__col actions-panel__download shortcut-d" key-action="href"><a href="/download/backup/?backup=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('download')?>"><i class="fas fa-file-download status-icon lightblue status-icon dim"></i></a></div> |
87 | | - <div class="actions-panel__col actions-panel__list shortcut-enter" key-action="href"><a href="/list/backup/?backup=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('restore')?>"><i class="fas fa-undo status-icon green status-icon dim"></i></a></div> |
88 | 96 | <? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin')) {?> |
89 | | - <!-- Restrict ability to delete backups when impersonating 'admin' account --> |
| 97 | + <!-- Restrict ability to restore or delete backups when impersonating 'admin' account --> |
| 98 | + |
90 | 99 | <? } else { ?> |
| 100 | + <div class="actions-panel__col actions-panel__download shortcut-d" key-action="href"><a href="/download/backup/?backup=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('download')?>"><i class="fas fa-file-download status-icon lightblue status-icon dim"></i></a></div> |
| 101 | + <div class="actions-panel__col actions-panel__list shortcut-enter" key-action="href"><a href="/list/backup/?backup=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('restore')?>"><i class="fas fa-undo status-icon green status-icon dim"></i></a></div> |
91 | 102 | <div class="actions-panel__col actions-panel__delete shortcut-delete" key-action="js"> |
92 | 103 | <a id="delete_link_<?=$i?>" class="data-controls do_delete" title="<?=_('delete')?>"> |
93 | 104 | <i class="fas fa-trash status-icon red status-icon dim do_delete"></i> |
|
0 commit comments