diff --git a/templates/include/inline_transaction_data.html b/templates/include/inline_transaction_data.html new file mode 100644 index 0000000..62da770 --- /dev/null +++ b/templates/include/inline_transaction_data.html @@ -0,0 +1,31 @@ +{% load jalali_tags %} +
+
+
+
+

+ + amount: + + {{ transaction.amount }} +

+
+
+

+ + {% if transaction.payee == request.user %} + from: {{ transaction.payer }} + {% else %} + to: {{ transaction.payee }} + {% endif %} + +

+
+
+

+ state: {{ transaction.get_state_display }} +

+
+
+
+
diff --git a/templates/include/top_bar.html b/templates/include/top_bar.html index 5e2bc6e..46a6554 100644 --- a/templates/include/top_bar.html +++ b/templates/include/top_bar.html @@ -14,6 +14,10 @@
account
+
+
+
transactions
+
{% endif %}
{% if not user.is_authenticated %} diff --git a/templates/include/transaction_abstract_data.html b/templates/include/transaction_abstract_data.html new file mode 100644 index 0000000..9be418f --- /dev/null +++ b/templates/include/transaction_abstract_data.html @@ -0,0 +1,26 @@ +{% load jalali_tags %} +
+

اطلاعات آقا

+
+
+ {#

اطلاعات خانم

#} +
+

نام و نام خانوادگی: + {{ boy.name }} +

+
+
+

تلفن: {{ boy.mobile_number }}

+
+
+

سن: {{ boy.age }}

+
+
+

شماره پرونده: {{ boy.code }}

+
+
+
+
diff --git a/templates/wallet/transaction_list.html b/templates/wallet/transaction_list.html index 590c90d..9c0deaf 100644 --- a/templates/wallet/transaction_list.html +++ b/templates/wallet/transaction_list.html @@ -2,18 +2,7 @@ {% block content %} {% for transaction in object_list %} - {% if transaction.payee == request.user %} - - {{ transaction.amount }} - - از: {{ transaction.payer }} در وضعیت {{ transaction.get_state_display }} - {% else %} - - {{ transaction.amount }} - - به: {{ transaction.payee }} در وضعیت {{ transaction.get_state_display }} - {% endif %} -
+ {% include 'include/inline_transaction_data.html' %} {% endfor %} {% endblock %} \ No newline at end of file