This commit is contained in:
Marwan Alwali 2025-05-03 18:24:08 +03:00
parent 6e1e0ab1f0
commit 44f540bae5
7 changed files with 295 additions and 244 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -1,235 +1,270 @@
aiohappyeyeballs aiohappyeyeballs==2.6.1
aiohttp aiohttp==3.11.13
aiohttp-retry aiohttp-retry==2.9.1
aiosignal aiosignal==1.3.2
alabaster alabaster==1.0.0
albucore albucore==0.0.23
annotated-types albumentations==2.0.5
anyio annotated-types==0.7.0
arabic-reshaper anyio==4.8.0
asgiref arabic-reshaper==3.0.0
astor asgiref==3.8.1
astroid astor==0.8.1
attrs astroid==3.3.9
autopep8 attrs==25.3.0
Babel autopep8==2.3.2
beautifulsoup4 Babel==2.15.0
bleach beautifulsoup4==4.13.3
blinker bleach==6.2.0
Brotli blinker==1.9.0
cattrs Brotli==1.1.0
certifi cattrs==24.1.2
cffi certifi==2025.1.31
chardet cffi==1.17.1
charset-normalizer chardet==5.2.0
click charset-normalizer==3.4.1
colorama click==8.1.8
commonmark colorama==0.4.6
contourpy commonmark==0.9.1
crispy-bootstrap5 contourpy==1.3.1
cryptography crispy-bootstrap5==2024.10
cycler cryptography==44.0.2
Cython cssselect2==0.8.0
decorator ctranslate2==4.5.0
desert cycler==0.12.1
diff-match-patch Cython==3.1.0a1
dill decorator==5.2.1
distro defusedxml==0.7.1
dj-rest-auth desert==2020.11.18
dj-shop-cart diff-match-patch==20241021
Django dill==0.3.9
django-allauth distro==1.9.0
django-appointment dj-rest-auth==7.0.1
django-autoslug dj-shop-cart==8.0.0a2
django-bootstrap5 Django==5.1.7
django-classy-tags django-allauth==65.4.1
django-cors-headers django-appointment==3.8.0
django-countries django-autoslug==1.9.9
django-crispy-forms django-background-tasks==1.2.8
django-debug-toolbar django-bootstrap5==25.1
django-extensions django-classy-tags==4.1.0
django-filter django-cors-headers==4.7.0
django-formtools django-countries==7.6.1
django-import-export django-crispy-forms==2.3
django-ledger django-debug-toolbar==5.0.1
django-model-utils django-extensions==3.2.3
django-money django-filter==25.1
django-next-url-mixin django-formtools==2.5.1
django-nine django-import-export==4.3.7
django-nonefield django-ledger==0.7.5.2
django-ordered-model django-model-utils==5.0.0
django-pdf-actions django-money==3.5.3
django-phonenumber-field django-next-url-mixin==0.4.0
django-picklefield django-nine==0.2.7
django-plans django-nonefield==0.4
django-prometheus django-ordered-model==3.7.4
django-q2 django-pdf-actions==0.1.44
django-schema-graph django-phonenumber-field==8.0.0
django-sekizai django-picklefield==3.3
django-sequences django-plans==2.0.0
django-silk django-prometheus==2.3.1
django-sms django-q2==1.7.6
django-sslserver django-schema-graph==3.1.0
django-tables2 django-sekizai==4.1.0
django-treebeard django-sequences==3.0
django-view-breadcrumbs django-silk==5.3.2
djangocms-admin-style django-simple-history==3.8.0
djangorestframework django-sms==0.7.0
djangorestframework_simplejwt django-sslserver==0.22
djangoviz django-tables2==2.7.5
docopt django-treebeard==4.7.1
docutils django-view-breadcrumbs==2.5.1
easy-thumbnails djangocms-admin-style==3.3.1
emoji djangorestframework==3.15.2
Faker djangorestframework_simplejwt==5.5.0
filelock djangoviz==0.1.1
fire docopt==0.6.2
fonttools docutils==0.21.2
fpdf2 easy-thumbnails==2.10
frozenlist emoji==2.14.1
fsspec et_xmlfile==2.0.0
gprof2dot Faker==37.0.0
graphqlclient filelock==3.17.0
greenlet fire==0.7.0
h11 Flask==3.1.0
h2 fonttools==4.56.0
hpack fpdf2==2.8.2
hstspreload frozenlist==1.5.0
httpcore fsspec==2025.3.0
httpx gprof2dot==2024.6.6
hyperframe graphqlclient==0.2.4
icalendar greenlet==3.1.1
idna h11==0.14.0
imageio h2==4.2.0
imagesize hpack==4.1.0
imgaug hstspreload==2025.1.1
iso4217 httpcore==1.0.7
isodate httpx==0.28.1
isort hyperframe==6.1.0
itsdangerous icalendar==6.1.1
Jinja2 idna==3.10
jiter imageio==2.37.0
joblib imagesize==1.4.1
kiwisolver imgaug==0.4.0
lazy_loader iso4217==1.12.20240625
ledger isodate==0.7.2
libretranslatepy isort==6.0.1
Markdown itsdangerous==2.2.0
markdown-it-py Jinja2==3.1.6
MarkupSafe jiter==0.9.0
marshmallow joblib==1.4.2
matplotlib kiwisolver==1.4.8
mccabe lazy_loader==0.4
mdurl ledger==1.0.1
MouseInfo libretranslatepy==2.1.4
mpmath lmdb==1.6.2
multidict luhnchecker==0.0.12
mypy-extensions lxml==5.3.1
networkx Markdown==3.7
newrelic markdown-it-py==3.0.0
nltk MarkupSafe==3.0.2
num2words marshmallow==3.26.1
numpy matplotlib==3.10.1
oauthlib mccabe==0.7.0
ofxtools mdurl==0.1.2
openai MouseInfo==0.1.3
opencv-contrib-python mpmath==1.3.0
opencv-python multidict==6.1.0
opencv-python-headless mypy-extensions==1.0.0
openpyxl networkx==3.4.2
opt_einsum newrelic==10.7.0
outcome nltk==3.9.1
packaging num2words==0.5.14
pandas numpy==2.2.3
pango oauthlib==3.2.2
pdfkit ofxtools==0.9.5
platformdirs openai==1.66.3
prometheus_client opencv-contrib-python==4.11.0.86
propcache opencv-python==4.11.0.86
protobuf opencv-python-headless==4.11.0.86
psycopg-binary openpyxl==3.1.5
py-moneyed opt_einsum==3.4.0
PyAutoGUI outcome==1.3.0.post0
pyclipper packaging==24.2
pycodestyle pandas==2.2.3
pycparser pango==0.0.1
pydotplus pdfkit==1.0.0
pydyf phonenumbers==9.0.0
PyGetWindow pillow==11.1.0
Pygments platformdirs==4.3.6
PyJWT prometheus_client==0.21.1
pylint propcache==0.3.0
PyMsgBox protobuf==6.30.1
pyparsing psycopg==3.2.6
pypdf psycopg-binary==3.2.6
PyPDF2 psycopg-c==3.2.6
pyperclip psycopg2-binary==2.9.10
pyphen py-moneyed==3.0
pypng PyAutoGUI==0.9.54
PyRect pyclipper==1.3.0.post6
PyScreeze pycodestyle==2.12.1
pyserial pycparser==2.22
PySocks pydantic==2.10.6
python-bidi pydantic_core==2.31.1
python-dateutil pydotplus==2.0.2
python-docx pydyf==0.11.0
python-openid PyGetWindow==0.0.9
python-stdnum Pygments==2.19.1
python3-saml PyJWT==2.10.1
pytweening pylint==3.3.5
pytz PyMsgBox==1.0.9
pyvin PyMySQL==1.1.1
pyzbar pyobjc-core==11.0
qrcode pyobjc-framework-Cocoa==11.0
RapidFuzz pyobjc-framework-Quartz==11.0
regex pyparsing==3.2.1
reportlab pypdf==5.3.1
requests PyPDF2==3.0.1
requests-oauthlib pyperclip==1.9.0
rfc3986 pyphen==0.17.2
rich pypng==0.20220715.0
rubicon-objc PyRect==0.2.0
sacremoses PyScreeze==1.0.1
selenium pyserial==3.5
sentencepiece PySocks==1.7.1
shapely python-bidi==0.6.6
simsimd python-dateutil==2.9.0.post0
six python-docx==1.1.2
sniffio python-dotenv==1.0.1
snowballstemmer python-openid==2.2.5
sortedcontainers python-stdnum==1.20
soupsieve python3-saml==1.16.0
sqlparse pytweening==1.2.0
stanza pytz==2025.1
stringzilla pyvin==0.0.2
suds pywa==2.7.0
tablib pywhat==5.1.0
termcolor pywhatkit==5.4
threadpoolctl PyYAML==6.0.2
tifffile pyzbar==0.1.9
tomli qrcode==8.0
tomlkit RapidFuzz==3.12.2
tqdm regex==2024.11.6
trio reportlab==4.3.1
trio-websocket requests==2.32.3
typing-inspect requests-oauthlib==2.0.0
typing_extensions rfc3986==2.0.0
tzdata rich==13.9.4
Unidecode rubicon-objc==0.5.0
upgrade-requirements sacremoses==0.1.1
urllib3 scikit-image==0.25.2
vishap scikit-learn==1.6.1
vpic-api scipy==1.15.2
weasyprint selenium==4.29.0
webencodings sentencepiece==0.2.0
websocket-client shapely==2.0.7
Werkzeug simsimd==6.2.1
wikipedia six==1.17.0
wsproto sniffio==1.3.1
yarl snowballstemmer==2.2.0
zopfli sortedcontainers==2.4.0
python-dotenv soupsieve==2.6
psycopg2-binary SQLAlchemy==2.0.39
phonenumbers sqlparse==0.5.3
swapper stanza==1.10.1
pillow stringzilla==3.12.3
suds==1.2.0
swapper==1.4.0
sympy==1.13.1
tablib==3.8.0
termcolor==2.5.0
threadpoolctl==3.6.0
tifffile==2025.3.13
tinycss2==1.4.0
tinyhtml5==2.0.0
tomli==2.2.1
tomlkit==0.13.2
torch==2.6.0
tqdm==4.67.1
trio==0.29.0
trio-websocket==0.12.2
twilio==9.5.0
typing-inspect==0.9.0
typing_extensions==4.12.2
tzdata==2025.1
Unidecode==1.3.8
upgrade-requirements==1.7.0
urllib3==2.3.0
vin==0.6.2
vininfo==1.8.0
vishap==0.1.5
vpic-api==0.7.4
weasyprint==64.1
webencodings==0.5.1
websocket-client==1.8.0
Werkzeug==3.1.3
wikipedia==1.4.0
wsproto==1.2.0
xmlsec==1.3.15
yarl==1.18.3
zopfli==0.2.3.post1

View File

@ -165,7 +165,23 @@
<tbody> <tbody>
{% for working_hour in working_hours %} {% for working_hour in working_hours %}
<tr> <tr>
<td>{{ working_hour.get_day_of_week_str }}</td>
{% if working_hour.day_of_week == 0 %}
<td>{{ _("Sunday") }}</td>
{% elif working_hour.day_of_week == 1 %}
<td>{{ _("Monday") }}</td>
{% elif working_hour.day_of_week == 2 %}
<td>{{ _("Tuesday") }}</td>
{% elif working_hour.day_of_week == 3 %}
<td>{{ _("Wednesday") }}</td>
{% elif working_hour.day_of_week == 4 %}
<td>{{ _("Thursday") }}</td>
{% elif working_hour.day_of_week == 5 %}
<td>{{ _("Friday") }}</td>
{% elif working_hour.day_of_week == 6 %}
<td>{{ _("Saturday") }}</td>
{% endif %}
<td>{{ working_hour.start_time|time:"g:i A" }}</td> <td>{{ working_hour.start_time|time:"g:i A" }}</td>
<td>{{ working_hour.end_time|time:"g:i A" }}</td> <td>{{ working_hour.end_time|time:"g:i A" }}</td>
<td> <td>

View File

@ -37,7 +37,7 @@
</div> </div>
<div class="col-6 col-md-4 col-xxl-2 text-center border-translucent border-start-xxl border-end-xxl-0 border-bottom-xxl-0 border-end border-bottom pb-4 pb-xxl-0 "> <div class="col-6 col-md-4 col-xxl-2 text-center border-translucent border-start-xxl border-end-xxl-0 border-bottom-xxl-0 border-end border-bottom pb-4 pb-xxl-0 ">
<span class="uil fs-5 lh-1 uil-receipt-alt text-secondary"></span> <span class="uil fs-5 lh-1 uil-receipt-alt text-secondary"></span>
<a href="{% url 'order_list' %}"><h4 class="fs-6 pt-3">{{ purchase_orders }}</h4></a> <a href="{% url 'order_list_view' %}"><h4 class="fs-6 pt-3">{{ purchase_orders }}</h4></a>
<p class="fs-9 mb-0">{{ _("Purchase Orders")}}</p> <p class="fs-9 mb-0">{{ _("Purchase Orders")}}</p>
</div> </div>
</div> </div>

View File

@ -366,13 +366,13 @@
{% if user.is_authenticated and request.is_dealer or request.is_staff %} {% if user.is_authenticated and request.is_dealer or request.is_staff %}
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<a class="nav-link lh-1 pe-0" id="navbarDropdownUser" role="button" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-haspopup="true" aria-expanded="false"> <a class="nav-link lh-1 pe-0" id="navbarDropdownUser" role="button" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-haspopup="true" aria-expanded="false">
<div class="avatar avatar-l"> <div class="avatar avatar-l text-center align-middle">
{% if user.dealer.logo %} {% if user.dealer.logo %}
<img class="rounded-circle" src="{{ user.dealer.logo.url }}" alt="" /> <img class="rounded-circle" src="{{ user.dealer.logo.url }}" alt="" />
{% elif user.staff.dealer.logo %} {% elif user.staff.dealer.logo %}
<img class="rounded-circle" src="{{ user.staff.dealer.logo.url }}" alt="" /> <img class="rounded-circle" src="{{ user.staff.dealer.logo.url }}" alt="" />
{% else %} {% else %}
<span class="fa fa-user text-body-tertiary" style="width: 32px;"></span> <span class="fa fa-user text-body-tertiary fa-2x" style="width: 32px;"></span>
{% endif %} {% endif %}
</div> </div>
</a> </a>
@ -386,7 +386,7 @@
{% elif user.staff.dealer.logo %} {% elif user.staff.dealer.logo %}
<img class="rounded-circle" src="{{ user.staff.dealer.logo.url }}" alt="" /> <img class="rounded-circle" src="{{ user.staff.dealer.logo.url }}" alt="" />
{% else %} {% else %}
<span class="fa fa-user text-body-tertiary" style="width: 32px;"></span> <span class="fa fa-user text-body-tertiary fa-2x" style="width: 32px;"></span>
{% endif %} {% endif %}
</div> </div>
@ -424,14 +424,14 @@
<li class="nav-item"> <li class="nav-item">
<a class="nav-link px-3 d-block" href=""> <span class="me-2 text-body align-bottom" data-feather="help-circle"></span>Help Center</a> <a class="nav-link px-3 d-block" href=""> <span class="me-2 text-body align-bottom" data-feather="help-circle"></span>Help Center</a>
</li> </li>
<li class="nav-item"><a class="nav-link px-3 d-block" href=""> Language</a></li> <!--<li class="nav-item"><a class="nav-link px-3 d-block" href=""> Language</a></li>-->
</ul> </ul>
</div> </div>
<div class="card-footer p-0 border-top border-translucent"> <div class="card-footer p-0 border-top border-translucent">
<ul class="nav d-flex flex-column my-3"> <ul class="nav d-flex flex-column my-3">
<li class="nav-item"> <!--<li class="nav-item">
<a class="nav-link px-3 d-block" href=""> <span class="me-2 text-body align-bottom" data-feather="user-plus"></span>Add another account</a> <a class="nav-link px-3 d-block" href=""> <span class="me-2 text-body align-bottom" data-feather="user-plus"></span>Add another account</a>
</li> </li>-->
</ul> </ul>
<hr /> <hr />
<div class="px-3"> <div class="px-3">

View File

@ -2,7 +2,7 @@
{% load static %} {% load static %}
{% load i18n %} {% load i18n %}
{% block title %}{{ _("View Customer") }}{% endblock title %} {% block title %}{{ _("View Staff") }}{% endblock title %}
{% block content %} {% block content %}
<!-- Delete Modal --> <!-- Delete Modal -->