Skip to content

Commit efc322d

Browse files
KarenKonounijel
authored andcommitted
fix(ui): update billing template to bootstrap 5
1 parent 5eea268 commit efc322d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

wlhosted/integrations/templates/hosted/create.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% load crispy_forms_tags humanize i18n translations %}
44

55
{% block breadcrumbs %}
6-
<li>
6+
<li class="breadcrumb-item">
77
<a href="{% url 'create-billing' %}">{% translate "Create billing plan" %}</a>
88
</li>
99
{% endblock breadcrumbs %}
@@ -12,19 +12,19 @@
1212
<div class="container-fluid">
1313

1414
{% if not choose_billing and not billing %}
15-
<div class="panel panel-default">
16-
<div class="panel-heading">
17-
<h3 class="panel-title">{% translate "New billing plan" %}</h3>
15+
<div class="card">
16+
<div class="card-header">
17+
<h3 class="card-title">{% translate "New billing plan" %}</h3>
1818
</div>
19-
<div class="panel-body">{% translate "Please choose a hosting plan that fits the size of your project." %}</div>
19+
<div class="card-body">{% translate "Please choose a hosting plan that fits the size of your project." %}</div>
2020
</div>
2121
{% else %}
22-
<div class="panel panel-default">
23-
<div class="panel-heading">
24-
<h3 class="panel-title">{% translate "Current billing status" %}</h3>
22+
<div class="card">
23+
<div class="card-header">
24+
<h3 class="card-title">{% translate "Current billing status" %}</h3>
2525
</div>
2626
{% if choose_billing %}
27-
<div class="panel-body">
27+
<div class="card-body">
2828
<form class="autosubmit">
2929
{{ choose_billing|crispy }}
3030
</form>
@@ -39,17 +39,17 @@ <h3 class="panel-title">{% translate "Current billing status" %}</h3>
3939
<div class="row">
4040
{% for plan in plans %}
4141
<div class="col-md-3">
42-
<div class="panel panel-default">
43-
<div class="panel-heading">
42+
<div class="card">
43+
<div class="card-header">
4444
{% if billing and not plan.would_fit %}
45-
<span class="badge pull-right flip"
45+
<span class="badge text-bg-secondary float-end"
4646
title="{% translate "Too small for your project." %}">{% translate "Too small" %}</span>
4747
{% elif plan == selected_plan %}
48-
<span class="badge pull-right flip">{% translate "Selected plan" %}</span>
48+
<span class="badge text-bg-secondary float-end">{% translate "Selected plan" %}</span>
4949
{% elif billing.plan == plan %}
50-
<span class="badge pull-right flip">{% translate "Current plan" %}</span>
50+
<span class="badge text-bg-secondary float-end">{% translate "Current plan" %}</span>
5151
{% endif %}
52-
<h3 class="panel-title">{{ plan.name }}</h3>
52+
<h3 class="card-title">{{ plan.name }}</h3>
5353
</div>
5454
<table class="table table-striped">
5555
<tr>
@@ -93,7 +93,7 @@ <h3 class="panel-title">{{ plan.name }}</h3>
9393
</td>
9494
</tr>
9595
</table>
96-
<div class="panel-footer billing-buttons">
96+
<div class="card-footer billing-buttons">
9797
<form action="{% url 'create-billing' %}" method="post" class="form-inline">
9898
{% csrf_token %}
9999
<input type="hidden" name="plan" value="{{ plan.pk }}">

0 commit comments

Comments
 (0)