From e08e54e4ad59dc2dca4aaa421f49026b45575047 Mon Sep 17 00:00:00 2001 From: "Andrew K. Choi" Date: Thu, 7 Aug 2025 17:42:30 +0900 Subject: [PATCH 1/5] btn design --- lottery/templates/admin/botconfig_change_form.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lottery/templates/admin/botconfig_change_form.html b/lottery/templates/admin/botconfig_change_form.html index b091343..0778189 100644 --- a/lottery/templates/admin/botconfig_change_form.html +++ b/lottery/templates/admin/botconfig_change_form.html @@ -5,7 +5,7 @@ {{ block.super }} {% if original %}
  • - 🔁 Перезапустить бота From b5f3b8ce22df1cf3f2d44d3ca0b2166f16589d13 Mon Sep 17 00:00:00 2001 From: "Andrew K. Choi" Date: Thu, 7 Aug 2025 17:45:20 +0900 Subject: [PATCH 2/5] container added --- lottery/templates/admin/botconfig_change_form.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lottery/templates/admin/botconfig_change_form.html b/lottery/templates/admin/botconfig_change_form.html index 0778189..69889c1 100644 --- a/lottery/templates/admin/botconfig_change_form.html +++ b/lottery/templates/admin/botconfig_change_form.html @@ -4,11 +4,11 @@ {% block object-tools %} {{ block.super }} {% if original %} -
  • +
    🔁 Перезапустить бота -
  • + {% endif %} {% endblock %} From a7137678b7a688252962bb77beef6c7528dad8fc Mon Sep 17 00:00:00 2001 From: "Andrew K. Choi" Date: Thu, 7 Aug 2025 17:47:23 +0900 Subject: [PATCH 3/5] design refactor --- lottery/templates/admin/botconfig_change_form.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lottery/templates/admin/botconfig_change_form.html b/lottery/templates/admin/botconfig_change_form.html index 69889c1..81103c4 100644 --- a/lottery/templates/admin/botconfig_change_form.html +++ b/lottery/templates/admin/botconfig_change_form.html @@ -4,11 +4,11 @@ {% block object-tools %} {{ block.super }} {% if original %} - {% endif %} -{% endblock %} +{% endblock %} \ No newline at end of file From 4c595b1797f90a7604a4392762200213dd06a9a5 Mon Sep 17 00:00:00 2001 From: "Andrew K. Choi" Date: Thu, 7 Aug 2025 17:51:57 +0900 Subject: [PATCH 4/5] some fixes in templates --- .../admin/botconfig_change_form.html | 37 ++++++++++++++++++- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/lottery/templates/admin/botconfig_change_form.html b/lottery/templates/admin/botconfig_change_form.html index 81103c4..ddb6bbe 100644 --- a/lottery/templates/admin/botconfig_change_form.html +++ b/lottery/templates/admin/botconfig_change_form.html @@ -5,10 +5,43 @@ {{ block.super }} {% if original %} {% endif %} +{% endblock %} +{% block extrahead %} + {{ block.super }} + +{% endblock %} + +{% block content %} +

    Настройки бота: {{ original.name }}

    +
    + {% csrf_token %} + {{ adminform.form.as_p }} + +
    +{% endblock %} + +{% block footer %} + {{ block.super }} + {% endblock %} \ No newline at end of file From 8c00c925775cd54064735fb72e3465267514eeff Mon Sep 17 00:00:00 2001 From: "Andrew K. Choi" Date: Thu, 7 Aug 2025 17:53:14 +0900 Subject: [PATCH 5/5] rollback --- lottery/templates/admin/botconfig_change_form.html | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lottery/templates/admin/botconfig_change_form.html b/lottery/templates/admin/botconfig_change_form.html index ddb6bbe..e561e54 100644 --- a/lottery/templates/admin/botconfig_change_form.html +++ b/lottery/templates/admin/botconfig_change_form.html @@ -21,15 +21,6 @@ {% endblock %} -{% block content %} -

    Настройки бота: {{ original.name }}

    -
    - {% csrf_token %} - {{ adminform.form.as_p }} - -
    -{% endblock %} - {% block footer %} {{ block.super }}