Skip to content

Commit cecef3d

Browse files
committed
Changed main template
1 parent 17a9279 commit cecef3d

File tree

7 files changed

+46
-94
lines changed

7 files changed

+46
-94
lines changed

src/components/list/list.twig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<pre>List 1</pre>
2+
3+
{{ testvar }}
4+
5+
<ul>
6+
{% for item in index %}
7+
<li>{{ item.name }}</li>
8+
{% endfor %}
9+
</ul>

src/copy/index.html

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
<footer class="claims-report__footer js-claims-report__footer">
2-
3-
<ul class="steps-progress"></ul>
4-
5-
</footer>
1+
<footer>[footer]</footer>
62

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1 @@
1-
<header class="claims-report__header js-claims-report__header">
2-
3-
<div class="claims-report__logo">
4-
<img src="images/logo.svg">
5-
</div>
6-
7-
<div class="claims-report__step__number">Step <span id="claims-report__step-current"></span> af <span id="claims-report__step-total">{{ usertest1.stepsTotalMin }}</span></div>
8-
<div class="claims-report__step__question">Giv din mening til kende</div>
9-
10-
<a href="#" class="claims-report__close">
11-
<span class="claims-report__close__text claims-report__close__text--save-close">Gem & luk</span>
12-
<span class="claims-report__close__text claims-report__close__text--saving">Gemmer...</span>
13-
<span class="claims-report__close__text claims-report__close__text--finished">Luk</span>
14-
<span class="claims-report__close__icon"></span>
15-
</a>
16-
</header>
1+
<header>[header]</header>

src/templates/layouts/main.twig

Lines changed: 21 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,23 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<meta charset="utf-8">
5-
<title>{% block page_title %}{% endblock %}</title>
6-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1 user-scalable=no">
7-
<meta name="theme-color" content="#009B41">
8-
<link rel="stylesheet" href="css/styles.css">
9-
<link rel="shortcut icon" href="https://www.gfforsikring.dk/favicon.ico" type="image/vnd.microsoft.icon">
10-
<script src="js/lib/modernizr.min.js"></script>
11-
</head>
12-
<body class="{% block body_class %}{% endblock %}">
13-
14-
15-
16-
<div class="layout">
17-
18-
<main>
19-
{% block main %}{% endblock %}
20-
</main>
21-
22-
</div>
23-
24-
25-
26-
<div class="page-overlay"></div>
27-
28-
29-
30-
<script src="js/lib/jquery.min.js"></script>
31-
32-
<!-- Includes all the theme functions -->
33-
<script src="js/script.min.js"></script>
34-
35-
<script src="js/lib/picker.js"></script>
36-
<script src="js/lib/picker.date.js"></script>
37-
<!-- REPLACE prototype/xx.js with own implementation in production -->
38-
<script src="js/prototype/mixed.js"></script>
39-
<script src="js/prototype/claims-report.js"></script>
40-
41-
</body>
42-
</html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>{% block page_title %}{% endblock %}</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<link rel="stylesheet" type="text/css" href="css/app.css">
8+
</head>
9+
<body class="{% block body_class %}{% endblock %}">
10+
11+
{% include '../components/header.twig' %}
12+
13+
<main>
14+
{% block main %}{% endblock %}
15+
</main>
16+
17+
{% include '../components/footer.twig' %}
18+
19+
<script src="js/detects.js"></script>
20+
<script src="js/another-file.js"></script>
21+
<script src="js/main.polyfills.js"></script>
22+
</body>
23+
</html>

src/templates/pages/claims-report.twig

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/templates/pages/index.twig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{% extends '../layouts/main.twig' %}
2+
3+
{% block main %}
4+
5+
<p><button id="click-me">Click Me</button></p>
6+
7+
{% include '../../components/list/list.twig' %}
8+
9+
{% endblock %}
10+
11+
12+
{% block page_title %}Demo page{% endblock %}
13+
14+
{% block body_class %}demo-page{% endblock %}

0 commit comments

Comments
 (0)