Hello Grav Community,
can somebody please briefly list the steps that are required to add some buttons to an admin page?
I’ve added a new page and menu to the admin plugin (similar as it’s done in the comments plugin), but placing the following in the templates .html.yaml file (which has been copied from the comments plugin) doesn’t display anything, so I guess something is missing:
{% block titlebar %}
<div class="button-bar">
<a class="button" href="{{ base_url_relative }}/myplugin"><i class="fa fa-arrow-left"></i> {{ "MYPLUGIN.BTN_NEW"|tu }}</a>
<button class="button" type="submit" name="task" value="save" form="blueprints"><i class="fa fa-check"></i> {{ "MYPLUGIN.BTN_SAVE"|tu }}</button>
</div>
<h1><i class="fa fa-fw fa-plug"></i> {{ "MYPLUGIN.TITLE"|tu }}: {{ plugin.name|e }}</h1>
{% endblock %}
Any advise is welcome,
Thank you.