modal prep

This commit is contained in:
Zakhy 2024-10-27 16:16:11 +07:00
parent 81388125ab
commit 1cd48a7758
4 changed files with 41 additions and 2 deletions

View File

@ -126,7 +126,7 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
# AUTH_USER_MODEL = 'users.User'
LOGIN_URL = '/users/login'
APP_VERSION = '1.0.0.5'
APP_VERSION = '1.0.0.6'
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
CSRF_TRUSTED_ORIGINS=["https://cybercode.pro", "http://cybercode.pro"]

View File

View File

@ -81,7 +81,47 @@
</header>
{% endblock %}
{% block content %}{% endblock %}
{% block modal %}
{# <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#feedbackModal">#}
{# Оставить отзыв#}
{# </button>#}
<div class="modal fade" id="feedbackModal" tabindex="-1" aria-labelledby="feedbackModalLabel" aria-hidden="true"
data-bs-theme="dark">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="feedbackModalLabel" style="color: #fff;">Обратная связь</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Закрыть"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label for="nameInput" class="form-label" style="color: #fff;">Ваше имя</label>
<input type="text" class="form-control" id="nameInput" placeholder="Введите ваше имя">
</div>
<div class="mb-3">
<label for="emailInput" class="form-label" style="color: #fff;">Email</label>
<input type="email" class="form-control" id="emailInput" placeholder="Введите ваш email">
</div>
<div class="mb-3">
<label for="orgInput" class="form-label" style="color: #fff;">Организация</label>
<input type="text" class="form-control" id="orgInput"
placeholder="Введите наименование организации">
</div>
<div class="mb-3">
<label for="messageInput" class="form-label" style="color: #fff;">Сообщение</label>
<textarea class="form-control" id="messageInput" rows="4"
placeholder="Ваше сообщение"></textarea>
</div>
<button type="submit" class="btn btn-primary w-100">Отправить</button>
</form>
</div>
</div>
</div>
</div>
{% endblock %}
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js"></script>
<script src="{% static_with_version 'cybercode/js/burger.js' %}"></script>
{% block script %}{% endblock %}
</body>

View File

@ -37,4 +37,3 @@
</div>
</div>
{% endblock %}