Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:getgrav/grav-plugin-admin into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
rhukster committed Aug 20, 2021
2 parents c397f18 + e6e7a5d commit e5135ec
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Updated SCSS compiler to v1.6
2. [](#improved)
* Updated forms and nested fields to use new form logic
* Admin form now use layout `admin`, meaning you can create admin specific field templates by `forms/fields/myfield/admin-field.html.twig`
* Stop using `|tu` filter, Grav already has the same logic in `|t` for admin
* Remove unneeded escapes
* Allow removal of plugin when disabled [#2167](https://github.com/getgrav/grav-plugin-admin/issues/2167)
Expand Down
1 change: 1 addition & 0 deletions themes/grav/templates/partials/blueprints-copy.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% set form_id = form_id ? form_id : 'blueprints' %}
{% set scope = scope ?: 'data.' %}
{% set field_layout = 'admin' %}

<form {% if form_action %}action="{{ form_action }}"{% endif %} id="{{ form_id }}" method="post" data-grav-form="{{ form_id }}" {% if form.novalidate %}novalidate{% endif %} data-grav-keepalive="true">
{% embed 'forms/default/fields.html.twig' with {name: null, fields: blueprints.fields} %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% set form_id = form_id ? form_id : 'blueprints' %}
{% set scope = scope ?: 'data.' %}
{% set field_layout = 'admin' %}

<form {% if form_action %}action="{{ form_action }}"{% endif %} id="{{ form_id }}" method="post" data-grav-form="{{ form_id }}" data-grav-keepalive="true">
{% embed 'forms/default/fields.html.twig' with {name: null, fields: blueprints.fields} %}
Expand Down
1 change: 1 addition & 0 deletions themes/grav/templates/partials/blueprints-new.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% set form_id = form_id ? form_id : 'blueprints' %}
{% set scope = scope ?: 'data.' %}
{% set field_layout = 'admin' %}

<form {% if form_action %}action="{{ form_action }}"{% endif %} id="{{ form_id }}" method="post" data-grav-form="{{ form_id }}" {% if form.novalidate %}novalidate{% endif %} data-grav-keepalive="true">
{% embed 'forms/default/fields.html.twig' with {name: null, fields: blueprints.fields} %}
Expand Down
1 change: 1 addition & 0 deletions themes/grav/templates/partials/blueprints-raw.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% set form_id = form_id ? form_id : 'blueprints' %}
{% set scope = scope ?: 'data.' %}
{% set field_layout = 'admin' %}

{% if admin.findFormFields('file', blueprints.fields) %}
{% set multipart = ' enctype="multipart/form-data"' %}
Expand Down
1 change: 1 addition & 0 deletions themes/grav/templates/partials/blueprints.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{% set data = data ?? form.data %}
{% set form_id = form_id ?? 'blueprints' %}
{% set scope = scope ?: 'data.' %}
{% set field_layout = 'admin' %}

{% if admin.findFormFields('file', blueprints.fields) %}
{% set multipart = ' enctype="multipart/form-data"' %}
Expand Down
1 change: 1 addition & 0 deletions themes/grav/templates/partials/login.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends 'partials/base.html.twig' %}
{% set scope = form.scope %}
{% set field_layout = 'admin' %}

{% block messages %}{% endblock %}

Expand Down
1 change: 1 addition & 0 deletions themes/grav/templates/partials/page-move.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% set form_id = form_id ? form_id : 'page-move' %}
{% set scope = scope ?: 'data.' %}
{% set field_layout = 'admin' %}

<form id="{{ form_id }}" method="post" data-grav-form="{{ form_id }}" data-page-move>
<h1>Move</h1>
Expand Down
1 change: 1 addition & 0 deletions themes/grav/templates/partials/register.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends 'partials/base.html.twig' %}
{% set scope = form.scope %}
{% set field_layout = 'admin' %}

{% block body %}
<body id="admin-login-wrapper">
Expand Down

0 comments on commit e5135ec

Please sign in to comment.