refactor all the things

This commit is contained in:
Tobias Brunner 2025-01-28 13:55:43 +01:00
parent 8ed39690f1
commit bb5cb708bd
No known key found for this signature in database
36 changed files with 1563 additions and 931 deletions

View file

@ -1,23 +0,0 @@
{% extends "admin/change_form.html" %}
{% load static %}
{% block extrahead %}
{{ block.super }}
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/hide_inline_header.css' %}" />
{% endblock %}
{% block admin_change_form_document_ready %}
{{ block.super }}
<script>
django.jQuery(document).ready(function($) {
// Initialize collapse state for plan inlines
$('.plan-inline').addClass('collapsed');
// Add custom styling to price inline tables
$('.price-inline').find('table').addClass('price-table');
// Add helper text for default plan selection
$('.field-is_default').append('<p class="help">Only one plan can be default per service.</p>');
});
</script>
{% endblock %}