-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updates and templates for HtmxOptionMultiFilterView * reorder parameters --------- Co-authored-by: David Slusser <david.slusser@sealstorage.io>
- Loading branch information
1 parent
82bc3aa
commit 54ebf96
Showing
12 changed files
with
143 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/controls.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<div class="col-2 d-flex align-items-end justify-content-end pe-2"> | ||
{% if control_list|length > 1 %} | ||
{% for control in control_list %} | ||
<span class="mx-1"> | ||
<a href="#" {% if control.name == display %}class="text-secondary" style="opacity: .25;"{% endif %} | ||
hx-get="{{ control.url }}" | ||
hx-target="#body_main" | ||
title="{{ control.name }} view" | ||
hx-push-url="true" | ||
>{{ control.icon|safe }}</a> | ||
</span> | ||
{% endfor %} | ||
{% endif %} | ||
{% if query_string %} | ||
<span class="mx-1 text-primary"> | ||
<a href="{{ root_url }}{{ display }}/"> | ||
<i class="fas fa-undo-alt"></i> | ||
</a> | ||
</span> | ||
{% endif %} | ||
</div> |
17 changes: 17 additions & 0 deletions
17
handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/card.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<div class="container mt-5"> | ||
<div class="row justify-content-center"> | ||
{% for row in queryset %} | ||
<div class="col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center mb-4"> | ||
<div class="card hvr-grow"> | ||
<div class="card-body"> | ||
<div class="card-title mb-1 fs-6 fw-bold text-primary">{{ row.pk }}</div> | ||
<div class="card-text text-secondary row" style="font-size: smaller;"> | ||
<div class="col-12">{{ row.created_at }}</div> | ||
<div class="col-12">{{ row.updated_at }}</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> |
11 changes: 11 additions & 0 deletions
11
handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/list.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div class="list-group mt-3"> | ||
{% for row in queryset %} | ||
<div class="list-group-item border rounded mb-2 hvr-grow"> | ||
<div class="mb-1 fs-6 fw-bold text-primary">{{ row.pk }}</div> | ||
<div class="mb-1 text-secondary row" style="font-size: smaller;"> | ||
<div class="col-4">{{ row.created_at }}</div> | ||
<div class="col-8">{{ row.updated_at }}</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> |
21 changes: 21 additions & 0 deletions
21
...yhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/table.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<table class="table table-condensed table-bordered table-striped mt-3"> | ||
<thead> | ||
<tr> | ||
<th class="sortable">ID<i class="fa fa-sortable fa-sort-up"></i><i class="fa fa-sortable fa-sort-down"></i></th> | ||
<th class="sortable">Created At <i class="fa fa-sortable fa-sort-up"></i><i class="fa fa-sortable fa-sort-down"></i></th> | ||
<th class="sortable">Updated At <i class="fa fa-sortable fa-sort-up"></i><i class="fa fa-sortable fa-sort-down"></i></th> | ||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for row in queryset %} | ||
<tr> | ||
<td>{{ row.pk }}</td> | ||
<td>{{ row.created_at }}</td> | ||
<td>{{ row.updated_at }}</td> | ||
<td> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> |
6 changes: 6 additions & 0 deletions
6
handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/full.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% extends BASE_TEMPLATE|default:"base.htm" %} | ||
{% load static %} | ||
|
||
{% block content %} | ||
<div hx-get="{{ url }}" hx-trigger="load"></div> | ||
{% endblock content %} |
7 changes: 7 additions & 0 deletions
7
handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_card.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<section> | ||
{% include 'handyhelpers/htmx/bs5/htmx_option_multi_filter_view/content_title.htm' %} | ||
|
||
<div class="container-fluid px-5 py-2 animated fadeIn" style="animation-delay: .2s;"> | ||
{% if item_content %}{% include item_content %}{% endif %} | ||
</div> | ||
</section> |
7 changes: 7 additions & 0 deletions
7
handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_list.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<section> | ||
{% include 'handyhelpers/htmx/bs5/htmx_option_multi_filter_view/content_title.htm' %} | ||
|
||
<div class="container-fluid px-5 py-2 animated fadeIn" style="animation-delay: .2s;"> | ||
{% if item_content %}{% include item_content %}{% endif %} | ||
</div> | ||
</section> |
7 changes: 7 additions & 0 deletions
7
...helpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_minimal.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<section> | ||
{% include 'handyhelpers/htmx/bs5/htmx_option_multi_filter_view/content_title.htm' %} | ||
|
||
<div class="container-fluid px-5 py-2 animated fadeIn" style="animation-delay: .2s;"> | ||
{% if item_content %}{% include item_content %}{% endif %} | ||
</div> | ||
</section> |
7 changes: 3 additions & 4 deletions
7
...s/handyhelpers/htmx/bs5/table_wrapper.htm → ...ption_multi_filter_view/wrapper_table.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters