Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a form for discipline group complaints #24

Merged
merged 6 commits into from Jun 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions ui/_data/menu.js
Expand Up @@ -28,4 +28,8 @@ module.exports = [
title: "Обратная связь",
link: "/contact",
},
{
title: "Обращение в ДГ",
link: "/discipline",
},
];
6 changes: 4 additions & 2 deletions ui/_includes/layout.njk
Expand Up @@ -39,13 +39,15 @@ bodyElements: 2
<footer class="uk-section uk-section-muted uk-section-small">
<div class="uk-container uk-text-small uk-text-muted">
<div class="uk-grid uk-grid-divider uk-child-width-expand@s" uk-grid>
<div class="uk-first-column">
<ul class="uk-nav uk-column-1-2 uk-margin-bottom uk-margin-remove-bottom@s">
<div class="uk-margin-remove-left uk-child-width-1-2" uk-grid>
<ul class="uk-nav uk-margin-bottom uk-margin-remove-bottom@s">
{% for item in menu %}
<li>
<a href="{{ item.link }}">{{ item.title }}</a>
</li>
{% endfor %}
</ul>
<ul class="uk-nav uk-margin-bottom uk-margin-remove-bottom@s">
{% for item in externalMenu %}
<li>
<a href="{{ item.link }}">{{ item.title }}</a>
Expand Down
4 changes: 4 additions & 0 deletions ui/contact.njk
Expand Up @@ -17,6 +17,10 @@ eleventyComputed:
и мы постараемся ответить как можно быстрее.
</p>

<p class="uk-text-lead">
Написать обращение в дисциплинарную группу можно напрямую <a href="/discipline" >на этой странице</a>.
</p>

<form action="https://submit-form.com/29rLotZk" class="uk-form-stacked" method="post">

<div class="uk-grid uk-child-width-1-1 uk-child-width-1-2@s">
Expand Down
126 changes: 126 additions & 0 deletions ui/discipline.njk
@@ -0,0 +1,126 @@
---
layout: content
pageTitle: Обращение в дисциплинарную группу
eleventyComputed:
pageTitle: "{{ index_page.Title }} — Обращение в дисциплинарную группу"
pageDescription: "{{ index_page.Title }} — Обращение в дисциплинарную группу"
---


<script src="https://hcaptcha.com/1/api.js" async defer></script>
<script src="https://ucarecdn.com/libs/widget/3.x/uploadcare.full.min.js"></script>

<section class="uk-section uk-section-default">
<div class="uk-container contact-form">
<h1>Обращение в дисциплинарную группу</h1>

<p class="uk-text-lead">

</p>

<form action="https://submit-form.com/68t6u1vA" class="uk-form-stacked" method="post">

<div class="uk-grid uk-child-width-1-1 uk-child-width-1-2@s">
<div class="uk-margin-bottom">
<label class="uk-form-label" for="name">Имя и фамилия<em>*</em>:</label>
<div class="uk-form-controls">
<input class="uk-input" type="text" id="name" name="name" placeholder="Имя" required/>
</div>
</div>

<div class="uk-margin-bottom">
<label class="uk-form-label" for="name">ID на турнирном сайте (если есть):</label>
<div class="uk-form-controls">
<input class="uk-input" type="text" id="id" name="id" placeholder="ID" />
</div>
</div>
</div>

<div class="uk-margin-bottom">
<label class="uk-form-label" for="name">Email<em>*</em>:</label>
<div class="uk-form-controls">
<input class="uk-input" type="email" id="email" name="email" placeholder="email@email.com" />
</div>
</div>

<div class="uk-margin-bottom">
<label class="uk-form-label" for="name">Ссылка на страницу в социальной сети (Фейсбук, Вконтакте):</label>
<div class="uk-form-controls">
<input class="uk-input" type="text" id="social" name="social"/>
</div>
</div>

<div class="uk-margin-bottom">
<label class="uk-form-label" for="name">Укажите удобный способ связи (Телеграм, Whatsapp или иное) и ваш аккаунт в этом мессенджере<em>*</em>:</label>
<div class="uk-form-controls">
<input class="uk-input" type="text" id="messenger" name="messenger" required />
</div>
</div>

<div class="uk-margin-bottom">
<label class="uk-form-label" for="message">Ваше сообщение<em>*</em>:</label>
<div class="uk-form-controls">
<textarea
id="message"
name="message"
placeholder="Сообщение"
required
class="uk-textarea"
rows="6"
></textarea>
</div>
</div>

<label for="files">Скриншоты или другие изображения (до пяти штук) </label>
<div class="uk-margin-bottom">
<input
type="hidden"
id="screenshots"
name="screenshots"
role="uploadcare-uploader"
data-public-key="e91298be1013b9b1d3de"
/>
</div>
<div class="uk-margin-bottom">
<input
type="hidden"
id="screenshots"
name="screenshots"
role="uploadcare-uploader"
data-public-key="e91298be1013b9b1d3de"
/>
</div>
<div class="uk-margin-bottom">
<input
type="hidden"
id="screenshots"
name="screenshots"
role="uploadcare-uploader"
data-public-key="e91298be1013b9b1d3de"
/>
</div>
<div class="uk-margin-bottom">
<input
type="hidden"
id="screenshots"
name="screenshots"
role="uploadcare-uploader"
data-public-key="e91298be1013b9b1d3de"
/>
</div>
<div class="uk-margin-bottom">
<input
type="hidden"
id="screenshots"
name="screenshots"
role="uploadcare-uploader"
data-public-key="e91298be1013b9b1d3de"
/>
</div>

<div class="h-captcha uk-margin-bottom" data-sitekey="178905a5-244e-4656-bb5f-adc9a5d40b9d"></div>

<button class="uk-button uk-button-primary uk-button-large" type="submit">Отправить</button>
</form>
</div>
</section>
7 changes: 0 additions & 7 deletions ui/static/main.css
Expand Up @@ -38,13 +38,6 @@ em {
min-height: fill-available;
}

.menu-container .uk-navbar-left {
padding-left: 15px;
}
.menu-container .uk-navbar-right {
padding-right: 15px;
}

.hamburger {
font-size: 0;
border: 0;
Expand Down