Skip to content

Commit

Permalink
Update django-components
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjcastillo committed Mar 2, 2024
1 parent 16af80b commit ebafe99
Show file tree
Hide file tree
Showing 18 changed files with 41 additions and 41 deletions.
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ python = "^3.10"
Django = "^5.0.1"
django-htmx = "^1.17.2"
WebTest = "^3.0.0"
django-components = "0.34.1"
django-components = "0.50"
django-environ = "^0.11.2"
whitenoise = "^6.6.0"
redis = "^5.0.1"
Expand Down
2 changes: 1 addition & 1 deletion src/components/bulk_update/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TableBulkUpdateComponent(component.Component):
</tr>
</thead>
<tbody id="tbody">
{% component "tbody_bulk_update" contacts=contacts only %}
{% component "tbody_bulk_update" contacts=contacts only %}{% endcomponent %}
</tbody>
</table>
</form>
Expand Down
2 changes: 1 addition & 1 deletion src/components/cascading_selects/parent_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ParentSelectCascadingSelectsComponent(component.Component):
<div class="mt-2">
<label class="label">Model</label>
<select id="models" name="model" class="input">
{% component "select_cascading_selects" brand=brands.0.id %}
{% component "select_cascading_selects" brand=brands.0.id %}{% endcomponent %}
</select>
</div>
"""
Expand Down
2 changes: 1 addition & 1 deletion src/components/click_to_load/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TableClickToLoadComponent(component.Component):
</tr>
</thead>
<tbody id="tbody">
{% component "tbody_click_to_load" page_obj=page_obj only %}
{% component "tbody_click_to_load" page_obj=page_obj only %}{% endcomponent %}
</tbody>
</table>
"""
Expand Down
2 changes: 1 addition & 1 deletion src/components/edit_row/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class TableEditRowComponent(component.Component):
</thead>
<tbody id="tbody" hx-target="closest tr" hx-swap="outerHTML">
{% for contact in contacts %}
{% component "row_edit_row" contact=contact only %}
{% component "row_edit_row" contact=contact only %}{% endcomponent %}
{% endfor %}
</tbody>
</table>
Expand Down
2 changes: 1 addition & 1 deletion src/components/infinite_scroll/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class TableInfiniteScrollComponent(component.Component):
</tr>
</thead>
<tbody id="tbody">
{% component "tbody_infinite_scroll" page_obj=page_obj only %}
{% component "tbody_infinite_scroll" page_obj=page_obj only %}{% endcomponent %}
</tbody>
</table>
<img id="busy-indicator"
Expand Down
2 changes: 1 addition & 1 deletion src/components/progress_bar/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class StatusProgressBarComponent(component.Component):
Complete
{% endif %}
</h3>
{% component "bar_progress_bar" id=job.id done=done %}
{% component "bar_progress_bar" id=job.id done=done %}{% endcomponent %}{% endcomponent %}{% endcomponent %}{% endcomponent %}{% endcomponent %}
</div>
{% if done %}
<button id="restart-btn" class="btn-primary" hx-post="{% url 'start_progress_bar' %}" classes="add show:600ms">
Expand Down
6 changes: 3 additions & 3 deletions src/templates/active_search.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{# djlint:off #}
{% include "_base.html" %}
{% block content %}
{% component_block "component_tabs" %}
{% component "component_tabs" %}
{% fill "component_code" %}
{% component "input_active_search" %}
{% component "input_active_search" %}{% endcomponent %}
{% endfill %}
{% endcomponent_block "component_tabs" %}
{% endcomponent %}
{% endblock content %}
{# djlint:on #}
6 changes: 3 additions & 3 deletions src/templates/bulk_update.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{# djlint:off #}
{% include "_base.html" %}
{% block content %}
{% component_block "component_tabs" %}
{% component "component_tabs" %}
{% fill "component_code" %}
{% component "table_bulk_update" %}
{% component "table_bulk_update" %}{% endcomponent %}
{% endfill %}
{% endcomponent_block "component_tabs" %}
{% endcomponent %}
{% endblock content %}
{# djlint:on #}
6 changes: 3 additions & 3 deletions src/templates/cascading_selects.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{# djlint:off #}
{% include "_base.html" %}
{% block content %}
{% component_block "component_tabs" %}
{% component "component_tabs" %}
{% fill "component_code" %}
{% component "parent_select_cascading_selects" %}
{% component "parent_select_cascading_selects" %}{% endcomponent %}
{% endfill %}
{% endcomponent_block "component_tabs" %}
{% endcomponent %}
{% endblock content %}
{# djlint:on #}
6 changes: 3 additions & 3 deletions src/templates/click_to_edit.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{# djlint:off #}
{% include "_base.html" %}
{% block content %}
{% component_block "component_tabs" %}
{% component "component_tabs" %}
{% fill "component_code" %}
{% component "click_to_edit" id=first_available_id %}
{% component "click_to_edit" id=first_available_id %}{% endcomponent %}
{% endfill %}
{% endcomponent_block "component_tabs" %}
{% endcomponent %}
{% endblock content %}
{# djlint:on #}
6 changes: 3 additions & 3 deletions src/templates/click_to_load.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{# djlint:off #}
{% include "_base.html" %}
{% block content %}
{% component_block "component_tabs" %}
{% component "component_tabs" %}
{% fill "component_code" %}
{% component "table_click_to_load" %}
{% component "table_click_to_load" %}{% endcomponent %}
{% endfill %}
{% endcomponent_block "component_tabs" %}
{% endcomponent %}
{% endblock content %}
{# djlint:on #}
6 changes: 3 additions & 3 deletions src/templates/delete_row.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{# djlint:off #}
{% include "_base.html" %}
{% block content %}
{% component_block "component_tabs" %}
{% component "component_tabs" %}
{% fill "component_code" %}
{% component "delete_row" %}
{% component "delete_row" %}{% endcomponent %}
{% endfill %}
{% endcomponent_block "component_tabs" %}
{% endcomponent %}
{% endblock content %}
{# djlint:on #}
6 changes: 3 additions & 3 deletions src/templates/edit_row.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{# djlint:off #}
{% include "_base.html" %}
{% block content %}
{% component_block "component_tabs" %}
{% component "component_tabs" %}
{% fill "component_code" %}
{% component "table_edit_row" %}
{% component "table_edit_row" %}{% endcomponent %}
{% endfill %}
{% endcomponent_block "component_tabs" %}
{% endcomponent %}
{% endblock content %}
{# djlint:on #}
6 changes: 3 additions & 3 deletions src/templates/infinite_scroll.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{# djlint:off #}
{% include "_base.html" %}
{% block content %}
{% component_block "component_tabs" %}
{% component "component_tabs" %}
{% fill "component_code" %}
{% component "table_infinite_scroll" %}
{% component "table_infinite_scroll" %}{% endcomponent %}
{% endfill %}
{% endcomponent_block "component_tabs" %}
{% endcomponent %}
{% endblock content %}
{# djlint:on #}
6 changes: 3 additions & 3 deletions src/templates/inline_validation.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{# djlint:off #}
{% include "_base.html" %}
{% block content %}
{% component_block "component_tabs" %}
{% component "component_tabs" %}
{% fill "component_code" %}
{% component "form_inline_validation" %}
{% component "form_inline_validation" %}{% endcomponent %}
{% endfill %}
{% endcomponent_block "component_tabs" %}
{% endcomponent %}
{% endblock content %}
{# djlint:on #}
6 changes: 3 additions & 3 deletions src/templates/progress_bar.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{# djlint:off #}
{% include "_base.html" %}
{% block content %}
{% component_block "component_tabs" %}
{% component "component_tabs" %}
{% fill "component_code" %}
{% component "start_progress_bar" %}
{% component "start_progress_bar" %}{% endcomponent %}
{% endfill %}
{% endcomponent_block "component_tabs" %}
{% endcomponent %}
{% endblock content %}
{# djlint:on #}

0 comments on commit ebafe99

Please sign in to comment.