[gnome-web-www] Move error message to elseif



commit c6d95a21ae71c5117026e593a61c3d39c34a3ed8
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Wed Jun 5 13:55:38 2019 +0200

    Move error message to elseif

 theme/page-apply.php | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/theme/page-apply.php b/theme/page-apply.php
index 51c9827..f37eb4b 100644
--- a/theme/page-apply.php
+++ b/theme/page-apply.php
@@ -80,13 +80,13 @@ if (array_key_exists('submit', $_POST)) {
     
     <div class="content without_sidebar">
 
-        <?php if ($application_submitted == true && $application_sent == true): ?>
-            <h1 style="text-align: center">Thank you.</h1>
-            <p class="main_feature" style="text-align: center;">Your application has been submitted and 
it'll be reviewed by the <br /> GNOME Foundation Membership Committee within two weeks.</p>
-            <p style="text-align: center"> You can check the status of your application at the following <a 
href="http://www.gnome.org/rt3-stats/membership.html";>page</a>.</p>
-        <?php else: ?>
-            <p class="main_feature" style="text-align: center;">Some of required fields in the form are 
missing. Please fill them and submit it again.</p>
-        <?php endif; ?>
+    <?php if ($application_submitted == true && $application_sent == true): ?>
+        <h1 style="text-align: center">Thank you.</h1>
+        <p class="main_feature" style="text-align: center;">Your application has been submitted and it'll be 
reviewed by the <br /> GNOME Foundation Membership Committee within two weeks.</p>
+        <p style="text-align: center"> You can check the status of your application at the following <a 
href="http://www.gnome.org/rt3-stats/membership.html";>page</a>.</p>
+    <?php elseif ($application_submitted == true && $errors == true): ?>
+        <p class="main_feature" style="text-align: center;">Some of required fields in the form are missing. 
Please fill them and submit it again.</p>
+    <?php else: ?>
     
 <hr class="top_shadow" />
 
@@ -182,6 +182,7 @@ if (array_key_exists('submit', $_POST)) {
 </div>
 
 </form>
+<?php endif; ?>
 
 <br />
 <div class="clear"></div>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]