Skip to content

Commit

Permalink
"Save and continue editing" for Edit Field pages
Browse files Browse the repository at this point in the history
Resolves #2872
  • Loading branch information
brandonkelly committed Sep 11, 2020
1 parent 50da7fc commit 27cee8a
Show file tree
Hide file tree
Showing 2 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 @@ -3,6 +3,7 @@
## Unreleased

### Added
- Edit Field pages now have a “Save and continue editing” Save menu option, and the <kbd>Ctrl</kbd>/<kbd>Command</kbd> + <kbd>S</kbd> keyboard shortcut is now assigned to that. ([#2872](https://github.com/craftcms/cms/issues/2872))
- Added `craft\fields\data\OptionData::$valid`.
- Added `craft\web\Request::$generalConfig`.
- Added `craft\web\Request::$sites`.
Expand Down
8 changes: 8 additions & 0 deletions src/templates/settings/fields/_edit.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{% extends "_layouts/cp" %}
{% set fullPageForm = true %}
{% set formActions = [
{
label: 'Save and continue editing'|t('app'),
redirect: 'settings/fields/edit/{id}'|hash,
shortcut: true,
retainScroll: true,
},
] %}

{% import "_includes/forms" as forms %}

Expand Down

0 comments on commit 27cee8a

Please # to comment.