summaryrefslogtreecommitdiffstats
path: root/template/admin/html/database.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-05-31 23:42:11 +0200
committerThomas Lange <code@nerdmind.de>2017-05-31 23:42:11 +0200
commit8cafd4967655a996d0d2b71073f884e2f28cf6ac (patch)
tree599e859df5ddd869842e5b2d96a922390b2707fd /template/admin/html/database.php
parent816959215dff92ee0af295be6d801b4cfa150269 (diff)
downloadblog-8cafd4967655a996d0d2b71073f884e2f28cf6ac.tar.gz
blog-8cafd4967655a996d0d2b71073f884e2f28cf6ac.tar.xz
blog-8cafd4967655a996d0d2b71073f884e2f28cf6ac.zip
Optimizations and tiny design update for the admin template:
+ The form buttons for insert, update and delete are now having a corresponding background color (green, blue and red). + The information messages are now displayed within the <form> element and with a red background color around the text.
Diffstat (limited to 'template/admin/html/database.php')
-rw-r--r--template/admin/html/database.php18
1 files changed, 11 insertions, 7 deletions
diff --git a/template/admin/html/database.php b/template/admin/html/database.php
index 69dce0a..319bf02 100644
--- a/template/admin/html/database.php
+++ b/template/admin/html/database.php
@@ -1,15 +1,19 @@
<h1><i class="fa fa-database"></i><?=$Language->template('overview_database_text')?></h1>
<p><?=$Language->template('overview_database_desc')?></p>
-<?php if(isset($FORM['INFO'])): ?>
- <?php foreach($FORM['INFO'] as $message): ?>
- <div class="red"><?=$message?></div>
- <?php endforeach; ?>
-<?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; ?>
+
<div class="flex">
<textarea id="content-editor" placeholder="<?=$Language->template('database_warning')?>" name="command"><?=escapeHTML($FORM['COMMAND'])?></textarea>
</div>
@@ -21,6 +25,6 @@
<?php endif; ?>
<div class="flex flex-padding background">
- <input type="submit" name="execute" value="Execute" />
+ <input id="insert-button" type="submit" name="execute" value="Execute" />
</div>
</form> \ No newline at end of file