Skip to content

Commit e77823c

Browse files
committed
Overhaul project create base to two column page
1 parent 56fd9bd commit e77823c

File tree

1 file changed

+65
-33
lines changed

1 file changed

+65
-33
lines changed
Lines changed: 65 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,72 @@
11
{% extends "base.html" %}
2+
23
{% load i18n %}
4+
{% load crispy_forms_tags %}
35

4-
{% block title %}{% trans "Add a Project" %}{% endblock %}
6+
{% block title %}{% trans "Add Project" %}{% endblock %}
57

68
{% block content %}
7-
<div class="ui container very padded">
8-
<form class="ui form" action="{% url "projects_import_manual" %}" method="post">
9-
10-
{% csrf_token %}
11-
{{ wizard.management_form }}
12-
13-
{% block wizard-form %}
14-
{% if wizard.form.forms %}
15-
{{ wizard.form.management_form }}
16-
{% for form in wizard.form.forms %}
17-
{{ form.as_p }}
18-
{% endfor %}
19-
{% else %}
20-
{{ wizard.form.as_p }}
21-
{% endif %}
22-
{% endblock %}
23-
24-
{% block wizard-actions %}
25-
<div class="actions wizard-actions">
26-
{% if wizard.steps.next %}
27-
<input class="ui button primary" type="submit" value="{% trans "Next" %}" />
28-
{% else %}
29-
<input class="ui button primary" type="submit" value="{% trans "Finish" %}" />
30-
{% endif %}
31-
32-
{% if wizard.steps.prev %}
33-
<button class="ui button secondary" name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}">{% trans "Previous" %}</button>
34-
{% endif %}
35-
</div>
36-
{% endblock%}
37-
38-
</form>
9+
{% block project_add_content %}
10+
<div class="ui very padded centered stackable grid">
11+
<div class="ui ten wide tablet six wide computer column">
12+
13+
{% block project_add_content_header %}
14+
<h1 class="ui medium header">
15+
<div class="content">
16+
{% trans "Add project" %}
17+
<div class="sub header">
18+
{% block project_add_content_subheader %}
19+
{% endblock project_add_content_subheader %}
20+
</div>
21+
</div>
22+
</h1>
23+
{% endblock project_add_content_header %}
24+
25+
<form class="ui form" action="{% url "projects_import_manual" %}" method="post">
26+
27+
{% csrf_token %}
28+
{{ wizard.management_form }}
29+
30+
{% block wizard_form %}
31+
{% if wizard.form.forms %}
32+
{{ wizard.form.management_form }}
33+
{% for form in wizard.form.forms %}
34+
{% csrf_token %}
35+
{{ form|crispy }}
36+
{% endfor %}
37+
{% else %}
38+
{{ wizard.form|crispy }}
39+
{% endif %}
40+
{% endblock wizard_form %}
41+
42+
{% block wizard_actions %}
43+
<div>
44+
{% if wizard.steps.prev %}
45+
<button class="ui button" name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}">
46+
{% trans "Previous" %}
47+
</button>
48+
{% endif %}
49+
50+
{% if wizard.steps.next %}
51+
<input class="ui button primary" type="submit" value="{% trans "Next" %}" />
52+
{% else %}
53+
<input class="ui button primary" type="submit" value="{% trans "Finish" %}" />
54+
{% endif %}
55+
</div>
56+
{% endblock wizard_actions %}
57+
58+
</form>
59+
{% endblock project_add_content %}
60+
</div>
61+
62+
<div class="ui ten wide tablet four wide computer column">
63+
<h2 class="ui small header">{% trans "Help topics" %}</h2>
64+
<div data-embed-doc-view="intro/import-guide"
65+
data-bind="template: { name: 'doc-topics' }">
66+
</div>
67+
</div>
3968
</div>
69+
70+
{% include "includes/utils/embed_docs.html" %}
71+
4072
{% endblock %}

0 commit comments

Comments
 (0)