introduce service plans
This commit is contained in:
parent
f69f7fb755
commit
70f4a02db9
11 changed files with 362 additions and 20 deletions
|
@ -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 %}
|
Loading…
Add table
Add a link
Reference in a new issue