Skip to content

Commit

Permalink
Reorder subscription form
Browse files Browse the repository at this point in the history
  • Loading branch information
ellite committed Feb 23, 2024
1 parent 166d42e commit 7c9bff8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,17 @@
</div>
</div>

<?php
if ($notificationsEnabled) {
?>
<div class="form-group-inline">
<input type="checkbox" id="notifications" name="notifications">
<label for="notifications"><?= translate('enable_notifications', $i18n) ?></label>
</div>
<?php
}
?>

<div class="form-group">
<label for="payment_method"><?= translate('payment_method', $i18n) ?></label>
<select id="payment_method" name="payment_method_id">
Expand Down Expand Up @@ -252,17 +263,6 @@
<label for="inactive"><?= translate('inactive', $i18n) ?></label>
</div>

<?php
if ($notificationsEnabled) {
?>
<div class="form-group-inline">
<input type="checkbox" id="notifications" name="notifications">
<label for="notifications"><?= translate('enable_notifications', $i18n) ?></label>
</div>
<?php
}
?>

<div class="buttons">
<input type="button" value="<?= translate('delete', $i18n) ?>" class="warning-button left" id="deletesub" style="display: none">
<input type="button" value="<?= translate('cancel', $i18n) ?>" class="secondary-button" onClick="closeAddSubscription()">
Expand Down

0 comments on commit 7c9bff8

Please sign in to comment.