Skip to content

Commit

Permalink
updating htmx modals (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidslusser authored Sep 24, 2023
1 parent 8ced800 commit d51277d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ jobs:
steps:
- uses: davidslusser/actions_python_pypi@test
with:
build_command: "python setup.py sdist bdist_wheel"
pypi_username: ${{ secrets.PYPI_USERNAME }}
pypi_password: ${{ secrets.PYPI_PASSWORD }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ classifiers = [
]
dependencies = [
"django",
"django-handyhelpers",
"django-handyhelpers>=0.3.11",
"psutil",
]
description = "host utilities for django projects"
Expand Down
2 changes: 1 addition & 1 deletion src/djangoaddicts/hostutils/apps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.apps import AppConfig


class CodegenConfig(AppConfig):
class HostUtilsConfig(AppConfig):
name = "djangoaddicts.hostutils"
verbose_name = "Django Host Utilities"
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<ul class="list-group mx-auto justify-content-center" style="max-width: 93%; margin-top: .5%; margin-bottom: .5%">
{% for item in process_list %}
<li class="list-group-item bg-light shadow-sm hvr-grow mb-3">
<div hx-get="{% url 'hostutils:get_process_stats' item.pid %}" hx-target="#modal_wrapper">
<div hx-get="{% url 'hostutils:get_process_stats' item.pid %}" hx-target="#modal_wrapper" data-bs-toggle="modal" data-bs-target="#modal_wrapper">
<div class="row">
<div class="col-xs-12 col-md-2"><span class="key">PID:</span><span class="value">{{ item.pid }}</span></div>
<div class="col-xs-12 col-md-4"><span class="key">Name:</span><span class="value">{{ item.name }}</span></div>
Expand Down
3 changes: 1 addition & 2 deletions src/djangoaddicts/hostutils/views/htmx.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ def get(self, request):
class GetHostProcessStats(BuildBootstrapModalView):
"""Get statistics for a given process"""

modal_button_close = None
modal_button_submit = "Close"
modal_button_submit = None
modal_size = "modal-lg"
modal_title = "Process Details"

Expand Down

0 comments on commit d51277d

Please sign in to comment.