Skip to content

Commit 86392e1

Browse files
committed
added base template for easy integration with other template schemes
1 parent d225e2d commit 86392e1

File tree

5 files changed

+44
-5
lines changed

5 files changed

+44
-5
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head lang="en">
4+
<meta charset="UTF-8">
5+
<title>{% block simple_import_page_title %}{% endblock %}
6+
</title>
7+
</head>
8+
<body>
9+
<h1>{% block simple_import_title %}{% endblock %}</h1>
10+
{% block simple_import_form %}{% endblock %}
11+
</body>
12+
</html>

simple_import/templates/simple_import/do_import.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
<h1>Import Results</h1>
1+
{% extends "simple_import/base.html" %}
22

3+
{% block simple_import_page_title %}Import Results{% endblock %}
4+
5+
{% block simple_import_title %}Import Results{% endblock %}
6+
7+
{% block simple_import_form %}
38
{% if success_undo %}
49
<p>
510
Import was undone. This is now a simulation, you can run the import again.
@@ -31,3 +36,4 @@ <h1>Import Results</h1>
3136
This was only a simulation. <a href="?commit=True&undo=False">Click here to run the import.</a>
3237
</p>
3338
{% endif %}
39+
{% endblock %}
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
<h1>Import</h1>
1+
{% extends "simple_import/base.html" %}
2+
3+
{% block simple_import_page_title %}Import{% endblock %}
4+
5+
{% block simple_import_title %}Import{% endblock %}
6+
7+
{% block simple_import_form %}
28
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
39
<table>
410
{{ form.as_table }}
511
</table>
612
<input type="submit"/>
7-
</form>
13+
</form>
14+
{% endblock %}

simple_import/templates/simple_import/match_columns.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
<h1>Match Columns</h1>
1+
{% extends "simple_import/base.html" %}
2+
3+
{% block simple_import_page_title %}Match Colums{% endblock %}
4+
5+
{% block simple_import_title %}Match Columns{% endblock %}
6+
7+
{% block simple_import_form %}
28
<form action="" method="post">{% csrf_token %}
39
{{ formset.management_form }}
410

@@ -64,3 +70,4 @@ <h1>Match Columns</h1>
6470

6571
<input type="submit" value="Next"/>
6672
</form>
73+
{% endblock %}

simple_import/templates/simple_import/match_relations.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
<h1>Match Relations and Prepare to Run Import</h1>
1+
{% extends "simple_import/base.html" %}
2+
3+
{% block simple_import_page_title %}Match Relations and Prepare to Run Import{% endblock %}
4+
5+
{% block simple_import_title %}Match Relations and Prepare to Run Import{% endblock %}
6+
7+
{% block simple_import_form %}
28
<form action="" method="post">{% csrf_token %}
39
{{ formset.management_form }}
410
{% if errors %}
@@ -39,3 +45,4 @@ <h1>Match Relations and Prepare to Run Import</h1>
3945
<input type="submit" name="simulate" value="Simulate import">
4046

4147
</form>
48+
{% endblock %}

0 commit comments

Comments
 (0)