accrete 0.0.32__py3-none-any.whl → 0.0.34__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.
- accrete/contrib/ui/templates/ui/layout.html +8 -14
- accrete/contrib/ui/templates/ui/table.html +14 -1
- {accrete-0.0.32.dist-info → accrete-0.0.34.dist-info}/METADATA +1 -1
- {accrete-0.0.32.dist-info → accrete-0.0.34.dist-info}/RECORD +7 -9
- accrete/contrib/ui/static/js/navbar.js +0 -26
- accrete/contrib/ui/static/js/utils.js +0 -9
- /accrete/contrib/user/templates/user/{accrete_navbar_end.html → accrete_navbar_end_dropdown.html} +0 -0
- {accrete-0.0.32.dist-info → accrete-0.0.34.dist-info}/WHEEL +0 -0
- {accrete-0.0.32.dist-info → accrete-0.0.34.dist-info}/licenses/LICENSE +0 -0
@@ -10,20 +10,14 @@
|
|
10
10
|
<meta charset="utf-8">
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
12
12
|
{% block favicon %}<link rel="icon" type="image/svg" href="{% static 'icons/accrete.svg' %}"/>{% endblock %}
|
13
|
-
{# {% block bulma %}<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">{% endblock %}#}
|
14
|
-
{% block bulma %}<link rel="stylesheet" type="text/css" href="{% static "css/accrete.css" %}">{% endblock %}
|
15
13
|
{% block style %}
|
16
|
-
|
14
|
+
<link rel="stylesheet" type="text/css" href="{% static "css/accrete.css" %}">
|
17
15
|
<link rel="stylesheet" type="text/css" href="{% static "css/icons.css" %}">
|
18
16
|
{% endblock %}
|
19
17
|
{% block htmx %}
|
20
|
-
<script src="https://unpkg.com/htmx.org@1.9.
|
21
|
-
<script src="https://unpkg.com/hyperscript.org@0.9.11"></script>
|
22
|
-
{% endblock %}
|
23
|
-
{% block script %}
|
24
|
-
<script src="{% static "js/navbar.js" %}" defer type="text/javascript"></script>
|
25
|
-
<script src="{% static "js/utils.js" %}" defer type="text/javascript"></script>
|
18
|
+
<script src="https://unpkg.com/htmx.org@1.9.10" integrity="sha384-D1Kt99CQMDuVetoL1lrYwg5t+9QdHe7NLX/SoJYkXDFfX37iInKRy5xLSi8nO7UC" crossorigin="anonymous"></script>
|
26
19
|
{% endblock %}
|
20
|
+
{% block script %}{% endblock %}
|
27
21
|
<title>{% block title %}{{ title }}{% endblock %}</title>
|
28
22
|
{% endblock %}
|
29
23
|
</head>
|
@@ -31,14 +25,14 @@
|
|
31
25
|
|
32
26
|
<body {% block body_attrs %}hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'{% endblock %}>
|
33
27
|
{% block navbar %}
|
34
|
-
<nav id="navbar" class="navbar is-success is-fixed-top" role="navigation" aria-label="main navigation"
|
28
|
+
<nav id="navbar" class="navbar is-success is-fixed-top" role="navigation" aria-label="main navigation">
|
35
29
|
<div class="navbar-brand">
|
36
30
|
{% block navbar_brand %}
|
37
31
|
<div class="navbar-item is-unselectable">{{ request.tenant.name }}</div>
|
38
32
|
{% endblock %}
|
39
33
|
<a id="navbar-burger" role="button" class="navbar-burger"
|
40
34
|
aria-label="menu" aria-expanded="false"
|
41
|
-
|
35
|
+
onclick="this.classList.toggle('is-active'); document.getElementById('navbar-menu').classList.toggle('is-active');"
|
42
36
|
>
|
43
37
|
{# Display hamburger menu on mobile #}
|
44
38
|
<span aria-hidden="true"></span>
|
@@ -47,7 +41,7 @@
|
|
47
41
|
</a>
|
48
42
|
</div>
|
49
43
|
|
50
|
-
<div class="navbar-menu is-fixed-top">
|
44
|
+
<div id="navbar-menu" class="navbar-menu is-fixed-top">
|
51
45
|
<div class="navbar-start">
|
52
46
|
{% block navbar_start %}
|
53
47
|
{% combine_templates 'accrete_menu.html' %}
|
@@ -56,7 +50,7 @@
|
|
56
50
|
|
57
51
|
<div class="navbar-end">
|
58
52
|
{% block navbar_end %}
|
59
|
-
<div class="navbar-item has-dropdown is-hoverable">
|
53
|
+
<div class="navbar-item has-dropdown is-hoverable" onclick="this.classList.toggle('is-active');">
|
60
54
|
<a class="navbar-link is-arrowless {% if request.member.name %}is-size-7 has-text-centered-desktop{% endif %}">
|
61
55
|
{% if request.member.name %}
|
62
56
|
{{ request.member }}<br>{{ user }}
|
@@ -65,7 +59,7 @@
|
|
65
59
|
{% endif %}
|
66
60
|
</a>
|
67
61
|
<div id="navbar-end-dropdown" class="navbar-dropdown is-right">
|
68
|
-
{% combine_templates '
|
62
|
+
{% combine_templates 'accrete_navbar_end_dropdown.html' request=request %}
|
69
63
|
</div>
|
70
64
|
</div>
|
71
65
|
{% endblock %}
|
@@ -38,7 +38,20 @@
|
|
38
38
|
{% if field.template %}
|
39
39
|
{% include field.template %}
|
40
40
|
{% else %}
|
41
|
-
{%
|
41
|
+
{% with val=obj|get_attr:field.name|default_if_none:'---' %}
|
42
|
+
<td style="text-align: {{ field.alignment.value }}" {% if val|length > field.truncate_after %}title="{{ val }}"{% endif %}>
|
43
|
+
<span class="responsive-heading has-text-weight-light" style="margin-right: .2rem">{{ field.label }}:</span>
|
44
|
+
{{ field.prefix }}
|
45
|
+
{% block td_content %}
|
46
|
+
{% if field.truncate_after > 0 %}
|
47
|
+
{{ val|truncatechars:field.truncate_after }}
|
48
|
+
{% else %}
|
49
|
+
{{ val }}
|
50
|
+
{% endif %}
|
51
|
+
{% endblock %}
|
52
|
+
{{ field.suffix }}
|
53
|
+
</td>
|
54
|
+
{% endwith %}
|
42
55
|
{% endif %}
|
43
56
|
{% endfor %}
|
44
57
|
{% if unselect_button %}
|
@@ -127,8 +127,6 @@ accrete/contrib/ui/static/icons/Logo.svg,sha256=hGZuxrAa-LRpFavFiF8Lnc7X9OQcqmb6
|
|
127
127
|
accrete/contrib/ui/static/icons/accrete.svg,sha256=CWHJKIgk3hxL7xIaFSz2j1cK-eF1TroCbjcF58bgOIs,1024
|
128
128
|
accrete/contrib/ui/static/js/filter.js,sha256=gHNrUa51KWn472xXGhW7YO4zg27wJHTBsRdBphtFtgo,22061
|
129
129
|
accrete/contrib/ui/static/js/list.js,sha256=OX_81ifRmawE-1QBU5Qpq_E6sHiiNwIPleETAn9EOJw,4280
|
130
|
-
accrete/contrib/ui/static/js/navbar.js,sha256=BEOizZibjwnMRpVC6i_HpE5aOkgLJGwNhSwghMeG96U,779
|
131
|
-
accrete/contrib/ui/static/js/utils.js,sha256=6RKh3EJ57gx5UIjBcSaeZEs7lZdLvyYT9VAQ-WqlKSk,173
|
132
130
|
accrete/contrib/ui/templates/django/forms/widgets/attrs.html,sha256=zNxjU4Ta_eWZkh1WhrF_VIwNZ0lZyl980gSSijUK51k,195
|
133
131
|
accrete/contrib/ui/templates/django/forms/widgets/email.html,sha256=fXpbxMzAdbv_avfWC5464gD2jFng931Eq7vzbzy1-yA,48
|
134
132
|
accrete/contrib/ui/templates/django/forms/widgets/file.html,sha256=J1NmXmQTp6IU48K-zRdLeYl-1Tpavx6ZAo3cPIP9Y6Y,755
|
@@ -138,9 +136,9 @@ accrete/contrib/ui/templates/django/forms/widgets/text.html,sha256=MSmLlQc7PsPoD
|
|
138
136
|
accrete/contrib/ui/templates/django/forms/widgets/textarea.html,sha256=c9BTedqb3IkXLyVYd0p9pR8DFnsXCNGoxVBWZTk_Fic,278
|
139
137
|
accrete/contrib/ui/templates/ui/detail.html,sha256=0sqsW_XbtLVIquXA8157ZWamnwRc4Wp-6_aZgZ5HN64,1051
|
140
138
|
accrete/contrib/ui/templates/ui/form.html,sha256=kIIG4zzNbxb5fJAVr3lI05oa3yoxyAwstMeQWLa2Z0Y,409
|
141
|
-
accrete/contrib/ui/templates/ui/layout.html,sha256=
|
139
|
+
accrete/contrib/ui/templates/ui/layout.html,sha256=9-T8f3mZV6SJBQU6OVls-clKJAp6HgEZs0zguJfQyQw,8686
|
142
140
|
accrete/contrib/ui/templates/ui/list.html,sha256=KmTPrXNS75FRSyb990VmMJ-r7B-nshMo8m3C9M1tHtg,1249
|
143
|
-
accrete/contrib/ui/templates/ui/table.html,sha256=
|
141
|
+
accrete/contrib/ui/templates/ui/table.html,sha256=05KI_pVJx5ost4kRZmh7dbhEAsGymaGmzj8X40yOcME,3818
|
144
142
|
accrete/contrib/ui/templates/ui/partials/filter.html,sha256=phofFaGKBt_A5Hv_8IVT58MRQYeiNZE-HjyBadZPXWs,2714
|
145
143
|
accrete/contrib/ui/templates/ui/partials/form_errors.html,sha256=1_TQvTdiejsn-43YSyp2YfnP52P-MFYb-HGY0DLm4oA,991
|
146
144
|
accrete/contrib/ui/templates/ui/partials/form_modal.html,sha256=FFDfI5qjOCUBSGqDjBXa8tcqN2q94wOOCNFDaiyplHQ,1032
|
@@ -167,7 +165,7 @@ accrete/contrib/user/locale/de/LC_MESSAGES/django.mo,sha256=p3rgUg6WltAVIMkQsjvj
|
|
167
165
|
accrete/contrib/user/locale/de/LC_MESSAGES/django.po,sha256=f_Nxpo3HTm2L3f3zoHLfeWsZ-4IQp_EEVSku6TCZSvw,1870
|
168
166
|
accrete/contrib/user/migrations/0001_initial.py,sha256=JWfM9PcMDfkJUdCjLWuWieGs6643qP0KdbCyr5uAZoY,2950
|
169
167
|
accrete/contrib/user/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
170
|
-
accrete/contrib/user/templates/user/
|
168
|
+
accrete/contrib/user/templates/user/accrete_navbar_end_dropdown.html,sha256=vDFjrOZ95doOpdGYSCRlP8H-FfKUWpkYgYP8mOKcboY,481
|
171
169
|
accrete/contrib/user/templates/user/change_email.html,sha256=i9ZgDH31awO9W87E6c3_MKgQNf1ff7EYQX1nEdPqRC8,995
|
172
170
|
accrete/contrib/user/templates/user/change_password.html,sha256=wcwm5_tfPgs9V7VWdDQqhhyMpcIkiGsx2OIptF5fWMk,1498
|
173
171
|
accrete/contrib/user/templates/user/login.html,sha256=qKUqF5WCkWPrbwQMaa05Ou7zkM_CeVrJzHsjsDWNPhQ,1644
|
@@ -191,7 +189,7 @@ accrete/migrations/0002_initial.py,sha256=dFOM7kdHlx7pVAh8cTDlZMtciN4O9Z547HAzEK
|
|
191
189
|
accrete/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
192
190
|
accrete/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
193
191
|
accrete/utils/dates.py,sha256=apM6kt6JhGrKgoT0jfav1W-8AUVTxNc9xt3fJQ2n0JI,1492
|
194
|
-
accrete-0.0.
|
195
|
-
accrete-0.0.
|
196
|
-
accrete-0.0.
|
197
|
-
accrete-0.0.
|
192
|
+
accrete-0.0.34.dist-info/METADATA,sha256=N__sie1snNctZ5bEF-ksm9S9LvGHrX1CirC1rh806yY,4892
|
193
|
+
accrete-0.0.34.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
|
194
|
+
accrete-0.0.34.dist-info/licenses/LICENSE,sha256=_7laeMIHnsd3Y2vJEXDYXq_PEXxIcjgJsGt8UIKTRWc,1057
|
195
|
+
accrete-0.0.34.dist-info/RECORD,,
|
@@ -1,26 +0,0 @@
|
|
1
|
-
function toggleNavDropDown() {
|
2
|
-
const target = this.event.target;
|
3
|
-
if (target.classList.contains('navbar-link')) {
|
4
|
-
if (target.classList.contains('is-active')) {
|
5
|
-
target.classList.remove('is-active');
|
6
|
-
target.removeAttribute('tabindex');
|
7
|
-
target.addEventListener('blur', deactivateNavDropDown);
|
8
|
-
}
|
9
|
-
else {
|
10
|
-
target.classList.add('is-active');
|
11
|
-
target.setAttribute('tabindex', '0');
|
12
|
-
}
|
13
|
-
}
|
14
|
-
else {
|
15
|
-
target.querySelectorAll('.navbar-link').forEach(el => {
|
16
|
-
el.classList.remove('is-active');
|
17
|
-
el.removeAttribute('tabindex');
|
18
|
-
})
|
19
|
-
}
|
20
|
-
}
|
21
|
-
|
22
|
-
|
23
|
-
function deactivateNavDropDown() {
|
24
|
-
this.classList.remove('is-active');
|
25
|
-
this.removeAttribute('tabindex');
|
26
|
-
}
|
/accrete/contrib/user/templates/user/{accrete_navbar_end.html → accrete_navbar_end_dropdown.html}
RENAMED
File without changes
|
File without changes
|
File without changes
|