-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
This file was deleted.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/*! | ||
* jQuery JavaScript Library v3.7.1 | ||
* https://jquery.com/ | ||
* | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2023-08-28T13:37Z | ||
*/ |
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1 @@ | ||
{# | ||
By default, forms enable client-side validation. This means that you can't | ||
test the server-side validation errors from the browser. To temporarily | ||
disable this validation, add the 'novalidate' attribute: | ||
{{ form_start(form, {method: ..., action: ..., attr: {novalidate: 'novalidate'}}) }} | ||
#} | ||
|
||
{{ form_start(form, {method: 'POST', action: path('comment_new', {'postSlug': post.slug})}) }} | ||
{# instead of displaying form fields one by one, you can also display them | ||
all with their default options and styles just by calling to this function: | ||
{{ form_widget(form) }} | ||
#} | ||
|
||
<fieldset> | ||
<legend> | ||
<i class="fa fa-comment" aria-hidden="true"></i> {{ 'title.add_comment'|trans }} | ||
</legend> | ||
|
||
{# Render any global form error (e.g. when a constraint on a public getter method failed) #} | ||
{{ form_errors(form) }} | ||
|
||
<div class="form-group {% if not form.content.vars.valid %}has-error{% endif %}"> | ||
{{ form_label(form.content, 'label.content', {label_attr: {class: 'sr-only'}}) }} | ||
|
||
{# Render any errors for the "content" field (e.g. when a class property constraint failed) #} | ||
{{ form_errors(form.content) }} | ||
|
||
{{ form_widget(form.content, {attr: {rows: 10}}) }} | ||
{{ form_help(form.content) }} | ||
</div> | ||
|
||
<div class="form-group"> | ||
<button class="btn btn-primary float-right" type="submit"> | ||
<i class="fa fa-paper-plane" aria-hidden="true"></i> {{ 'action.publish_comment'|trans }} | ||
</button> | ||
</div> | ||
</fieldset> | ||
{{ form_end(form) }} | ||
<twig:blog:comment_form :form="form" :post="post" /> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{# | ||
By default, forms enable client-side validation. This means that you can't | ||
test the server-side validation errors from the browser. To temporarily | ||
disable this validation, add the 'novalidate' attribute: | ||
{{ form_start(form, {method: ..., action: ..., attr: {novalidate: 'novalidate'}}) }} | ||
#} | ||
|
||
{% props form, post %} | ||
|
||
{{ form_start(form, {method: 'POST', action: path('comment_new', {'postSlug': post.slug})}) }} | ||
{# instead of displaying form fields one by one, you can also display them | ||
all with their default options and styles just by calling to this function: | ||
{{ form_widget(form) }} | ||
#} | ||
|
||
<fieldset> | ||
<legend> | ||
<i class="fa fa-comment" aria-hidden="true"></i> {{ 'title.add_comment'|trans }} | ||
</legend> | ||
|
||
{# Render any global form error (e.g. when a constraint on a public getter method failed) #} | ||
{{ form_errors(form) }} | ||
|
||
<div class="form-group {% if not form.content.vars.valid %}has-error{% endif %}"> | ||
{{ form_label(form.content, 'label.content', {label_attr: {class: 'sr-only'}}) }} | ||
|
||
{# Render any errors for the "content" field (e.g. when a class property constraint failed) #} | ||
{{ form_errors(form.content) }} | ||
|
||
{{ form_widget(form.content, {attr: {rows: 10}}) }} | ||
{{ form_help(form.content) }} | ||
</div> | ||
|
||
<div class="form-group"> | ||
<button class="btn btn-primary float-right" type="submit"> | ||
<i class="fa fa-paper-plane" aria-hidden="true"></i> {{ 'action.publish_comment'|trans }} | ||
</button> | ||
</div> | ||
</fieldset> | ||
{{ form_end(form) }} |