From e0c52738c6495490ce6c5f8fff0d9ad14a6a944f Mon Sep 17 00:00:00 2001 From: nanalelfe Date: Wed, 27 Jul 2016 05:58:01 -0400 Subject: Fixed so that cannot submit empty solution. Changed to textarea to type in solution. --- views/add_solutions.hbs | 7 ++++++- views/layouts/layout.hbs | 2 +- views/user_profile_alt.hbs | 24 ++++++++++++------------ 3 files changed, 19 insertions(+), 14 deletions(-) (limited to 'views') diff --git a/views/add_solutions.hbs b/views/add_solutions.hbs index 2865a88..fe90408 100644 --- a/views/add_solutions.hbs +++ b/views/add_solutions.hbs @@ -3,10 +3,15 @@
+ {{# if messages.error }} +
+

{{ messages.error }}

+
+ {{/if}}

Add Solution

- +
diff --git a/views/layouts/layout.hbs b/views/layouts/layout.hbs index aecff1d..8ffbdb5 100644 --- a/views/layouts/layout.hbs +++ b/views/layouts/layout.hbs @@ -45,7 +45,7 @@ {{/if}} {{{ body }}} - {{# if noHeader}} + {{# if noFooter}} {{else}} {{> footer }} {{/if}} diff --git a/views/user_profile_alt.hbs b/views/user_profile_alt.hbs index cf657db..a193062 100644 --- a/views/user_profile_alt.hbs +++ b/views/user_profile_alt.hbs @@ -44,6 +44,18 @@ class="img-circle img-responsive">
--> + {{# if messages.success }} +
+ +

{{ messages.success }}

+
+ {{ else }} + {{# if messages.error }} +
+

{{ messages.error }}

+
+ {{/if}} + {{/if}}
@@ -157,18 +169,6 @@ -->
- {{# if messages.success }} -
- -

{{ messages.success }}

-
- {{ else }} - {{# if messages.error }} -
-

{{ messages.error }}

-
- {{/if}} - {{/if}}

Send Message

-- cgit v1.2.3