forked from breatheco-de/apiv2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request breatheco-de#1392 from jefer94/feat/add-warnings-t…
…o-bills Feat/add-warnings-to-bills
- Loading branch information
Showing
8 changed files
with
110 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
breathecode/provisioning/migrations/0017_alter_provisioninguserconsumption_status.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 5.0.6 on 2024-06-14 00:14 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('provisioning', '0016_alter_provisioningconsumptionevent_repository_url_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='provisioninguserconsumption', | ||
name='status', | ||
field=models.CharField(choices=[('PENDING', 'Pending'), ('PERSISTED', 'Persisted'), ('IGNORED', 'Ignored'), | ||
('WARNING', 'Warning'), ('ERROR', 'Error')], | ||
default='PENDING', | ||
max_length=20), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,8 @@ | |
{% load math %} | ||
|
||
{% block head %} | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | ||
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" | ||
crossorigin="anonymous"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | ||
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous"> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
|
@@ -121,7 +120,6 @@ | |
.alert td { | ||
width: 100%; | ||
} | ||
|
||
</style> | ||
</head> | ||
|
||
|
@@ -160,7 +158,7 @@ <h5> | |
Created At: {{ bill.created_at }}<br> | ||
<div class="text-end"> | ||
{% if bill.stripe_url %} | ||
<a class="btn btn-primary my-3 w-50" type="button" href="{{bill.stripe_url}}">Pay</a> | ||
<a class="btn btn-primary my-3 w-50" type="button" href="{{bill.stripe_url}}">Pay</a> | ||
{% endif %} | ||
</div> | ||
</div> | ||
|
@@ -189,20 +187,20 @@ <h5> | |
<td colspan="2"> | ||
{{ consumption.kind.product_name }} ({{ consumption.kind.sku }}) | ||
{% if consumption.status_text %} | ||
<small> - </small> | ||
<a onclick="alert('{{consumption.status_text}}')" type="button" class="btn-link"> | ||
see error | ||
</a> | ||
<small> - </small> | ||
<a onclick="alert('{{consumption.status_text}}')" type="button" class="btn-link"> | ||
show errors | ||
</a> | ||
{% endif %} | ||
</td> | ||
|
||
|
||
<td class="price"> | ||
<span style="color: #608062;"> | ||
{% if consumption.amount.is_integer %} | ||
{{ consumption.amount|floatformat:0 }} | ||
{{ consumption.amount|floatformat:0 }} | ||
{% else %} | ||
{{ consumption.amount|floatformat:2 }} | ||
{{ consumption.amount|floatformat:2 }} | ||
{% endif %} | ||
</span> | ||
</td> | ||
|
@@ -222,14 +220,15 @@ <h5> | |
|
||
</table> | ||
|
||
{% if page < pages %} | ||
<button class="btn btn-primary mx-auto" > | ||
{% if page < pages %} <button class="btn btn-primary mx-auto"> | ||
<a class="page-link" href="{{ url }}&page={{ page|add:1 }}">Load more</a> | ||
</button> | ||
{% endif %} | ||
</button> | ||
{% endif %} | ||
</div> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" | ||
crossorigin="anonymous"></script> | ||
|
||
</body> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.