|
2 | 2 | <div class="toolbar"> |
3 | 3 | <div class="toolbar-inner"> |
4 | 4 | <div class="toolbar-buttons"> |
5 | | - <a class="button button-secondary button-back js-button-back" href="/list/backup/"><i class="fas fa-arrow-left icon-blue"></i><?= _("Back") ?></a> |
6 | | - <a href="/schedule/restore/?token=<?= $_SESSION["token"] ?>&backup=<?= htmlentities($_GET["backup"]) ?>" class="button button-secondary"><i class="fas fa-arrow-rotate-left icon-green"></i><?= _("Restore All") ?></a> |
| 5 | + <a class="button button-secondary button-back js-button-back" href="/list/backup/"> |
| 6 | + <i class="fas fa-arrow-left icon-blue"></i><?= _("Back") ?> |
| 7 | + </a> |
| 8 | + <a href="/schedule/restore/?token=<?= $_SESSION["token"] ?>&backup=<?= htmlentities($_GET["backup"]) ?>" class="button button-secondary"> |
| 9 | + <i class="fas fa-arrow-rotate-left icon-green"></i><?= _("Restore All") ?> |
| 10 | + </a> |
7 | 11 | </div> |
8 | 12 | <div class="toolbar-right"> |
9 | 13 | <form x-data x-bind="BulkEdit" action="/bulk/restore/" method="post"> |
|
72 | 76 | <ul class="units-table-row-actions"> |
73 | 77 | <li class="units-table-row-action shortcut-enter" data-key-action="href"> |
74 | 78 | <a |
75 | | - class="units-table-row-action-link" |
| 79 | + class="units-table-row-action-link data-controls js-confirm-action" |
76 | 80 | href="/schedule/restore/?backup=<?= $backup ?>&type=web&object=<?= $key ?>&token=<?= $_SESSION["token"] ?>" |
77 | 81 | title="<?= _("Restore") ?>" |
| 82 | + data-confirm-title="<?= _("Restore") ?>" |
| 83 | + data-confirm-message="<?= sprintf(_("Are you sure you want to restore %s?"), $key) ?>" |
78 | 84 | > |
79 | 85 | <i class="fas fa-arrow-rotate-left icon-green"></i> |
80 | 86 | <span class="u-hide-desktop"><?= _("Restore") ?></span> |
@@ -110,9 +116,11 @@ class="units-table-row-action-link" |
110 | 116 | <ul class="units-table-row-actions"> |
111 | 117 | <li class="units-table-row-action shortcut-enter" data-key-action="href"> |
112 | 118 | <a |
113 | | - class="units-table-row-action-link" |
| 119 | + class="units-table-row-action-link data-controls js-confirm-action" |
114 | 120 | href="/schedule/restore/?backup=<?= $backup ?>&type=mail&object=<?= $key ?>&token=<?= $_SESSION["token"] ?>" |
115 | 121 | title="<?= _("Restore") ?>" |
| 122 | + data-confirm-title="<?= _("Restore") ?>" |
| 123 | + data-confirm-message="<?= sprintf(_("Are you sure you want to restore %s?"), $key) ?>" |
116 | 124 | > |
117 | 125 | <i class="fas fa-arrow-rotate-left icon-green"></i> |
118 | 126 | <span class="u-hide-desktop"><?= _("Restore") ?></span> |
@@ -148,9 +156,11 @@ class="units-table-row-action-link" |
148 | 156 | <ul class="units-table-row-actions"> |
149 | 157 | <li class="units-table-row-action shortcut-enter" data-key-action="href"> |
150 | 158 | <a |
151 | | - class="units-table-row-action-link" |
| 159 | + class="units-table-row-action-link data-controls js-confirm-action" |
152 | 160 | href="/schedule/restore/?backup=<?= $backup ?>&type=dns&object=<?= $key ?>&token=<?= $_SESSION["token"] ?>" |
153 | 161 | title="<?= _("Restore") ?>" |
| 162 | + data-confirm-title="<?= _("Restore") ?>" |
| 163 | + data-confirm-message="<?= sprintf(_("Are you sure you want to restore %s?"), $key) ?>" |
154 | 164 | > |
155 | 165 | <i class="fas fa-arrow-rotate-left icon-green"></i> |
156 | 166 | <span class="u-hide-desktop"><?= _("Restore") ?></span> |
@@ -186,9 +196,11 @@ class="units-table-row-action-link" |
186 | 196 | <ul class="units-table-row-actions"> |
187 | 197 | <li class="units-table-row-action shortcut-enter" data-key-action="href"> |
188 | 198 | <a |
189 | | - class="units-table-row-action-link" |
| 199 | + class="units-table-row-action-link data-controls js-confirm-action" |
190 | 200 | href="/schedule/restore/?backup=<?= $backup ?>&type=db&object=<?= $key ?>&token=<?= $_SESSION["token"] ?>" |
191 | 201 | title="<?= _("Restore") ?>" |
| 202 | + data-confirm-title="<?= _("Restore") ?>" |
| 203 | + data-confirm-message="<?= sprintf(_("Are you sure you want to restore %s?"), $key) ?>" |
192 | 204 | > |
193 | 205 | <i class="fas fa-arrow-rotate-left icon-green"></i> |
194 | 206 | <span class="u-hide-desktop"><?= _("Restore") ?></span> |
@@ -221,9 +233,11 @@ class="units-table-row-action-link" |
221 | 233 | <ul class="units-table-row-actions"> |
222 | 234 | <li class="units-table-row-action shortcut-enter" data-key-action="href"> |
223 | 235 | <a |
224 | | - class="units-table-row-action-link" |
| 236 | + class="units-table-row-action-link data-controls js-confirm-action" |
225 | 237 | href="/schedule/restore/?backup=<?= $backup ?>&type=cron&object=records&token=<?= $_SESSION["token"] ?>" |
226 | 238 | title="<?= _("Restore") ?>" |
| 239 | + data-confirm-title="<?= _("Restore") ?>" |
| 240 | + data-confirm-message="<?= sprintf(_("Are you sure you want to restore %s?"), $key) ?>" |
227 | 241 | > |
228 | 242 | <i class="fas fa-arrow-rotate-left icon-green"></i> |
229 | 243 | <span class="u-hide-desktop"><?= _("Restore") ?></span> |
@@ -259,9 +273,11 @@ class="units-table-row-action-link" |
259 | 273 | <ul class="units-table-row-actions"> |
260 | 274 | <li class="units-table-row-action shortcut-enter" data-key-action="href"> |
261 | 275 | <a |
262 | | - class="units-table-row-action-link" |
| 276 | + class="units-table-row-action-link data-controls js-confirm-action" |
263 | 277 | href="/schedule/restore/?backup=<?= $backup ?>&type=udir&object=<?= $key ?>&token=<?= $_SESSION["token"] ?>" |
264 | 278 | title="<?= _("Restore") ?>" |
| 279 | + data-confirm-title="<?= _("Restore") ?>" |
| 280 | + data-confirm-message="<?= sprintf(_("Are you sure you want to restore %s?"), $key) ?>" |
265 | 281 | > |
266 | 282 | <i class="fas fa-arrow-rotate-left icon-green"></i> |
267 | 283 | <span class="u-hide-desktop"><?= _("Restore") ?></span> |
|
0 commit comments