sandwitches 1.5.0__py3-none-any.whl → 2.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sandwitches/templates/components/side_menu.html +4 -0
- sandwitches/templates/setup.html +85 -35
- {sandwitches-1.5.0.dist-info → sandwitches-2.1.0.dist-info}/METADATA +1 -1
- {sandwitches-1.5.0.dist-info → sandwitches-2.1.0.dist-info}/RECORD +5 -5
- {sandwitches-1.5.0.dist-info → sandwitches-2.1.0.dist-info}/WHEEL +0 -0
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
<i class="extra padding">api</i>
|
|
21
21
|
<span class="large-text">{% trans "API Docs" %}</span>
|
|
22
22
|
</a>
|
|
23
|
+
<a href="{% url 'latest_recipes_feed' %}" class="padding">
|
|
24
|
+
<i class="extra padding">rss_feed</i>
|
|
25
|
+
<span class="large-text">{% trans "RSS Feed" %}</span>
|
|
26
|
+
</a>
|
|
23
27
|
{% if user.is_staff %}
|
|
24
28
|
<div class="divider"></div>
|
|
25
29
|
<a href="{% url 'admin_dashboard' %}" class="padding">
|
sandwitches/templates/setup.html
CHANGED
|
@@ -3,53 +3,103 @@
|
|
|
3
3
|
{% block title %}{% trans "Initial setup — Create admin" %}{% endblock %}
|
|
4
4
|
|
|
5
5
|
{% block content %}
|
|
6
|
-
<div class="
|
|
7
|
-
<article class="card">
|
|
8
|
-
<div class="card-body">
|
|
9
|
-
<h2>{% trans "Create initial administrator" %}</h2>
|
|
10
|
-
<p>
|
|
11
|
-
{% trans "This page is only available when there are no admin users in the database." %}
|
|
12
|
-
</p>
|
|
13
|
-
<p>
|
|
14
|
-
{% trans "After creating the account you will be logged in and redirected to the admin." %}
|
|
15
|
-
</p>
|
|
6
|
+
<div class="large-space"></div>
|
|
16
7
|
|
|
8
|
+
<div class="large-space"></div>
|
|
9
|
+
|
|
10
|
+
<div class="grid">
|
|
11
|
+
<div class="s12 m10 l8 xl6 middle-align center-align" style="margin: 0 auto;">
|
|
12
|
+
<article class="round elevate">
|
|
13
|
+
<div class="padding">
|
|
14
|
+
<h4 class="center-align primary-text">{% trans "Create initial administrator" %}</h4>
|
|
15
|
+
<p class="center-align">
|
|
16
|
+
{% trans "This page is only available when there are no admin users in the database." %}
|
|
17
|
+
</p>
|
|
18
|
+
<p class="center-align">
|
|
19
|
+
{% trans "After creating the account you will be logged in and redirected to the admin." %}
|
|
20
|
+
</p>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
17
23
|
<form method="post" novalidate>
|
|
18
24
|
{% csrf_token %}
|
|
25
|
+
|
|
19
26
|
{% if form.non_field_errors %}
|
|
20
|
-
<div class="
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
<div class="padding error surface round mb">
|
|
28
|
+
{% for err in form.non_field_errors %}
|
|
29
|
+
<div class="row align-center">
|
|
30
|
+
<i class="error-text">warning</i>
|
|
31
|
+
<span class="error-text">{{ err }}</span>
|
|
32
|
+
</div>
|
|
33
|
+
{% endfor %}
|
|
26
34
|
</div>
|
|
27
35
|
{% endif %}
|
|
28
36
|
|
|
29
|
-
<
|
|
30
|
-
|
|
37
|
+
<div class="grid">
|
|
38
|
+
<div class="s12 m6">
|
|
39
|
+
<div class="field label border round {% if form.first_name.errors %}error{% endif %}">
|
|
40
|
+
<input type="text" name="{{ form.first_name.name }}" id="{{ form.first_name.id_for_label }}" value="{{ form.first_name.value|default:'' }}">
|
|
41
|
+
<label>{% trans "First name" %}</label>
|
|
42
|
+
{% if form.first_name.errors %}
|
|
43
|
+
<span class="helper error-text">{{ form.first_name.errors.0 }}</span>
|
|
44
|
+
{% endif %}
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="s12 m6">
|
|
48
|
+
<div class="field label border round {% if form.last_name.errors %}error{% endif %}">
|
|
49
|
+
<input type="text" name="{{ form.last_name.name }}" id="{{ form.last_name.id_for_label }}" value="{{ form.last_name.value|default:'' }}">
|
|
50
|
+
<label>{% trans "Last name" %}</label>
|
|
51
|
+
{% if form.last_name.errors %}
|
|
52
|
+
<span class="helper error-text">{{ form.last_name.errors.0 }}</span>
|
|
53
|
+
{% endif %}
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
31
57
|
|
|
32
|
-
<
|
|
33
|
-
|
|
58
|
+
<div class="field label border round {% if form.username.errors %}error{% endif %}">
|
|
59
|
+
<input type="text" name="{{ form.username.name }}" id="{{ form.username.id_for_label }}" value="{{ form.username.value|default:'' }}">
|
|
60
|
+
<label>{% trans "Username" %}</label>
|
|
61
|
+
{% if form.username.errors %}
|
|
62
|
+
<span class="helper error-text">{{ form.username.errors.0 }}</span>
|
|
63
|
+
{% endif %}
|
|
64
|
+
</div>
|
|
34
65
|
|
|
35
|
-
<
|
|
36
|
-
|
|
66
|
+
<div class="field label border round {% if form.email.errors %}error{% endif %}">
|
|
67
|
+
<input type="email" name="{{ form.email.name }}" id="{{ form.email.id_for_label }}" value="{{ form.email.value|default:'' }}">
|
|
68
|
+
<label>{% trans "Email (optional)" %}</label>
|
|
69
|
+
{% if form.email.errors %}
|
|
70
|
+
<span class="helper error-text">{{ form.email.errors.0 }}</span>
|
|
71
|
+
{% endif %}
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<div class="space"></div>
|
|
75
|
+
<div class="divider"></div>
|
|
76
|
+
<div class="space"></div>
|
|
37
77
|
|
|
38
|
-
<
|
|
39
|
-
|
|
78
|
+
<div class="field label border round {% if form.password1.errors %}error{% endif %}">
|
|
79
|
+
<input type="password" name="{{ form.password1.name }}" id="{{ form.password1.id_for_label }}">
|
|
80
|
+
<label>{% trans "Password" %}</label>
|
|
81
|
+
{% if form.password1.errors %}
|
|
82
|
+
<span class="helper error-text">{{ form.password1.errors.0 }}</span>
|
|
83
|
+
{% endif %}
|
|
84
|
+
</div>
|
|
40
85
|
|
|
41
|
-
<
|
|
42
|
-
|
|
86
|
+
<div class="field label border round {% if form.password2.errors %}error{% endif %}">
|
|
87
|
+
<input type="password" name="{{ form.password2.name }}" id="{{ form.password2.id_for_label }}">
|
|
88
|
+
<label>{% trans "Confirm password" %}</label>
|
|
89
|
+
{% if form.password2.errors %}
|
|
90
|
+
<span class="helper error-text">{{ form.password2.errors.0 }}</span>
|
|
91
|
+
{% endif %}
|
|
92
|
+
</div>
|
|
43
93
|
|
|
44
|
-
<
|
|
45
|
-
|
|
94
|
+
<div class="large-space"></div>
|
|
95
|
+
|
|
96
|
+
<nav class="right-align">
|
|
97
|
+
<a class="button transparent border round" href="{% url 'index' %}">{% trans "Cancel" %}</a>
|
|
98
|
+
<button type="submit" class="button primary round">{% trans "Create admin" %}</button>
|
|
99
|
+
</nav>
|
|
46
100
|
|
|
47
|
-
<p style="margin-top:1rem;">
|
|
48
|
-
<button type="submit">{% trans "Create admin" %}</button>
|
|
49
|
-
<a class="contrast" href="{% url 'index' %}">{% trans "Cancel" %}</a>
|
|
50
|
-
</p>
|
|
51
101
|
</form>
|
|
52
|
-
</
|
|
53
|
-
</
|
|
102
|
+
</article>
|
|
103
|
+
</div>
|
|
54
104
|
</div>
|
|
55
|
-
{% endblock %}
|
|
105
|
+
{% endblock %}
|
|
@@ -41,14 +41,14 @@ sandwitches/templates/components/rating_section.html,sha256=Z_YDkmcSC1sNN5LR-3pn
|
|
|
41
41
|
sandwitches/templates/components/recipe_header.html,sha256=-LCp6KqkQO7a7yqR0jKUQ95-RczYU-_MFO058lE04_w,1473
|
|
42
42
|
sandwitches/templates/components/search_form.html,sha256=OqsrpG-eKtSedZ9k0ee1WrezOokuESrvKi62U1VA-B4,6665
|
|
43
43
|
sandwitches/templates/components/search_scripts.html,sha256=qDIqcOg3QEWS5bfJkJ3zFmWpt1UOiLs_vahOc-MtxZs,3463
|
|
44
|
-
sandwitches/templates/components/side_menu.html,sha256=
|
|
44
|
+
sandwitches/templates/components/side_menu.html,sha256=JyrhmyWLKKZj1yqriHqQc6Fv25TpmIgXNhoEdxrePVQ,1529
|
|
45
45
|
sandwitches/templates/components/user_menu.html,sha256=c20cBpyLheGvHdQ5nn-c4fjNlhfnAt3FAsw1V46rTwQ,369
|
|
46
46
|
sandwitches/templates/detail.html,sha256=w3e8tLZSbdHv3PVrzo-M1MSOsZPUbJCmvvrCYLiYhxk,5709
|
|
47
47
|
sandwitches/templates/favorites.html,sha256=0cPpW07N6Isrb8XpvA5Eh97L2-12QFZ43EzeJvbOlXo,917
|
|
48
48
|
sandwitches/templates/index.html,sha256=_ERrYj2iy_UWyIT_xVPNtBEggXDDVMSo61t7vEDdUTY,898
|
|
49
49
|
sandwitches/templates/partials/recipe_list.html,sha256=QoQNx1FP7viRgTp7Bpe20ECB9EZRt6vX-6jGxjd3WAQ,4001
|
|
50
50
|
sandwitches/templates/recipe_form.html,sha256=7-w5o3lfTJB3bTpL7UuMsin8ruHahaCXehp_RzeWjCA,4786
|
|
51
|
-
sandwitches/templates/setup.html,sha256=
|
|
51
|
+
sandwitches/templates/setup.html,sha256=CdcTrCwVmWMc-Iz1680MJp8r70Nt5YrYp4RYqLfB-LM,4691
|
|
52
52
|
sandwitches/templates/signup.html,sha256=GKzTZVczL6ovmAK2wT1t7VTIJgwotS16lsOC66AnYHc,6213
|
|
53
53
|
sandwitches/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
54
54
|
sandwitches/templatetags/custom_filters.py,sha256=0KDFlFz4b5LwlcURBAmzyYWKKea-LwydZytJGVkkuKA,243
|
|
@@ -57,6 +57,6 @@ sandwitches/urls.py,sha256=uhzsVpKC8Vo6ReDZk3BMg9Pxg4uSrFO8rUdNm18h-xI,3710
|
|
|
57
57
|
sandwitches/utils.py,sha256=SJP-TkeRZ0OIfaMigYrOSbxRqYXswoqoWhwll3nFuAM,7245
|
|
58
58
|
sandwitches/views.py,sha256=BpJkrBVXYoDMFborpH0FEaYT5xk0Dg4adCurXbFl4-o,20215
|
|
59
59
|
sandwitches/wsgi.py,sha256=Eyncpnahq_4s3Lr9ruB-R3Lu9j9zBXqgPbUj7qhIbwU,399
|
|
60
|
-
sandwitches-1.
|
|
61
|
-
sandwitches-1.
|
|
62
|
-
sandwitches-1.
|
|
60
|
+
sandwitches-2.1.0.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
|
|
61
|
+
sandwitches-2.1.0.dist-info/METADATA,sha256=DKBfQ5kBoZjDLbj-7y1TqnIRIcpaBLjib3V989q-q5Q,3111
|
|
62
|
+
sandwitches-2.1.0.dist-info/RECORD,,
|
|
File without changes
|