+ ajax-delete comments via front end (if logged in with super admin priviledges)
This commit is contained in:
parent
b4ab9a5111
commit
905c04937c
5 changed files with 278 additions and 43 deletions
|
@ -1,5 +1,4 @@
|
|||
<h3>{{'PLUGIN_COMMENTS.ADD_COMMENT'|t}}</h3>
|
||||
<form name="{{ grav.config.plugins.comments.form.name }}" class="comments-form"
|
||||
<form id="comments-form" name="{{ grav.config.plugins.comments.form.name }}" class="comments-form"
|
||||
action="{{ grav.config.plugins.comments.form.action ? base_url ~ grav.config.plugins.comments.form.action : page.url }}"
|
||||
method="{{ grav.config.plugins.comments.form.method|upper|default('POST') }}">
|
||||
|
||||
|
@ -35,4 +34,4 @@
|
|||
{{ nonce_field('comments', 'form-nonce')|raw }}
|
||||
</form>
|
||||
|
||||
<div class="alert">{{ form.message }}</div>
|
||||
<div id="comments-alert" class="alert">{{ form.message }}</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue