1
{{define "comment-form"}}
3
<form id="comment_form" class="ym-form ym-columnar" method="POST"
4
data-url="{{path "add-comment"}}"
5
action="{{path "add-comment-dummy"}}">
6
<input type="hidden" name="topicId" value="{{.Article.ID}}" id="topicId">
7
<input type="hidden" name="parentId" value="0" id="parentId">
8
{{- if not .HasIdentity -}}
9
{{- template "svg-auth" -}}
11
<div class="large-3 columns">
12
<label for="name" class="inline required-field">Имя:</label>
14
<div class="large-9 columns">
19
placeholder="nickname"
24
<div class="large-3 columns">
25
<label for="email" class="inline">E-mail:</label>
27
<div class="large-9 columns">
32
placeholder="mail@example.org">
36
<div class="large-3 columns">
37
<label for="website" class="inline">Website:</label>
39
<div class="large-9 columns">
44
placeholder="http://example.org">
48
<div class="large-offset-3 large-9 columns">
49
<div class="auth_note">
50
Или войдите, чтобы не заполнять форму:
53
<a href="{{path "oauth-authorize" "provider" "vkontakte"}}" rel="nofollow">
55
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" role="img"
57
width="28" height="28">
58
<use xlink:href="#auth-vk"></use>
62
<a href="{{path "oauth-authorize" "provider" "yandex"}}" rel="nofollow">
64
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44" role="img"
66
width="28" height="28">
67
<use xlink:href="#auth-yandex"></use>
76
<div class="large-3 columns">
77
<label for="comment_text" class="inline required-field">Текст комментария:</label>
79
<div class="large-9 columns">
80
<textarea name="comment_text"
83
required="required"></textarea>
87
<div class="large-offset-3 large-9 columns">
89
class="ym-button ym-add"
91
name="submit">Добавить комментарий</button>
95
{{- if not .HasIdentity -}}
96
<div class="form_note row">
98
Адрес электронной почты нигде не отображается, необходим только для обратной связи.
102
<div class="ajax-loader"></div>