Skip to content

Commit

Permalink
Move delete all button to top of the page
Browse files Browse the repository at this point in the history
This way it should be clearer the button will delete both keywords and representative alerts
  • Loading branch information
lucascumsille committed Dec 16, 2024
1 parent 9039f27 commit 09d2381
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions www/includes/easyparliament/templates/html/alert/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,14 @@
</form>
</div>
<?php } else { ?>
<?php if ($keyword_alerts || $spoken_alerts || $own_member_alerts) { ?>
<div class="clearfix">
<form action="<?= $actionurl ?>" method="POST" class="pull-right">
<input type="hidden" name="t" value="<?= _htmlspecialchars($delete_token) ?>">
<input type="submit" class="button button--negative small js-confirm-delete" name="action" value="<?= gettext('Delete all alerts') ?>" aria-label="Delete all keywords and representatives alerts">
</form>
</div>
<?php } ?>

<div class="alert-page-header">
<div>
Expand All @@ -313,12 +321,6 @@
<?php } ?>
</div>
<div class="alert-page-header__button-group">
<?php if ($keyword_alerts || $spoken_alerts || $own_member_alerts) { ?>
<form action="<?= $actionurl ?>" method="POST" class="pull-right">
<input type="hidden" name="t" value="<?= _htmlspecialchars($delete_token) ?>">
<input type="submit" class="button button--negative small js-confirm-delete" name="action" value="<?= gettext('Delete all alerts') ?>" aria-label="Delete all keywords and representatives alerts">
</form>
<?php } ?>
<form action="<?= $actionurl ?>" method="post">
<input type="hidden" name="step" value="define">
<button type="submit" class="button small" value="<?= gettext('Create new keyword alert') ?>">
Expand Down

0 comments on commit 09d2381

Please sign in to comment.