<div class="kode_comments margin">
<h4 class="comment_title">{{ "masjid.show.comment.leave"|trans }}</h4>
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
<form action="{{ path('comment_new', { 'masjidid': masjidid }) }}" method="POST" name="comment" class="comment-form">
{{ form_errors(form.content) }}
<div class="kode-left-comment-sec">
<div class="kf_commet_field">
<input placeholder="{{ app.user.name }}" name="author" type="text" value="" disabled size="30">
</div>
<div class="kf_commet_field">
<input placeholder="{{ app.user.email }}" name="email" type="text" value="" disabled size="30">
</div>
</div>
{{ form_widget(form.content) }}
<p class="form-submit"><input class="medium_btn theme_color_bg btn_hover" name="submit" type="submit" value="{{ "masjid.show.comment.submit"|trans }}"></p>
{{ form_rest(form) }}
</form>
{% else %}
<form method="post" action="{{path('app_login')}} ">
<h4 class="h3 mb-3 font-weight-normal">{{'Please sign in'|trans}}</h4>
<label for="inputEmail">{{'Email'|trans}}</label>
<input type="email" name="email" id="inputEmail" class="form-control" required>
<label for="inputPassword">{{'Password'|trans}}</label>
<input type="password" name="password" id="inputPassword" class="form-control" required>
<input type="hidden" name="_csrf_token"
value="{{ csrf_token('authenticate') }}"
>
<br>
<button class="btn btn-lg btn-nearest" type="submit">
{{'Sign in'|trans}}
</button>
</form>
{%endif%}
</div>