changes to login and logout foooter #149
@ -20,7 +20,7 @@ class Command(BaseCommand):
|
||||
count = opts['count']
|
||||
client = Client() # lives inside management command
|
||||
|
||||
for n in range(1, 10):
|
||||
for n in range(6, 9):
|
||||
self.stdout.write(f"🚗 Seeding dealer #{n}")
|
||||
self._create_dealer(client, n)
|
||||
# self._create_cars(client, n)
|
||||
|
||||
@ -500,7 +500,7 @@ def create_item_service(sender, instance, created, **kwargs):
|
||||
"""
|
||||
if created:
|
||||
entity = instance.dealer.entity
|
||||
uom = entity.get_uom_all().get(unit_abbr=instance.uom)
|
||||
uom = entity.get_uom_all().get(name=str(instance.uom).lower())
|
||||
cogs = (
|
||||
entity.get_all_accounts()
|
||||
.filter(role=roles.COGS, active=True, role_default=True)
|
||||
|
||||
@ -1157,7 +1157,7 @@ def create_user_dealer(email, password, name, arabic_name, phone, crn, vrn, addr
|
||||
user = User.objects.create(username=email, email=email)
|
||||
user.set_password(password)
|
||||
user.save()
|
||||
EmailAddress.objects.create(user=user, email=email, verified=True, primary=True)
|
||||
# EmailAddress.objects.create(user=user, email=email, verified=True, primary=True)
|
||||
group = Group.objects.create(name=f"{user.pk}-Admin")
|
||||
user.groups.add(group)
|
||||
for perm in Permission.objects.filter(
|
||||
|
||||
@ -6125,7 +6125,7 @@ def lead_tracking(request, dealer_slug):
|
||||
qs = models.Lead.objects.filter(dealer=dealer, staff=staff)
|
||||
else:
|
||||
qs = models.Lead.objects.filter(dealer=dealer)
|
||||
|
||||
leads=qs
|
||||
won = qs.filter(status="won")
|
||||
new = qs.filter(status="new")
|
||||
lose = qs.filter(status="lose")
|
||||
@ -6138,6 +6138,7 @@ def lead_tracking(request, dealer_slug):
|
||||
"won": won,
|
||||
"lose": lose,
|
||||
"negotiation": negotiation,
|
||||
"leads":leads
|
||||
}
|
||||
return render(request, "crm/leads/lead_tracking.html", context)
|
||||
|
||||
|
||||
BIN
static/images/default-user-image/customer-logo.png
Normal file
BIN
static/images/default-user-image/customer-logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 744 KiB |
BIN
static/images/default-user-image/dealer.png
Normal file
BIN
static/images/default-user-image/dealer.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
BIN
static/images/default-user-image/staff.png
Normal file
BIN
static/images/default-user-image/staff.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
BIN
static/images/default-user-image/vendor.png
Normal file
BIN
static/images/default-user-image/vendor.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@ -6,9 +6,10 @@
|
||||
{% trans "Sign In" %}
|
||||
{% endblock head_title %}
|
||||
{% block content %}
|
||||
<section class="main mt-2">
|
||||
<div class="row flex-center ">
|
||||
<div class="col-sm-10 col-md-8 col-lg-5 col-xl-5 col-xxl-3">
|
||||
|
||||
<section class="main my-2">
|
||||
<div class="container" style="max-width:40rem;">
|
||||
<div class="class="row form-container" id="form-container"">
|
||||
<a class="d-flex flex-center text-decoration-none mb-4"
|
||||
href="{% url 'home' %}">
|
||||
<div class="d-flex align-items-center fw-bolder fs-3 d-inline-block">
|
||||
@ -77,9 +78,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="pt-lg-0 pt-xl-8">
|
||||
{% include 'footer.html' %}
|
||||
</section>
|
||||
|
||||
{% include 'footer.html' %}
|
||||
|
||||
{% if LOGIN_BY_CODE_ENABLED or PASSKEY_LOGIN_ENABLED %}
|
||||
<hr>
|
||||
{% element button_group vertical=True %}
|
||||
|
||||
@ -282,9 +282,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="pt-lg-0 pt-xl-8">
|
||||
|
||||
{% include 'footer.html' %}
|
||||
</section>
|
||||
|
||||
<script src="{% static 'js/phoenix.js' %}"></script>
|
||||
{% endblock content %}
|
||||
{% block customJS %}
|
||||
|
||||
@ -65,6 +65,8 @@
|
||||
</style>
|
||||
{% endblock customCSS %}
|
||||
{% block content %}
|
||||
|
||||
{% if leads %}
|
||||
<div class="container-fluid my-4">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col">
|
||||
@ -168,13 +170,14 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% if not new and not follow_up and not negotiation %}
|
||||
{% url 'lead_create' request.dealer.slug as create_lead_url %}
|
||||
{% include "empty-illustration-page.html" with value="lead" url=create_lead_url %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
{% url 'lead_create' request.dealer.slug as create_lead_url %}
|
||||
{% include "empty-illustration-page.html" with value="lead" url=create_lead_url %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@ -147,20 +147,20 @@
|
||||
<tbody class="list" id="customer-order-table-body">
|
||||
{% for lead in leads %}
|
||||
<tr>
|
||||
<td><a href="#">{{lead}} ({{ forloop.counter }})<a></td>
|
||||
<td>{{lead.opportunity}} ({{ forloop.counter }})</td>
|
||||
<td><a href="{% url 'lead_detail' request.dealer.slug lead.slug%}">{{lead}} ({{ forloop.counter }})<a></td>
|
||||
<td><a href="{$ url 'opportunity_detail' lead.opportunity.slug request.dealer.slug}">{{lead.opportunity}} ({{ forloop.counter }})</a></td>
|
||||
|
||||
<td>
|
||||
|
||||
{% for estimate in lead.customer.customer_model.estimatemodel_set.all %}
|
||||
<div class="me-2">{{estimate}}</div>
|
||||
<div class="me-2"><a href="{% url 'estimate_detail' request.dealer.slug estimate.pk %}">{{estimate}}</a></div>
|
||||
<hr>
|
||||
{% endfor %}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% for estimate in lead.customer.customer_model.estimatemodel_set.all %}
|
||||
<div>{{estimate.sale_orders.first}}</div>
|
||||
<div><a href={% url 'order_detail' request.dealer.slug estimate.sale_orders.first.pk%}>{{estimate.sale_orders.first}}</a></div>
|
||||
<hr>
|
||||
{% endfor %}
|
||||
</td>
|
||||
@ -169,11 +169,11 @@
|
||||
|
||||
{% if invoice.is_paid %}
|
||||
<span class="badge badge-phoenix fs-10 badge-phoenix-success">
|
||||
<div>{{invoice}}</div>
|
||||
<div><a href="{% url 'invoice_detail' request.dealer.slug request.entity.slug invoice.pk %}">{{invoice}}</a></div>
|
||||
</span>
|
||||
{%else%}
|
||||
<span class="badge badge-phoenix fs-10 badge-phoenix-info">
|
||||
<div>{{invoice}}</div>
|
||||
<div><a href="{% url 'invoice_detail' request.dealer.slug request.entity.slug invoice.pk %}">{{invoice}}</a></div>
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
@ -182,7 +182,7 @@
|
||||
</td>
|
||||
<td>
|
||||
{% for estimate in lead.customer.customer_model.invoicemodel_set.all %}
|
||||
<div>{{estimate.itemtransactionmodel_set.first.item_model.name}}</div>
|
||||
<div><a href="#">{{estimate.itemtransactionmodel_set.first.item_model.name}}</a></div>
|
||||
<hr>
|
||||
{% endfor %}
|
||||
<td>
|
||||
|
||||
@ -42,16 +42,19 @@
|
||||
<img src="{% static 'images/logos/no-content-new.jpg' %}" alt="No-empty-state-image" class="empty-state-image">
|
||||
|
||||
<!-- Title -->
|
||||
<h3 class="empty-state-title">{% trans "No" %} {{ value|capfirst }} {% trans "Yet" %}</h3>
|
||||
<h3 class="empty-state-title">
|
||||
{% blocktrans %}No {{ value}} Yet{% endblocktrans %}
|
||||
</h3>
|
||||
|
||||
<!-- Description -->
|
||||
<p class="empty-state-text">
|
||||
{% trans "It looks like you haven't added any {{ value }} to your account.
|
||||
Click the button below to get started and add your first {{ value }}!" %}
|
||||
{% blocktrans %}It looks like you haven't added any {{ value }} to your account.
|
||||
Click the button below to get started and add your first {{ value }}!{% endblocktrans %}
|
||||
</p>
|
||||
|
||||
<!-- Call to Action Button -->
|
||||
<a class="btn btn-lg btn-primary" href="{{ url }}">
|
||||
<i class="fa fa-plus me-2"></i>{% trans "Create New " %}{{ value|capfirst }}
|
||||
<i class="fa fa-plus me-2"></i>
|
||||
{% blocktrans %}Create New {{value}}{% endblocktrans %}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
{% if inventory %}
|
||||
{% if inventory.total_cars > 0 %}
|
||||
<div class="row justify-content-between">
|
||||
<div class="col-sm-12 ">
|
||||
<div class="card border h-100 w-100 p-lg-10">
|
||||
|
||||
@ -90,7 +90,7 @@
|
||||
|
||||
|
||||
{% else %}
|
||||
{% url "bill-create" request.dealer.slug as create_bill_url %}
|
||||
{% url "bill-create" request.dealer.slug request.entity.slug as create_bill_url %}
|
||||
{% include "empty-illustration-page.html" with value="bill" url=create_bill_url %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@ -131,7 +131,7 @@
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
{% url 'ledger_create' request.dealer.slug as create_ledger_url %}
|
||||
{% url 'ledger_create' request.dealer.slug request.entity.slug as create_ledger_url %}
|
||||
{% include "empty-illustration-page.html" with value="ledger" url=create_ledger_url %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@ -79,7 +79,7 @@
|
||||
|
||||
{% else %}
|
||||
{% url "estimate_create" request.dealer.slug as create_estimate_url %}
|
||||
{% include "empty-illustration-page.html" with value="customer" url=create_estimate_url %}
|
||||
{% include "empty-illustration-page.html" with value="estimate" url=create_estimate_url %}
|
||||
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@ -91,8 +91,28 @@
|
||||
</section>
|
||||
|
||||
{% else %}
|
||||
{% url "user_create" request.dealer.slug as create_staff_url %}
|
||||
{% include "empty-illustration-page.html" with value="staff" url=create_staff_url %}
|
||||
|
||||
{% if request.user.userplan %}
|
||||
{% url "user_create" request.dealer.slug as create_staff_url %}
|
||||
{% include "empty-illustration-page.html" with value="staff" url=create_staff_url %}
|
||||
|
||||
{% else %}
|
||||
<div class="alert alert-outline-warning d-flex align-items-center"
|
||||
role="alert">
|
||||
<i class="fa-solid fa-circle-info fs-6"></i>
|
||||
<p class="mb-0 flex-1">
|
||||
{{ _("No Active Subscription,please activate your subscription.") }}<a href="{% url 'pricing_page' request.dealer.slug %}"
|
||||
class="ms-3 text-body-primary fs-9">Manage Subscription</a>
|
||||
</p>
|
||||
<button class="btn-close"
|
||||
type="button"
|
||||
data-bs-dismiss="alert"
|
||||
aria-label="Close"></button>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@ -2,11 +2,11 @@
|
||||
<!DOCTYPE html>
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
<html lang="{{ LANGUAGE_CODE }}"
|
||||
dir="{% if LANGUAGE_CODE == 'ar' %}
|
||||
rtl
|
||||
{% if LANGUAGE_CODE == 'ar' %}
|
||||
dir="rtl"
|
||||
{% else %}
|
||||
ltr
|
||||
{% endif %}"
|
||||
dir="ltr"
|
||||
{% endif %}
|
||||
data-bs-theme="dark"
|
||||
data-navigation-type="default"
|
||||
data-navbar-horizontal-shape="default">
|
||||
@ -78,6 +78,9 @@
|
||||
{% include 'welcome_header.html' %}
|
||||
{% block content %}
|
||||
{% endblock content %}
|
||||
|
||||
|
||||
|
||||
{% comment %}
|
||||
<script src="{% static 'vendors/anchorjs/anchor.min.js' %}"></script>
|
||||
<script src="{% static 'vendors/is/is.min.js' %}"></script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user