Explorar o código

Initial styling form success page. Workson #15.

Edd Baldry %!s(int64=8) %!d(string=hai) anos
pai
achega
a870eb57ad
Modificáronse 2 ficheiros con 8 adicións e 1 borrados
  1. 5 0
      bakerydemo/static/css/main.css
  2. 3 1
      bakerydemo/templates/base/form_page.html

+ 5 - 0
bakerydemo/static/css/main.css

@@ -819,6 +819,11 @@ span.outline {
   max-width: 350px;
 }
 
+/* Form thank you page */
+.form-page-thanks h1 {
+  margin-bottom: 30px;
+}
+
 /* No gutters */
 .row.no-gutters {
   margin-right: 0;

+ 3 - 1
bakerydemo/templates/base/form_page.html

@@ -7,7 +7,9 @@
         <div class="col-md-8">
             <h1>{{ page.title }}</h1>
             
-            <p class="intro">{{ page.intro|richtext }}</p>
+            {% if page.intro %}
+                <p class="intro">{{ page.intro|richtext }}</p>
+            {% endif %}
         </div>
     </div>
 </div>