introduce service plans

This commit is contained in:
Tobias Brunner 2025-01-28 10:41:39 +01:00
parent f69f7fb755
commit 70f4a02db9
No known key found for this signature in database
11 changed files with 362 additions and 20 deletions

View file

@ -0,0 +1,23 @@
{% 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 %}