{% set entry = adv %} {% set entry_type = get_class(entry.getObject()) %} {% if app.auth.id %} {% set form = form('comments', 'comments').actions({'save':{}}).url(url_route('comments::save_comment')).get() %} {{ form.open({ 'class': 'commentformajax mb-4'})|raw }}
{{ form.fields.rating.label|raw }}   
{% if auth_check() %} {{ form.fields.username.setValue(auth_user().name()).setAttributes({'required' :true, 'readonly': true})|raw }} {% else %} {{ form.fields.username.setAttributes({'required' :true,})|raw }} {% endif %}
{{ form.fields.title.setAttributes({'required' :true,})|raw }}
{{ form.fields.detail.setAttributes({'required' :true,})|raw }}
{{ form.close|raw }} {% endif %} {% for comment in getComments(entry_type, entry.id) %}
{{ comment.created_by.name() }}

{{ comment.title }}

{{ comment.detail }}

{% endfor %}
{{ asset_add("scripts.js", "visiosoft.module.comments::js/rateyo.min.js") }} {{ asset_add("scripts.js", "visiosoft.module.comments::js/ajaxcomment.js") }} {{ asset_add("scripts.js", "visiosoft.module.comments::js/rateyoVisiosoft.js") }} {{ asset_add("styles.css", "visiosoft.module.comments::css/rateyo.css") }} {{ asset_add("styles.css", "visiosoft.module.comments::css/style.css") }}