aboutsummaryrefslogtreecommitdiff
path: root/p/i/install.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-01-25 12:47:39 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-01-25 12:47:39 +0100
commit9de716591917c23fba3ebb9950c1ee9f09f396db (patch)
treeab54805b0eddbf238ffdc822211f0aa3d2ac7f0b /p/i/install.php
parent7a4861334ef768f59944ac380927b783b69769ed (diff)
Infos mise à jour plus verbeux et déplacés
Un message explicite indique la fin de la mise à jour. Le message a été déplacé au-dessus de la zone des boutons. Voir #377
Diffstat (limited to 'p/i/install.php')
-rw-r--r--p/i/install.php17
1 files changed, 13 insertions, 4 deletions
diff --git a/p/i/install.php b/p/i/install.php
index a8ea75c9c..331eda4ff 100644
--- a/p/i/install.php
+++ b/p/i/install.php
@@ -924,17 +924,26 @@ function printStep4 () {
?>
<form action="index.php?step=4" method="post">
<legend><?php echo _t ('version_update'); ?></legend>
+
+ <?php if (updateDatabase(false)) { ?>
+ <p class="alert"><?php echo _t ('update_long'); ?></p>
+
<div class="form-group form-actions">
<div class="group-controls">
- <?php if (updateDatabase(false)) { ?>
<input type="hidden" name="updateDatabase" value="1" />
<button type="submit" class="btn btn-important"><?php echo _t ('update_start'); ?></button>
- <p><?php echo _t ('update_long'); ?></p>
- <?php } else { ?>
+ </div>
+ </div>
+
+ <?php } else { ?>
+ <p class="alert"><?php echo _t ('update_end'); ?></p>
+
+ <div class="form-group form-actions">
+ <div class="group-controls">
<a class="btn btn-important next-step" href="?step=5"><?php echo _t ('next_step'); ?></a>
- <?php } ?>
</div>
</div>
+ <?php } ?>
</form>
<?php
}