payment actions
This commit is contained in:
parent
d1eaaa25bd
commit
1d0fe5803a
2 changed files with 3 additions and 2 deletions
|
|
@ -12,11 +12,11 @@
|
|||
{{ object.state }}
|
||||
{{ StateChoices.CREATED }}
|
||||
{% csrf_token %}
|
||||
{% if object.state == StateChoices.CREATED %}
|
||||
{% if object.state == StateChoices.CREATED and object.payer == request.user %}
|
||||
<div class="col-6 mb-3">
|
||||
<input class="w-100 btn btn-primary btn" type="submit" value="پرداخت" name="pay"/>
|
||||
</div>
|
||||
{% elif object.state == StateChoices.DELAYED %}
|
||||
{% elif object.state == StateChoices.DELAYED and object.payer == request.user%}
|
||||
<div class="col-6 mb-3">
|
||||
<input class="w-100 btn btn-primary btn" type="submit" value="تایید پرداخت" name="receipt"/>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ INSTALLED_APPS = [
|
|||
'jalali_date',
|
||||
|
||||
# local apps
|
||||
'apps.core',
|
||||
'apps.users',
|
||||
'apps.wallet',
|
||||
'apps.gooyal_oauth2',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue