@@ -30,7 +30,9 @@
{% if cars.first.id_car_make.logo %}
-

+

+ {% else %}
+

{% endif %}
@@ -76,12 +78,12 @@
{% if car.colors.exists %}
- {{ car.colors.first.exterior.get_local_name }}
+ {{ car.colors.first.exterior.get_local_name }}
|
- {{ car.colors.first.interior.get_local_name }}
+ {{ car.colors.first.interior.get_local_name }}
|
{% else %}
diff --git a/templates/sales/estimates/estimate_list.html b/templates/sales/estimates/estimate_list.html
index ab22bb10..aa3d67af 100644
--- a/templates/sales/estimates/estimate_list.html
+++ b/templates/sales/estimates/estimate_list.html
@@ -22,31 +22,31 @@
{% for estimate in estimates %}
-
+
| {{ estimate.estimate_number }} |
{{ estimate.customer }} |
{% if estimate.status == 'draft' %}
- {% trans "Draft" %}
+ {% trans "Draft" %}
{% elif estimate.status == 'in_review' %}
- {% trans "In Review" %}
+ {% trans "In Review" %}
{% elif estimate.status == 'approved' %}
- {% trans "Approved" %}
+ {% trans "Approved" %}
{% elif estimate.status == 'declined' %}
- {% trans "Declined" %}
+ {% trans "Declined" %}
{% elif estimate.status == 'canceled' %}
- {% trans "Canceled" %}
+ {% trans "Canceled" %}
{% elif estimate.status == 'completed' %}
- {% trans "Completed" %}
+ {% trans "Completed" %}
{% elif estimate.status == 'void' %}
- {% trans "Void" %}
+ {% trans "Void" %}
{% endif %}
|
{{ estimate.get_status_action_date }} |
{{ estimate.created }} |
+ class="btn btn-sm btn-phoenix-success">
{% trans "view" %}
|
diff --git a/templates/sales/invoices/invoice_list.html b/templates/sales/invoices/invoice_list.html
index f2b05fbc..5e16fed0 100644
--- a/templates/sales/invoices/invoice_list.html
+++ b/templates/sales/invoices/invoice_list.html
@@ -56,7 +56,7 @@
{{ invoice.created }} |
+ class="btn btn-sm btn-phoenix-success">
{% trans "View" %}
|
diff --git a/templates/sales/payments/payment_details.html b/templates/sales/payments/payment_details.html
index 9812ca5d..9a585cbb 100644
--- a/templates/sales/payments/payment_details.html
+++ b/templates/sales/payments/payment_details.html
@@ -1,11 +1,11 @@
{% extends "base.html" %}
{% load i18n static %}
-{% block title %}{{ _("Tranactions") }}{% endblock title %}
+{% block title %}{{ _("Transactions") }}{% endblock title %}
{% block content %}
-
{% trans "Tranactions" %}
+
{% trans "Transactions" %}
{% empty %}
- | {% trans "No Tranactions Found" %} |
+ {% trans "No Transactions Found" %} |
{% endfor %}
diff --git a/test_sms.py b/test_sms.py
new file mode 100644
index 00000000..e6c4d9ee
--- /dev/null
+++ b/test_sms.py
@@ -0,0 +1,53 @@
+# from django.conf import settings
+# settings.configure()
+#
+# from sms import Message
+#
+# message = Message(
+# 'Here is the message',
+# '+12065550100',
+# ['+441134960000']
+# )
+# print(message)
+
+from twilio.rest import Client
+
+account_sid = 'AC988fcc2cce8ae4f36ffc58bf897bcb1d'
+auth_token = '8e5a85e1fe8d48d73b8247bdee3ec65a'
+client = Client(account_sid, auth_token)
+
+message = client.messages.create(
+ from_='+12313103856', #twilio phone number
+ body='أول رسالة من هيكل .. السلام عليكم',
+ to='+966535521547',
+)
+
+print(message.sid)
+
+# from twilio.rest import Client
+#
+# account_sid = 'AC988fcc2cce8ae4f36ffc58bf897bcb1d'
+# auth_token = '8e5a85e1fe8d48d73b8247bdee3ec65a'
+# client = Client(account_sid, auth_token)
+#
+# message = client.messages.create(
+# from_='+12313103856',
+# to='+966535521547'
+# )
+#
+# print(message.sid)
+
+
+# from twilio.rest import Client
+#
+# account_sid = settings.TWILIO_ACCOUNT_SID
+# auth_token = settings.TWILIO_AUTH_TOKEN
+# client = Client(account_sid, auth_token)
+#
+# verification_check = client.verify \
+# .v2 \
+# .services('VA4a22a04749e04800cc89f687df8732d3') \
+# .verification_checks \
+# .create(to='+966535521547', code='[Code]')
+#
+# print(verification_check.status)
\ No newline at end of file