accrete 0.0.72__py3-none-any.whl → 0.0.74__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/context.py +2 -0
- accrete/contrib/ui/elements.py +1 -0
- accrete/contrib/ui/templates/ui/detail.html +7 -5
- accrete/contrib/ui/templates/ui/form.html +7 -5
- accrete/contrib/ui/templates/ui/layout.html +18 -0
- accrete/contrib/ui/templates/ui/partials/header.html +24 -1
- {accrete-0.0.72.dist-info → accrete-0.0.74.dist-info}/METADATA +1 -1
- {accrete-0.0.72.dist-info → accrete-0.0.74.dist-info}/RECORD +10 -10
- {accrete-0.0.72.dist-info → accrete-0.0.74.dist-info}/WHEEL +0 -0
- {accrete-0.0.72.dist-info → accrete-0.0.74.dist-info}/licenses/LICENSE +0 -0
accrete/contrib/ui/context.py
CHANGED
@@ -171,6 +171,7 @@ class DetailContext(Context):
|
|
171
171
|
object: Model
|
172
172
|
detail_page: DetailPagination = None
|
173
173
|
pagination_param_str: str = ''
|
174
|
+
info_panel: bool = False
|
174
175
|
|
175
176
|
|
176
177
|
@dataclass
|
@@ -180,6 +181,7 @@ class FormContext(Context):
|
|
180
181
|
form_id: str = 'form'
|
181
182
|
form_method: str = 'post'
|
182
183
|
form_action: str = ''
|
184
|
+
info_panel: bool = False
|
183
185
|
|
184
186
|
|
185
187
|
@dataclass
|
accrete/contrib/ui/elements.py
CHANGED
@@ -9,11 +9,13 @@
|
|
9
9
|
{% block detail_content %}{% endblock %}
|
10
10
|
</div>
|
11
11
|
</div>
|
12
|
-
|
13
|
-
<div class="
|
14
|
-
|
15
|
-
|
12
|
+
{% if info_panel %}
|
13
|
+
<div id="info-panel" class="column pt-0 pr-0 is-hidden-touch">
|
14
|
+
<div id="info-panel-content" class="p-0 mt-2">
|
15
|
+
{% block info_panel %}
|
16
|
+
{% endblock %}
|
17
|
+
</div>
|
16
18
|
</div>
|
17
|
-
|
19
|
+
{% endif %}
|
18
20
|
</div>
|
19
21
|
{% endblock %}
|
@@ -11,11 +11,13 @@
|
|
11
11
|
{% block form %}{% endblock %}
|
12
12
|
</div>
|
13
13
|
</div>
|
14
|
-
|
15
|
-
<div class="
|
16
|
-
|
17
|
-
|
14
|
+
{% if info_panel %}
|
15
|
+
<div id="info-panel" class="column pt-0 pr-0 is-hidden-touch">
|
16
|
+
<div id="info-panel-content" class="p-0 mt-2">
|
17
|
+
{% block info_panel %}
|
18
|
+
{% endblock %}
|
19
|
+
</div>
|
18
20
|
</div>
|
19
|
-
|
21
|
+
{% endif %}
|
20
22
|
</div>
|
21
23
|
{% endblock %}
|
@@ -264,5 +264,23 @@
|
|
264
264
|
</div>
|
265
265
|
</div>
|
266
266
|
{% endif %}
|
267
|
+
{% if info_panel %}
|
268
|
+
<div id="info-panel-modal" class="modal">
|
269
|
+
<div class="modal-background" onclick="hideInfoPanelModal()"></div>
|
270
|
+
<div class="modal-card" style="height: 100%; border-top-left-radius: var(--bulma-radius-large); border-top-right-radius: var(--bulma-radius-large)">
|
271
|
+
{# <header class="modal-card-head">#}
|
272
|
+
{# <p class="modal-card-title"></p>#}
|
273
|
+
{# <button class="delete" aria-label="close" onclick="hideInfoPanelModal()"></button>#}
|
274
|
+
{# </header>#}
|
275
|
+
<section id="info-panel-modal-content" class="modal-card-body p-0" style="margin-top: -8px">
|
276
|
+
</section>
|
277
|
+
<footer class="modal-card-foot">
|
278
|
+
<button class="button is-fullwidth" onclick="hideInfoPanelModal()">
|
279
|
+
{% translate 'Close' %}
|
280
|
+
</button>
|
281
|
+
</footer>
|
282
|
+
</div>
|
283
|
+
</div>
|
284
|
+
{% endif %}
|
267
285
|
{% endblock %}
|
268
286
|
</body>
|
@@ -104,7 +104,14 @@
|
|
104
104
|
{% if filter %}
|
105
105
|
<div class="is-flex ml-2 py-1 pr-3">
|
106
106
|
<button id="modal-filter-button" class="button has-icon" onclick="showFilterModal()">
|
107
|
-
<i class="
|
107
|
+
<i class="fa fa-filter"></i>
|
108
|
+
</button>
|
109
|
+
</div>
|
110
|
+
{% endif %}
|
111
|
+
{% if info_panel %}
|
112
|
+
<div class="is-flex is-hidden-desktop ml-2 py-1 pr-3">
|
113
|
+
<button id="modal-info-panel-button" class="button has-icon" onclick="showInfoPanelModal()">
|
114
|
+
<i class="fa fa-info"></i>
|
108
115
|
</button>
|
109
116
|
</div>
|
110
117
|
{% endif %}
|
@@ -119,5 +126,21 @@
|
|
119
126
|
function closeActionsModal(modalId) {
|
120
127
|
document.getElementById(modalId).classList.remove('is-active');
|
121
128
|
}
|
129
|
+
|
130
|
+
function showInfoPanelModal() {
|
131
|
+
let infoPanelModal = document.getElementById('info-panel-modal');
|
132
|
+
let infoPanelModalContent = document.getElementById('info-panel-modal-content');
|
133
|
+
let infoPanelContent = document.getElementById('info-panel-content');
|
134
|
+
infoPanelModalContent.appendChild(infoPanelContent);
|
135
|
+
infoPanelModal.classList.add('is-active');
|
136
|
+
}
|
137
|
+
|
138
|
+
function hideInfoPanelModal() {
|
139
|
+
let infoPanelModal = document.getElementById('info-panel-modal');
|
140
|
+
let infoPanel = document.getElementById('info-panel');
|
141
|
+
let infoPanelContent = document.getElementById('info-panel-content');
|
142
|
+
infoPanelModal.classList.remove('is-active');
|
143
|
+
infoPanel.appendChild(infoPanelContent);
|
144
|
+
}
|
122
145
|
</script>
|
123
146
|
</div>
|
@@ -37,8 +37,8 @@ accrete/contrib/system_mail/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JC
|
|
37
37
|
accrete/contrib/ui/__init__.py,sha256=jU-3gQtEwtac-NPxFYCEoYF58WmCEanedXah4lETkWU,552
|
38
38
|
accrete/contrib/ui/admin.py,sha256=suMo4x8I3JBxAFBVIdE-5qnqZ6JAZV0FESABHOSc-vg,63
|
39
39
|
accrete/contrib/ui/apps.py,sha256=E0ao2ox6PQ3ldfeR17FXJUUJuGiWjm2DPCxHbPXGzls,152
|
40
|
-
accrete/contrib/ui/context.py,sha256=
|
41
|
-
accrete/contrib/ui/elements.py,sha256=
|
40
|
+
accrete/contrib/ui/context.py,sha256=C4CrP5IfL1PRJFcG2oKHzIhARpoU6zo6Ctu2AbULDtQ,9827
|
41
|
+
accrete/contrib/ui/elements.py,sha256=IhK1WuhbJzV-Pvr0OVMkKrKpYYrl2knuvGimYECONfI,1917
|
42
42
|
accrete/contrib/ui/filter.py,sha256=UAIkUNKu2nVQLafwZlkQu4PDfOPyFM61e_mE7OWRhYs,12410
|
43
43
|
accrete/contrib/ui/tests.py,sha256=mrbGGRNg5jwbTJtWWa7zSKdDyeB4vmgZCRc2nk6VY-g,60
|
44
44
|
accrete/contrib/ui/urls.py,sha256=UrRRroqP6ANW_jpkRWqo2yLvBhYOVhczzbxbfkGnoq4,124
|
@@ -163,14 +163,14 @@ accrete/contrib/ui/templates/django/forms/widgets/select.html,sha256=jT_UnHizHfd
|
|
163
163
|
accrete/contrib/ui/templates/django/forms/widgets/text.html,sha256=MSmLlQc7PsPoDLVtTOOiWNprrsPriNr712yFxaHyDIo,47
|
164
164
|
accrete/contrib/ui/templates/django/forms/widgets/textarea.html,sha256=c9BTedqb3IkXLyVYd0p9pR8DFnsXCNGoxVBWZTk_Fic,278
|
165
165
|
accrete/contrib/ui/templates/ui/dashboard.html,sha256=udnwiSJEcn2wMaJfTs4P0Y20FU79VguK_9Lq4K2BqtM,160
|
166
|
-
accrete/contrib/ui/templates/ui/detail.html,sha256=
|
167
|
-
accrete/contrib/ui/templates/ui/form.html,sha256=
|
168
|
-
accrete/contrib/ui/templates/ui/layout.html,sha256=
|
166
|
+
accrete/contrib/ui/templates/ui/detail.html,sha256=ch1SgVrRHJpiT67QWYjPxUSPaYH9ajjFf9KAU75THGU,635
|
167
|
+
accrete/contrib/ui/templates/ui/form.html,sha256=SWCLgGRwwvNvSXx3c7MmwUnFjpbO-STYGOHLQPNBFeg,762
|
168
|
+
accrete/contrib/ui/templates/ui/layout.html,sha256=2YSanQxkn75KKNLxttdM55Zw3NM0JkxRzb9JrjMi7aM,16749
|
169
169
|
accrete/contrib/ui/templates/ui/list.html,sha256=pgrnv9PDwIZ_oSpWxqMRdVaWXiGEJyNCFgdMb2BoKmg,1442
|
170
170
|
accrete/contrib/ui/templates/ui/table.html,sha256=8ELtgxoapCyNsvmGISAGXe712lG6AkP_nekb4OVLK3I,4481
|
171
171
|
accrete/contrib/ui/templates/ui/partials/filter.html,sha256=2vmeL3980rMmkRnmVtZh9mBHe6S0PTMjaGIN1J6SpNM,7184
|
172
172
|
accrete/contrib/ui/templates/ui/partials/form_errors.html,sha256=C5ktasYff2xBTiWfM6QR8qaGKSyK9QufB3B9N77KGpg,1386
|
173
|
-
accrete/contrib/ui/templates/ui/partials/header.html,sha256=
|
173
|
+
accrete/contrib/ui/templates/ui/partials/header.html,sha256=v4VQuYTljvPpykxNVqMiy5NW1BjwJo89weja7cLYKhE,8138
|
174
174
|
accrete/contrib/ui/templates/ui/partials/modal_form.html,sha256=XCeKjhvIi-vGl9wbFT-eBuFgKNOdKrG9mrVA95lBMkg,2033
|
175
175
|
accrete/contrib/ui/templates/ui/partials/onchange_form.html,sha256=8wNgZYnpa6ttc-OraOi1i02isJCcnaMtYwsmObc3qcY,109
|
176
176
|
accrete/contrib/ui/templates/ui/partials/pagination_detail.html,sha256=58nA3X7Il0FAD4VcYyr7tTGWRiVf_FN1TkImmKEpKHU,1014
|
@@ -221,7 +221,7 @@ accrete/utils/dates.py,sha256=apM6kt6JhGrKgoT0jfav1W-8AUVTxNc9xt3fJQ2n0JI,1492
|
|
221
221
|
accrete/utils/forms.py,sha256=Lll-DvAhKZDw72XeuCtb4wxQEJNFp7lQWh_Z1GyH3Zk,3049
|
222
222
|
accrete/utils/http.py,sha256=mAtQRgADv7zu1_j7A-EKVyb-oqa5a21i4Gd0QfjzGV0,3540
|
223
223
|
accrete/utils/models.py,sha256=EEhv7-sQVtQD24PEb3XcDUAh3VVhVFoMMLyFrDjGEaI,706
|
224
|
-
accrete-0.0.
|
225
|
-
accrete-0.0.
|
226
|
-
accrete-0.0.
|
227
|
-
accrete-0.0.
|
224
|
+
accrete-0.0.74.dist-info/METADATA,sha256=_zYJE4A9r4AdSfHTz0l9iX3qHtgWoQuu76IV7LidOUg,4892
|
225
|
+
accrete-0.0.74.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
226
|
+
accrete-0.0.74.dist-info/licenses/LICENSE,sha256=_7laeMIHnsd3Y2vJEXDYXq_PEXxIcjgJsGt8UIKTRWc,1057
|
227
|
+
accrete-0.0.74.dist-info/RECORD,,
|
File without changes
|
File without changes
|