Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor - incididunt ut labore et dolore magna aliqua.
+From 88ddb5fe249debd0cb1ee9a0d59a8440b50cb693 Mon Sep 17 00:00:00 2001 From: Cybernetic-Ransomware <71835339+Cybernetic-Ransomware@users.noreply.github.com> Date: Sun, 31 May 2026 05:06:23 +0200 Subject: [PATCH 01/15] refactor(frontend): replace crispy-forms with Pico-native rendering and fix functional bugs --- pyproject.toml | 3 - .../templates/animals/all_animals_stable.html | 22 +- .../templates/animals/change_birthday.html | 11 +- .../animals/change_first_contact.html | 19 +- .../templates/animals/change_owner.html | 29 +-- .../animals/templates/animals/create.html | 20 +- .../apps/animals/templates/animals/image.html | 15 +- .../templates/animals/manage_keepers.html | 37 ++-- .../animals/templates/animals/profile.html | 166 ++++++--------- .../homepage/templates/homepage/base.html | 40 ++-- .../homepage/templates/homepage/homepage.html | 10 +- .../medical_notes/forms/type_basic_note.py | 6 - .../templates/medical_notes/create.html | 34 ++- .../medical_notes/create_notify.html | 34 ++- .../medical_notes/delete_confirm.html | 32 +-- .../templates/medical_notes/edit.html | 26 +-- .../medical_notes/feeding_notes_list.html | 111 ++++------ .../medical_notes/full_timeline_of_notes.html | 197 ++++++++---------- .../medical_notes/notification_list.html | 160 ++++++-------- .../templatetags/custom_file_name.py | 12 +- .../templatetags/custom_to_class_name.py | 12 +- src/ahc/apps/users/templates/users/login.html | 29 ++- .../users/templates/users/login_success.html | 23 +- .../apps/users/templates/users/logout.html | 12 +- .../users/templates/users/password_reset.html | 34 ++- .../users/password_reset_confirm.html | 31 +-- .../apps/users/templates/users/profile.html | 23 +- .../apps/users/templates/users/register.html | 20 +- src/ahc/settings.py | 7 - static/AHC_app/base.css | 0 static/css/custom_pico.css | 16 ++ static/css/expanding_sections.css | 4 - static/css/stable_grid.css | 3 +- static/css/timeline.css | 117 +++-------- static/js/expanding_sections.js | 20 +- static/js/hiding_note_fields_in_form.js | 72 +++---- .../hiding_note_fields_in_measurement_form.js | 54 +++-- static/js/pin_animal.js | 51 +++-- templates/partials/form_fields.html | 15 ++ uv.lock | 43 ---- 40 files changed, 658 insertions(+), 912 deletions(-) delete mode 100644 static/AHC_app/base.css create mode 100644 templates/partials/form_fields.html diff --git a/pyproject.toml b/pyproject.toml index 248bda0..2ebc62d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,9 +16,6 @@ dependencies = [ "pillow>=11.0", "cryptography>=43", "cffi>=1.17", - "django-crispy-forms", - "crispy-bootstrap4", - "django-bootstrap-modal-forms", "django-taggit", "django-timezone-field>=6.1", "tzdata", diff --git a/src/ahc/apps/animals/templates/animals/all_animals_stable.html b/src/ahc/apps/animals/templates/animals/all_animals_stable.html index 3e85e65..ef61539 100644 --- a/src/ahc/apps/animals/templates/animals/all_animals_stable.html +++ b/src/ahc/apps/animals/templates/animals/all_animals_stable.html @@ -1,32 +1,28 @@ {% extends 'homepage/base.html' %} {% load static %} - - +{% block extra_css %} + +{% endblock %} {% block content %} -
Placeholder paragraph
{% if user.is_authenticated %} -Age: {{ animal.birthdate|years_and_months_since:now }}
+Next birthday: {{ animal.birthdate|date:"d-m" }}-{{ now|date:"Y"}}
+ {% endif %} - {% if animal.birthdate %} -Age: {{ animal.birthdate|years_and_months_since:now }}
-Next birthday: - {{ animal.birthdate|date:"d-m" }}-{{ now|date:"Y"}}
-Owner: {{ animal.owner }}
-{{ animal.short_description }}
- {% endif %} -Owner: {{ animal.owner }}
+ {% if animal.short_description %} +{{ animal.short_description }}
+ {% endif %}Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor - incididunt ut labore et dolore magna aliqua.
+-{{ animal.first_contact_vet }}
+{{ animal.first_contact_medical_place }}
{{ animal.first_contact_vet }}
+ {{ animal.first_contact_medical_place }}