forked from fa/breadcrumb-the-shire
Added a confirmation dialog for security check danger zone
This commit is contained in:
@@ -55,6 +55,7 @@
|
|||||||
"Reopen check": "Check wieder öffnen",
|
"Reopen check": "Check wieder öffnen",
|
||||||
"Delete check": "Check löschen",
|
"Delete check": "Check löschen",
|
||||||
"Delete this security check? This cannot be undone.": "Diesen Security Check löschen? Dies kann nicht rückgängig gemacht werden.",
|
"Delete this security check? This cannot be undone.": "Diesen Security Check löschen? Dies kann nicht rückgängig gemacht werden.",
|
||||||
|
"Archive this security check? It will become read-only.": "Diesen Security Check archivieren? Er wird schreibgeschützt.",
|
||||||
"This security check is archived and read-only.": "Dieser Security Check ist archiviert und schreibgeschützt.",
|
"This security check is archived and read-only.": "Dieser Security Check ist archiviert und schreibgeschützt.",
|
||||||
"This product has no technical checklist items defined yet.": "Für dieses Produkt sind noch keine technischen Checklisten-Punkte definiert.",
|
"This product has no technical checklist items defined yet.": "Für dieses Produkt sind noch keine technischen Checklisten-Punkte definiert.",
|
||||||
"%d of %d completed": "%d von %d erledigt",
|
"%d of %d completed": "%d von %d erledigt",
|
||||||
|
|||||||
@@ -55,6 +55,7 @@
|
|||||||
"Reopen check": "Reopen check",
|
"Reopen check": "Reopen check",
|
||||||
"Delete check": "Delete check",
|
"Delete check": "Delete check",
|
||||||
"Delete this security check? This cannot be undone.": "Delete this security check? This cannot be undone.",
|
"Delete this security check? This cannot be undone.": "Delete this security check? This cannot be undone.",
|
||||||
|
"Archive this security check? It will become read-only.": "Archive this security check? It will become read-only.",
|
||||||
"This security check is archived and read-only.": "This security check is archived and read-only.",
|
"This security check is archived and read-only.": "This security check is archived and read-only.",
|
||||||
"This product has no technical checklist items defined yet.": "This product has no technical checklist items defined yet.",
|
"This product has no technical checklist items defined yet.": "This product has no technical checklist items defined yet.",
|
||||||
"%d of %d completed": "%d of %d completed",
|
"%d of %d completed": "%d of %d completed",
|
||||||
|
|||||||
@@ -240,14 +240,16 @@ $completionMeta = static function (array $entry) use ($userNames): string {
|
|||||||
<?php if ($status === SecurityCheckProcess::STATUS_ARCHIVED): ?>
|
<?php if ($status === SecurityCheckProcess::STATUS_ARCHIVED): ?>
|
||||||
<button type="submit" name="action" value="unarchive" class="secondary outline small"><i class="bi bi-arrow-counterclockwise"></i> <?php e(t('Reopen check')); ?></button>
|
<button type="submit" name="action" value="unarchive" class="secondary outline small"><i class="bi bi-arrow-counterclockwise"></i> <?php e(t('Reopen check')); ?></button>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<button type="submit" name="action" value="archive" class="secondary outline small"><i class="bi bi-archive"></i> <?php e(t('Archive check')); ?></button>
|
<button type="submit" name="action" value="archive" class="secondary outline small"
|
||||||
|
data-confirm-message="<?php e(t('Archive this security check? It will become read-only.')); ?>"
|
||||||
|
data-confirm-variant="warning"><i class="bi bi-archive"></i> <?php e(t('Archive check')); ?></button>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</form>
|
</form>
|
||||||
<form method="post"
|
<form method="post">
|
||||||
data-detail-confirm-message="<?php e(t('Delete this security check? This cannot be undone.')); ?>"
|
|
||||||
data-detail-confirm-variant="danger">
|
|
||||||
<?php \MintyPHP\Session::getCsrfInput(); ?>
|
<?php \MintyPHP\Session::getCsrfInput(); ?>
|
||||||
<button type="submit" name="action" value="delete" class="danger outline small"><i class="bi bi-trash3"></i> <?php e(t('Delete check')); ?></button>
|
<button type="submit" name="action" value="delete" class="danger outline small"
|
||||||
|
data-confirm-message="<?php e(t('Delete this security check? This cannot be undone.')); ?>"
|
||||||
|
data-confirm-variant="danger"><i class="bi bi-trash3"></i> <?php e(t('Delete check')); ?></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user