support: Consolidate margin bottom CSS rule for forms.

This commit is contained in:
Lauryn Menard 2024-08-19 11:53:14 +02:00 committed by Tim Abbott
parent 485428db86
commit c152061ef2
5 changed files with 15 additions and 19 deletions

View File

@ -1,4 +1,4 @@
<form method="POST" class="remote-form"> <form method="POST" class="support-form">
<b>Billing collection method</b><br /> <b>Billing collection method</b><br />
{{ csrf_input }} {{ csrf_input }}
<input type="hidden" name="{{ remote_type }}" value="{{ remote_id }}" /> <input type="hidden" name="{{ remote_type }}" value="{{ remote_id }}" />
@ -10,7 +10,7 @@
</form> </form>
{% if current_plan.status == current_plan.ACTIVE %} {% if current_plan.status == current_plan.ACTIVE %}
<form method="POST" class="remote-form"> <form method="POST" class="support-form">
<b>Plan end date</b><br /> <b>Plan end date</b><br />
{{ csrf_input }} {{ csrf_input }}
<input type="hidden" name="{{ remote_type }}" value="{{ remote_id }}" /> <input type="hidden" name="{{ remote_type }}" value="{{ remote_id }}" />
@ -20,7 +20,7 @@
</form> </form>
{% endif %} {% endif %}
<form method="POST" class="remote-form"> <form method="POST" class="support-form">
<b>Modify current plan</b><br /> <b>Modify current plan</b><br />
{{ csrf_input }} {{ csrf_input }}
<input type="hidden" name="{{ remote_type }}" value="{{ remote_id }}" /> <input type="hidden" name="{{ remote_type }}" value="{{ remote_id }}" />

View File

@ -1,5 +1,5 @@
<p class="support-section-header">⏱️ Schedule plan:</p> <p class="support-section-header">⏱️ Schedule plan:</p>
<form method="POST" class="remote-form"> <form method="POST" class="support-form">
<b>Configure fixed price plan:</b><br /> <b>Configure fixed price plan:</b><br />
{% if not plan_data.is_current_plan_billable %} {% if not plan_data.is_current_plan_billable %}
<i>Enter Invoice ID only if the customer chose to pay by invoice.</i><br /> <i>Enter Invoice ID only if the customer chose to pay by invoice.</i><br />
@ -13,7 +13,7 @@
<button type="submit" class="support-submit-button">Schedule</button> <button type="submit" class="support-submit-button">Schedule</button>
</form> </form>
{% if not plan_data.current_plan %} {% if not plan_data.current_plan %}
<form method="POST" class="remote-form"> <form method="POST" class="support-form">
<b>Configure temporary courtesy plan:</b><br /> <b>Configure temporary courtesy plan:</b><br />
<i>Once created, the end date for the temporary courtesy plan can be extended.</i><br /> <i>Once created, the end date for the temporary courtesy plan can be extended.</i><br />
{{ csrf_input }} {{ csrf_input }}

View File

@ -1,4 +1,4 @@
<form method="POST" class="remote-form"> <form method="POST" class="support-form">
<b>Required plan tier for discounts and fixed prices</b>:<br /> <b>Required plan tier for discounts and fixed prices</b>:<br />
<i>Updates will not change any pre-existing plans or scheduled upgrades.</i><br /> <i>Updates will not change any pre-existing plans or scheduled upgrades.</i><br />
{{ csrf_input }} {{ csrf_input }}
@ -15,7 +15,7 @@
<button type="submit" class="support-submit-button">Update</button> <button type="submit" class="support-submit-button">Update</button>
</form> </form>
<form method="POST" class="remote-form discounted-price-form"> <form method="POST" class="discounted-price-form support-form">
<b>Discounted price <i class="fa fa-question-circle-o" data-tippy-content=" <b>Discounted price <i class="fa fa-question-circle-o" data-tippy-content="
Needs required plan tier to be set.<br /> Needs required plan tier to be set.<br />
Default price for tier will be used if discounted price for the schedule is not specified or is 0.<br /> Default price for tier will be used if discounted price for the schedule is not specified or is 0.<br />
@ -51,7 +51,7 @@
</form> </form>
{% if not has_fixed_price and (sponsorship_data.monthly_discounted_price or sponsorship_data.annual_discounted_price or sponsorship_data.minimum_licenses) %} {% if not has_fixed_price and (sponsorship_data.monthly_discounted_price or sponsorship_data.annual_discounted_price or sponsorship_data.minimum_licenses) %}
<form method="POST" class="remote-form"> <form method="POST" class="support-form">
<b>Minimum licenses</b>:<br /> <b>Minimum licenses</b>:<br />
{{ csrf_input }} {{ csrf_input }}
<input type="hidden" name="{{ remote_type }}" value="{{ remote_id }}" /> <input type="hidden" name="{{ remote_type }}" value="{{ remote_id }}" />

View File

@ -1,4 +1,4 @@
<form method="POST" class="remote-form"> <form method="POST" class="support-form">
<b>Sponsorship pending</b>:<br /> <b>Sponsorship pending</b>:<br />
{{ csrf_input }} {{ csrf_input }}
<input type="hidden" name="{{ remote_type }}" value="{{ remote_id }}" /> <input type="hidden" name="{{ remote_type }}" value="{{ remote_id }}" />
@ -10,7 +10,7 @@
</form> </form>
{% if sponsorship_data.sponsorship_pending %} {% if sponsorship_data.sponsorship_pending %}
<form method="POST" class="remote-form"> <form method="POST" class="support-form">
{{ csrf_input }} {{ csrf_input }}
<input type="hidden" name="{{ remote_type }}" value="{{ remote_id }}" /> <input type="hidden" name="{{ remote_type }}" value="{{ remote_id }}" />
<input type="hidden" name="approve_sponsorship" value="true" /> <input type="hidden" name="approve_sponsorship" value="true" />

View File

@ -334,14 +334,6 @@ tr.admin td:first-child {
text-align: center; text-align: center;
} }
.reactivate-remote-server-form,
.deactivate-remote-server-form,
.realm-support-information,
.remote-server-information,
.remote-realm-information {
margin-bottom: 10px;
}
.support-section-header { .support-section-header {
font-size: 1.2em; font-size: 1.2em;
font-weight: bold; font-weight: bold;
@ -356,9 +348,13 @@ tr.admin td:first-child {
top: -2px; top: -2px;
} }
.reactivate-remote-server-form,
.deactivate-remote-server-form,
.realm-support-information,
.remote-server-information,
.remote-realm-information,
.remote-sponsorship-details, .remote-sponsorship-details,
.support-form, .support-form,
.remote-form,
.next-plan-information, .next-plan-information,
.current-plan-information { .current-plan-information {
margin-bottom: 10px; margin-bottom: 10px;