Fix singleton admin: ensure Save button appears by checking count instead of filter
This commit is contained in:
@@ -326,8 +326,8 @@
|
||||
<i class="fas fa-envelope fa-2x text-primary"></i>
|
||||
</div>
|
||||
<h5 class="card-title fw-bold mb-3">Email</h5>
|
||||
<a href="mailto:{{ about.contact_email }}" class="text-decoration-none">
|
||||
<p class="card-text text-muted mb-0">{{ about.contact_email }}</p>
|
||||
<a href="mailto:{{ contact_settings.email }}" class="text-decoration-none">
|
||||
<p class="card-text text-muted mb-0">{{ contact_settings.email }}</p>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -341,8 +341,8 @@
|
||||
<i class="fas fa-phone fa-2x text-success"></i>
|
||||
</div>
|
||||
<h5 class="card-title fw-bold mb-3">Телефон</h5>
|
||||
<a href="tel:{{ about.contact_phone }}" class="text-decoration-none">
|
||||
<p class="card-text text-muted mb-0">{{ about.contact_phone }}</p>
|
||||
<a href="tel:{{ contact_settings.phone }}" class="text-decoration-none">
|
||||
<p class="card-text text-muted mb-0">{{ contact_settings.phone }}</p>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -356,15 +356,15 @@
|
||||
<i class="fab fa-telegram-plane fa-2x text-info"></i>
|
||||
</div>
|
||||
<h5 class="card-title fw-bold mb-3">Telegram</h5>
|
||||
<a href="https://t.me/{{ about.contact_telegram|cut:'@' }}" target="_blank" class="text-decoration-none">
|
||||
<p class="card-text text-muted mb-0">{{ about.contact_telegram }}</p>
|
||||
<a href="https://t.me/{{ contact_settings.telegram|cut:'@' }}" target="_blank" class="text-decoration-none">
|
||||
<p class="card-text text-muted mb-0">{{ contact_settings.telegram }}</p>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Address Card (optional) -->
|
||||
{% if about.contact_address %}
|
||||
<!-- Address Card -->
|
||||
{% if contact_settings.address %}
|
||||
<div class="col-lg-3 col-md-6">
|
||||
<div class="card h-100 border-0 shadow-sm hover-lift">
|
||||
<div class="card-body text-center p-4">
|
||||
@@ -372,7 +372,10 @@
|
||||
<i class="fas fa-map-marker-alt fa-2x text-warning"></i>
|
||||
</div>
|
||||
<h5 class="card-title fw-bold mb-3">Адрес</h5>
|
||||
<p class="card-text text-muted mb-0">{{ about.contact_address }}</p>
|
||||
<p class="card-text text-muted mb-0">{{ contact_settings.address }}</p>
|
||||
{% if contact_settings.working_hours %}
|
||||
<p class="card-text text-muted small mt-2">{{ contact_settings.working_hours }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user