diff options
author | Thomas Lange <code@nerdmind.de> | 2021-06-12 22:29:17 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-06-12 22:29:17 +0200 |
commit | 5a5e04a43b3beba53e2c773f3dc55f9acc0a7460 (patch) | |
tree | 35a2ff8897a8401b02d2763d52396151224b6bef /theme/admin/html/user | |
parent | dfc32b1b8b7d1686d8c8c4fa55a2eb413abfbe9a (diff) | |
download | blog-5a5e04a43b3beba53e2c773f3dc55f9acc0a7460.tar.gz blog-5a5e04a43b3beba53e2c773f3dc55f9acc0a7460.tar.xz blog-5a5e04a43b3beba53e2c773f3dc55f9acc0a7460.zip |
Place message boxes outside the <form> elements
Diffstat (limited to 'theme/admin/html/user')
-rw-r--r-- | theme/admin/html/user/form.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/theme/admin/html/user/form.php b/theme/admin/html/user/form.php index 9f17cac..970a6d9 100644 --- a/theme/admin/html/user/form.php +++ b/theme/admin/html/user/form.php @@ -1,16 +1,16 @@ +<?php if($FORM['INFO']): ?> + <div id="message-list-wrapper"> + <ul id="message-list"> + <?php foreach($FORM['INFO'] as $message): ?> + <li><?=$message?></li> + <?php endforeach ?> + </ul> + </div> +<?php endif ?> + <form action="" method="POST"> <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>" /> - <?php if($FORM['INFO']): ?> - <div class="flex flex-direction-column"> - <ul id="message-list"> - <?php foreach($FORM['INFO'] as $message): ?> - <li><?=$message?></li> - <?php endforeach; ?> - </ul> - </div> - <?php endif; ?> - <?php if($FORM['TYPE'] !== 'DELETE'): ?> <div class="flex flex-responsive"> <div class="flex-item"> @@ -101,4 +101,4 @@ <input id="delete-button" type="submit" name="delete" value="<?=$Language->text('delete')?>" data-text="<?=$Language->text('sure')?>" /> <?php endif; ?> </div> -</form>
\ No newline at end of file +</form> |