7 changed files with 118 additions and 107 deletions
-
38abonapp/templates/abonapp/abonamount.html
-
14abonapp/templates/abonapp/ext.htm
-
19abonapp/templates/abonapp/invoiceForPayment.html
-
31abonapp/templates/abonapp/modal_abonamount.html
-
18abonapp/templates/abonapp/payHistory.html
-
2abonapp/urls_abon.py
-
5abonapp/views.py
@ -1,38 +0,0 @@ |
|||||
{% extends request.is_ajax|yesno:'nullcont.htm,abonapp/ext.htm' %} |
|
||||
{% load i18n %} |
|
||||
{% block content %} |
|
||||
|
|
||||
|
|
||||
<legend>{% trans 'Additional sum' %}</legend> |
|
||||
|
|
||||
|
|
||||
<div class="row"> |
|
||||
<div class="col-sm-4"> |
|
||||
<form role="form" action="{% url 'abonapp:abon_amount' abon_group.id abon.id %}" |
|
||||
method="post"> {% csrf_token %} |
|
||||
|
|
||||
<div class="form-group-sm"> |
|
||||
<label for="amount">{% trans 'Amount of money' %}</label> |
|
||||
|
|
||||
<div class="input-group"> |
|
||||
<span class="input-group-addon"><span class="glyphicon glyphicon-ruble"></span></span> |
|
||||
<input id="amount" type="text" name="amount" placeholder="0.0" class="form-control" required |
|
||||
pattern="\d+"> |
|
||||
</div> |
|
||||
</div> |
|
||||
<input type="hidden" name="abonid" value="{{ abon.id }}"><br> |
|
||||
|
|
||||
<div class="btn-group"> |
|
||||
<button type="submit" class="btn btn-sm btn-primary"> |
|
||||
<span class="glyphicon glyphicon-save"></span> {% trans 'Refill' %} |
|
||||
</button> |
|
||||
<button type="reset" class="btn btn-sm btn-default"> |
|
||||
<span class="glyphicon glyphicon-remove-circle"></span> {% trans 'Reset' %} |
|
||||
</button> |
|
||||
</div> |
|
||||
|
|
||||
</form> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
{% endblock %} |
|
||||
@ -0,0 +1,31 @@ |
|||||
|
{% load i18n %} |
||||
|
|
||||
|
<form role="form" action="{% url 'abonapp:abon_amount' abon_group.id abon.id %}" method="post"> {% csrf_token %} |
||||
|
<div class="modal-header primary"> |
||||
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
||||
|
<h4 class="modal-title"><span class="glyphicon glyphicon-shopping-cart"></span>{% trans 'Additional sum' %}</h4> |
||||
|
</div> |
||||
|
|
||||
|
<div class="modal-body"> |
||||
|
<div class="form-group-sm"> |
||||
|
<label for="amount">{% trans 'Amount of money' %}</label> |
||||
|
|
||||
|
<div class="input-group"> |
||||
|
<span class="input-group-addon"><span class="glyphicon glyphicon-ruble"></span></span> |
||||
|
<input id="amount" type="text" name="amount" placeholder="0.0" class="form-control" required |
||||
|
pattern="\d+"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<input type="hidden" name="abonid" value="{{ abon.id }}"><br> |
||||
|
|
||||
|
<div class="btn-group"> |
||||
|
<button type="submit" class="btn btn-sm btn-primary"> |
||||
|
<span class="glyphicon glyphicon-save"></span> {% trans 'Refill' %} |
||||
|
</button> |
||||
|
<button type="reset" class="btn btn-sm btn-default"> |
||||
|
<span class="glyphicon glyphicon-remove-circle"></span> {% trans 'Reset' %} |
||||
|
</button> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</form> |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue