login and logout footer change
This commit is contained in:
parent
a0a0a76deb
commit
aaf2a268da
@ -20,7 +20,7 @@ class Command(BaseCommand):
|
|||||||
count = opts['count']
|
count = opts['count']
|
||||||
client = Client() # lives inside management command
|
client = Client() # lives inside management command
|
||||||
|
|
||||||
for n in range(5, 7):
|
for n in range(6, 9):
|
||||||
self.stdout.write(f"🚗 Seeding dealer #{n}")
|
self.stdout.write(f"🚗 Seeding dealer #{n}")
|
||||||
self._create_dealer(client, n)
|
self._create_dealer(client, n)
|
||||||
# self._create_cars(client, n)
|
# self._create_cars(client, n)
|
||||||
|
|||||||
@ -1184,7 +1184,7 @@ class Dealer(models.Model, LocalizedNameMixin):
|
|||||||
blank=True,
|
blank=True,
|
||||||
null=True,
|
null=True,
|
||||||
verbose_name=_("Logo"),
|
verbose_name=_("Logo"),
|
||||||
default="user-logo.png",
|
default="images/default-user-image/dealer.png",
|
||||||
)
|
)
|
||||||
thumbnail = ImageSpecField(
|
thumbnail = ImageSpecField(
|
||||||
source="logo",
|
source="logo",
|
||||||
@ -1288,7 +1288,7 @@ class Staff(models.Model, LocalizedNameMixin):
|
|||||||
max_length=200, blank=True, null=True, verbose_name=_("Address")
|
max_length=200, blank=True, null=True, verbose_name=_("Address")
|
||||||
)
|
)
|
||||||
logo = models.ImageField(
|
logo = models.ImageField(
|
||||||
upload_to="logos/staff", blank=True, null=True, verbose_name=_("Image"),default="user-logo.jpg"
|
upload_to="logos/staff", blank=True, null=True, verbose_name=_("Image"),default="images/default-user-image/staff.png"
|
||||||
)
|
)
|
||||||
thumbnail = ImageSpecField(
|
thumbnail = ImageSpecField(
|
||||||
source="logo",
|
source="logo",
|
||||||
@ -1511,7 +1511,7 @@ class Customer(models.Model):
|
|||||||
)
|
)
|
||||||
active = models.BooleanField(default=True, verbose_name=_("Active"))
|
active = models.BooleanField(default=True, verbose_name=_("Active"))
|
||||||
image = models.ImageField(
|
image = models.ImageField(
|
||||||
upload_to="customers/", blank=True, null=True, verbose_name=_("Image")
|
upload_to="customers/", blank=True, null=True, verbose_name=_("Image"),default="images/default-user-image/customer-logo.png",
|
||||||
)
|
)
|
||||||
thumbnail = ImageSpecField(
|
thumbnail = ImageSpecField(
|
||||||
source="image",
|
source="image",
|
||||||
@ -2481,7 +2481,7 @@ class Vendor(models.Model, LocalizedNameMixin):
|
|||||||
email = models.EmailField(max_length=255, verbose_name=_("Email Address"))
|
email = models.EmailField(max_length=255, verbose_name=_("Email Address"))
|
||||||
address = models.CharField(max_length=200, verbose_name=_("Address"))
|
address = models.CharField(max_length=200, verbose_name=_("Address"))
|
||||||
logo = models.ImageField(
|
logo = models.ImageField(
|
||||||
upload_to="logos/vendors", blank=True, null=True, verbose_name=_("Logo"),default="user-logo.jpg"
|
upload_to="logos/vendors", blank=True, null=True, verbose_name=_("Logo"),default="images/default-user-image/vendor.png"
|
||||||
)
|
)
|
||||||
thumbnail = ImageSpecField(
|
thumbnail = ImageSpecField(
|
||||||
source="logo",
|
source="logo",
|
||||||
|
|||||||
@ -6125,7 +6125,7 @@ def lead_tracking(request, dealer_slug):
|
|||||||
qs = models.Lead.objects.filter(dealer=dealer, staff=staff)
|
qs = models.Lead.objects.filter(dealer=dealer, staff=staff)
|
||||||
else:
|
else:
|
||||||
qs = models.Lead.objects.filter(dealer=dealer)
|
qs = models.Lead.objects.filter(dealer=dealer)
|
||||||
|
leads=qs
|
||||||
won = qs.filter(status="won")
|
won = qs.filter(status="won")
|
||||||
new = qs.filter(status="new")
|
new = qs.filter(status="new")
|
||||||
lose = qs.filter(status="lose")
|
lose = qs.filter(status="lose")
|
||||||
@ -6138,6 +6138,7 @@ def lead_tracking(request, dealer_slug):
|
|||||||
"won": won,
|
"won": won,
|
||||||
"lose": lose,
|
"lose": lose,
|
||||||
"negotiation": negotiation,
|
"negotiation": negotiation,
|
||||||
|
"leads":leads
|
||||||
}
|
}
|
||||||
return render(request, "crm/leads/lead_tracking.html", context)
|
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" %}
|
{% trans "Sign In" %}
|
||||||
{% endblock head_title %}
|
{% endblock head_title %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<section class="main mt-2">
|
|
||||||
<div class="row flex-center ">
|
<section class="main my-2">
|
||||||
<div class="col-sm-10 col-md-8 col-lg-5 col-xl-5 col-xxl-3">
|
<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"
|
<a class="d-flex flex-center text-decoration-none mb-4"
|
||||||
href="{% url 'home' %}">
|
href="{% url 'home' %}">
|
||||||
<div class="d-flex align-items-center fw-bolder fs-3 d-inline-block">
|
<div class="d-flex align-items-center fw-bolder fs-3 d-inline-block">
|
||||||
@ -77,9 +78,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="pt-lg-0 pt-xl-8">
|
|
||||||
{% include 'footer.html' %}
|
{% include 'footer.html' %}
|
||||||
</section>
|
|
||||||
{% if LOGIN_BY_CODE_ENABLED or PASSKEY_LOGIN_ENABLED %}
|
{% if LOGIN_BY_CODE_ENABLED or PASSKEY_LOGIN_ENABLED %}
|
||||||
<hr>
|
<hr>
|
||||||
{% element button_group vertical=True %}
|
{% element button_group vertical=True %}
|
||||||
|
|||||||
@ -282,9 +282,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="pt-lg-0 pt-xl-8">
|
|
||||||
{% include 'footer.html' %}
|
{% include 'footer.html' %}
|
||||||
</section>
|
|
||||||
<script src="{% static 'js/phoenix.js' %}"></script>
|
<script src="{% static 'js/phoenix.js' %}"></script>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
{% block customJS %}
|
{% block customJS %}
|
||||||
|
|||||||
@ -65,6 +65,8 @@
|
|||||||
</style>
|
</style>
|
||||||
{% endblock customCSS %}
|
{% endblock customCSS %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
{% if leads %}
|
||||||
<div class="container-fluid my-4">
|
<div class="container-fluid my-4">
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
@ -168,13 +170,14 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</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>
|
||||||
</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 %}
|
{% endblock %}
|
||||||
|
|||||||
@ -42,16 +42,19 @@
|
|||||||
<img src="{% static 'images/logos/no-content-new.jpg' %}" alt="No-empty-state-image" class="empty-state-image">
|
<img src="{% static 'images/logos/no-content-new.jpg' %}" alt="No-empty-state-image" class="empty-state-image">
|
||||||
|
|
||||||
<!-- Title -->
|
<!-- 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 -->
|
<!-- Description -->
|
||||||
<p class="empty-state-text">
|
<p class="empty-state-text">
|
||||||
{% trans "It looks like you haven't added any {{ value }} to your account.
|
{% 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 }}!" %}
|
Click the button below to get started and add your first {{ value }}!{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<!-- Call to Action Button -->
|
<!-- Call to Action Button -->
|
||||||
<a class="btn btn-lg btn-primary" href="{{ url }}">
|
<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>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% if inventory %}
|
{% if inventory.total_cars > 0 %}
|
||||||
<div class="row justify-content-between">
|
<div class="row justify-content-between">
|
||||||
<div class="col-sm-12 ">
|
<div class="col-sm-12 ">
|
||||||
<div class="card border h-100 w-100 p-lg-10">
|
<div class="card border h-100 w-100 p-lg-10">
|
||||||
|
|||||||
@ -90,7 +90,7 @@
|
|||||||
|
|
||||||
|
|
||||||
{% else %}
|
{% 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 %}
|
{% include "empty-illustration-page.html" with value="bill" url=create_bill_url %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@ -131,7 +131,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% else %}
|
{% 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 %}
|
{% include "empty-illustration-page.html" with value="ledger" url=create_ledger_url %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@ -79,7 +79,7 @@
|
|||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{% url "estimate_create" request.dealer.slug as create_estimate_url %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@ -91,8 +91,28 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
{% else %}
|
{% 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 %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@ -2,11 +2,11 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
{% get_current_language as LANGUAGE_CODE %}
|
{% get_current_language as LANGUAGE_CODE %}
|
||||||
<html lang="{{ LANGUAGE_CODE }}"
|
<html lang="{{ LANGUAGE_CODE }}"
|
||||||
dir="{% if LANGUAGE_CODE == 'ar' %}
|
{% if LANGUAGE_CODE == 'ar' %}
|
||||||
rtl
|
dir="rtl"
|
||||||
{% else %}
|
{% else %}
|
||||||
ltr
|
dir="ltr"
|
||||||
{% endif %}"
|
{% endif %}
|
||||||
data-bs-theme="dark"
|
data-bs-theme="dark"
|
||||||
data-navigation-type="default"
|
data-navigation-type="default"
|
||||||
data-navbar-horizontal-shape="default">
|
data-navbar-horizontal-shape="default">
|
||||||
@ -78,6 +78,9 @@
|
|||||||
{% include 'welcome_header.html' %}
|
{% include 'welcome_header.html' %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% comment %}
|
{% comment %}
|
||||||
<script src="{% static 'vendors/anchorjs/anchor.min.js' %}"></script>
|
<script src="{% static 'vendors/anchorjs/anchor.min.js' %}"></script>
|
||||||
<script src="{% static 'vendors/is/is.min.js' %}"></script>
|
<script src="{% static 'vendors/is/is.min.js' %}"></script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user