diff --git a/models/header.ini b/models/header_slim.ini similarity index 77% rename from models/header.ini rename to models/header_slim.ini index f488af9b..8905a179 100644 --- a/models/header.ini +++ b/models/header_slim.ini @@ -1,6 +1,8 @@ [model] -name = Header -label = Header +name = Header mit LOGO +label = Header mit LOGO +protected = yes +hidden = yes [fields.claim_heading] label = Claim Heading diff --git a/models/header_with_logo.ini b/models/header_with_logo.ini new file mode 100644 index 00000000..8905a179 --- /dev/null +++ b/models/header_with_logo.ini @@ -0,0 +1,21 @@ +[model] +name = Header mit LOGO +label = Header mit LOGO +protected = yes +hidden = yes + +[fields.claim_heading] +label = Claim Heading +type = markdown + +[fields.claim_content] +label = Claim Content +type = markdown + +[fields.subclaim_heading] +label = Subclaim Heading +type = markdown + +[fields.subclaim_content] +label = Subclaim Content +type = markdown diff --git a/models/homepage.ini b/models/homepage.ini index 523af273..8089906a 100644 --- a/models/homepage.ini +++ b/models/homepage.ini @@ -1,7 +1,7 @@ [model] name = Homepage label = Homepage -inherits = header +inherits = header_with_logo [fields.title] label = Title diff --git a/models/page.ini b/models/page.ini index 580f5b6c..24735b42 100644 --- a/models/page.ini +++ b/models/page.ini @@ -1,7 +1,7 @@ [model] name = Page label = {{ this.title }} -inherits = header +inherits = header_slim [fields.title] label = Title diff --git a/templates/header.html b/templates/header_slim.html similarity index 100% rename from templates/header.html rename to templates/header_slim.html diff --git a/templates/header_with_logo.html b/templates/header_with_logo.html new file mode 100644 index 00000000..6462428f --- /dev/null +++ b/templates/header_with_logo.html @@ -0,0 +1,89 @@ +{% extends "layout.html" %} +{% block header %} +
+
+ + + +
+ +
+
+ + +
+
+
+
+
+
+
+
+
+ +
+ + {{ this.claim_heading }} + {{ this.claim_content }} +
+
+
+ {{ this.subclaim_heading }} + {{ this.subclaim_content }} +
+ + +
+
+{% endblock %} diff --git a/templates/homepage.html b/templates/homepage.html index 9c57ecad..95dbc480 100644 --- a/templates/homepage.html +++ b/templates/homepage.html @@ -1,4 +1,4 @@ -{% extends "header.html" %} +{% extends "header_with_logo.html" %} {% block body %}
diff --git a/templates/page.html b/templates/page.html index 1a318413..1ba223ea 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,4 +1,4 @@ -{% extends "header.html" %} +{% extends "header_slim.html" %} {% block title %}{{ this.title }}{% endblock %} {% block body %}