[*] скорректировал работу диалогов

[+] добавил jquery в публичную часть
This commit is contained in:
rsgrinko committed 2023-08-08 23:55:27 +03:00
1 parent 94f387b072
commit 27ba47465f
10 files changed
+108 -12

No files matched your search

+6 -2
View File
@@ -36,10 +36,14 @@
</div>
<p>
<form method="POST" action="/users/{{ companionId }}/sendMessage">
<form method="POST" action="/users/{{ companionId }}/sendMessage" enctype="multipart/form-data">
<input type="hidden" name="dialogId" value="{{ dialog_id }}">
<textarea name="message"></textarea>
<button class="button w100" type="submit">Отправить</button>
<label class="input-file w100">
<input type="file" name="file">
<span class="w100">Выберите файл</span>
</label>
<button class="button w100" type="submit" value="sendMessage">Отправить</button>
</form>
</p>
+3 -1
View File
@@ -4,6 +4,8 @@
<title>{% block title %}Delta Framework{% endblock %}</title>
<link href="/assets/css/style.css?{{ salt }}" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="/assets/js/jquery-3.7.0.min.js?{{ salt }}"></script>
<script src="/assets/js/script.js?{{ salt }}"></script>
</head>
<body>
@@ -18,7 +20,7 @@
<div class="menuItem {% if currentPage == 'index' %}active{% endif %}"><a href="/">Главная</a></div>
<div class="menuItem"><a href="/admin/">Админка</a></div>
{% if isAuthorized %}
<div class="menuItem {% if currentPage == 'dialogs' %}active{% endif %}"><a href="/dialogs">Диалоги</a></div>
<div class="menuItem {% if currentPage == 'dialogs' %}active{% endif %}"><a href="/dialogs">Диалоги{% if newMessages > 0 %} ({{ newMessages }}){% endif %}</a></div>
{% endif %}
<div class="menuItem {% if currentPage == 'users' %}active{% endif %}"><a href="/users">Список пользователей</a></div>
<div class="menuItem {% if currentPage == 'info' %}active{% endif %}"><a href="/info">Информация о сборке</a></div>