Skip to content

Commit

Permalink
"Save and continue editing" for section & entry type pages
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Nov 30, 2020
1 parent 42fc568 commit 1d293b6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

### Added
- Edit Section and Edit Entry Type 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))

### Changed
- The Username, First Name, Last Name, Email, and New Password fields on Edit User pages now prevent LastPass from autofilling them. ([#7177](https://github.com/craftcms/cms/issues/7177))
- Field layout elements’ settings HUDs now automatically set the focus on the first text input when opened. ([#7175](https://github.com/craftcms/cms/issues/7175))
Expand Down
8 changes: 8 additions & 0 deletions src/templates/settings/sections/_edit.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{% extends 'settings/sections/_layout' %}
{% set selectedTab = 'settings' %}
{% set fullPageForm = true %}
{% set formActions = [
{
label: 'Save and continue editing'|t('app'),
redirect: 'settings/sections/{id}'|hash,
shortcut: true,
retainScroll: true,
},
] %}

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

Expand Down
8 changes: 8 additions & 0 deletions src/templates/settings/sections/_entrytypes/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/sections/#{section.id}/entrytypes/{id}"|hash,
shortcut: true,
retainScroll: true,
},
] %}

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

Expand Down

0 comments on commit 1d293b6

Please # to comment.