login and logout footer change
This commit is contained in:
parent
a0a0a76deb
commit
aaf2a268da
@ -20,7 +20,7 @@ class Command(BaseCommand):
|
||||
count = opts['count']
|
||||
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._create_dealer(client, n)
|
||||
# self._create_cars(client, n)
|
||||
|
||||
@ -1184,7 +1184,7 @@ class Dealer(models.Model, LocalizedNameMixin):
|
||||
blank=True,
|
||||
null=True,
|
||||
verbose_name=_("Logo"),
|
||||
default="user-logo.png",
|
||||
default="images/default-user-image/dealer.png",
|
||||
)
|
||||
thumbnail = ImageSpecField(
|
||||
source="logo",
|
||||
@ -1288,7 +1288,7 @@ class Staff(models.Model, LocalizedNameMixin):
|
||||
max_length=200, blank=True, null=True, verbose_name=_("Address")
|
||||
)
|
||||
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(
|
||||
source="logo",
|
||||
@ -1511,7 +1511,7 @@ class Customer(models.Model):
|
||||
)
|
||||
active = models.BooleanField(default=True, verbose_name=_("Active"))
|
||||
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(
|
||||
source="image",
|
||||
@ -2481,7 +2481,7 @@ class Vendor(models.Model, LocalizedNameMixin):
|
||||
email = models.EmailField(max_length=255, verbose_name=_("Email Address"))
|
||||
address = models.CharField(max_length=200, verbose_name=_("Address"))
|
||||
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(
|
||||
source="logo",
|
||||
|
||||
@ -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 %}
|
||||
|
||||
@ -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