-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad29ab1
commit 4249284
Showing
19 changed files
with
341 additions
and
77 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
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,46 @@ | ||
{% extends "base.html" %} | ||
{% load i18n mezzanine_tags %} | ||
|
||
{% block meta_title %}{% trans 'Bank payment' %}{% endblock %} | ||
{% block title %}{% trans 'Bank payment' %}{% endblock %} | ||
{% block extra_head %} | ||
<!--<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">--> | ||
{% endblock %} | ||
|
||
{% block main %} | ||
<div class="row"> | ||
<div class="col s12 m12 l8 offset-l2"> | ||
<div class="card-panel"> | ||
{% nevercache %} | ||
{% if messages %} | ||
<div class="messages"> | ||
{% for message in messages %} | ||
<div class="alert alert-dismissable alert-{{ message.tags }}" data-alert="alert"> | ||
<button type="button" class="close" data-dismiss="alert" | ||
aria-hidden="true">×</button> | ||
{{ message }} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
{% endif %} | ||
{% endnevercache %} | ||
|
||
<p> | ||
{# todo: translation #} | ||
پرداخت شما با خطای زیر مواجه شده است: | ||
</p> | ||
<p class="muted">{{ team.name }}</p> | ||
<p> | ||
برای دیدن پرداختها به | ||
<a href="{% url 'payments_list' %}">این صفحه</a> | ||
و برای پرداخت دوباره به | ||
<a href="{% url 'request_payment' %}">این صفحه</a> | ||
بروید. | ||
</p> | ||
|
||
<div>{{ error }}</div> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{% extends "base.html" %} | ||
{% load i18n mezzanine_tags %} | ||
|
||
{% block meta_title %}{% trans 'Bank payment' %}{% endblock %} | ||
{% block title %}{% trans 'Bank payment' %}{% endblock %} | ||
{% block extra_head %} | ||
<!--<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">--> | ||
{% endblock %} | ||
|
||
{% block main %} | ||
<div class="row"> | ||
<div class="col s12 m12 l8 offset-l2"> | ||
<div class="card-panel"> | ||
{% nevercache %} | ||
{% if messages %} | ||
<div class="messages"> | ||
{% for message in messages %} | ||
<div class="alert alert-dismissable alert-{{ message.tags }}" data-alert="alert"> | ||
<button type="button" class="close" data-dismiss="alert" | ||
aria-hidden="true">×</button> | ||
{{ message }} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
{% endif %} | ||
{% endnevercache %} | ||
|
||
<p class="muted">{{ team.name }}</p> | ||
|
||
<div>پرداخت شما با موفقیت انجام شد. بعد از ۵ ثانیه به صفحهی تیم خود هدایت خواهید شد.</div> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{% extends "base.html" %} | ||
{% load i18n mezzanine_tags %} | ||
|
||
{% block meta_title %}{% trans 'Bank payment' %}{% endblock %} | ||
{% block title %}{% trans 'Bank payment' %}{% endblock %} | ||
{% block extra_head %} | ||
<!--<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">--> | ||
{% endblock %} | ||
|
||
{% block main %} | ||
<div class="row"> | ||
<div class="col s12 m12 l8 offset-l2"> | ||
<div class="card-panel"> | ||
{% nevercache %} | ||
{% if messages %} | ||
<div class="messages"> | ||
{% for message in messages %} | ||
<div class="alert alert-dismissable alert-{{ message.tags }}" data-alert="alert"> | ||
<button type="button" class="close" data-dismiss="alert" | ||
aria-hidden="true">×</button> | ||
{{ message }} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
{% endif %} | ||
{% endnevercache %} | ||
|
||
{% for transaction in payments %} | ||
<div> | ||
{{ transaction.created }}, {{ transaction.amount }}, {{ transaction.status }} | ||
</div> | ||
{% endfor %} | ||
|
||
</div> | ||
</div> | ||
</div> | ||
{% 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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('base', '0040_auto_20160229_1136'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='team', | ||
name='paid', | ||
), | ||
migrations.AddField( | ||
model_name='team', | ||
name='payment_value', | ||
field=models.PositiveIntegerField(default=0, verbose_name='Payment value'), | ||
), | ||
migrations.AddField( | ||
model_name='team', | ||
name='should_pay', | ||
field=models.BooleanField(default=False, verbose_name='Should pay?'), | ||
), | ||
] |
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,19 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('base', '0041_auto_20160229_2341'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='team', | ||
name='payment_value', | ||
field=models.PositiveIntegerField(default=0, verbose_name='Payment value (rials)'), | ||
), | ||
] |
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('base', '0041_auto_20160229_2341'), | ||
('billing', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='transaction', | ||
name='user', | ||
), | ||
migrations.AddField( | ||
model_name='transaction', | ||
name='team', | ||
field=models.ForeignKey(related_name='transactions', to='base.Team', null=True), | ||
), | ||
] |
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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('billing', '0002_auto_20160229_2341'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='transaction', | ||
name='our_id', | ||
), | ||
] |
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,19 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('billing', '0003_remove_transaction_our_id'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='transaction', | ||
name='error', | ||
field=models.CharField(max_length=100, null=True, blank=True), | ||
), | ||
] |
Oops, something went wrong.