When creating or editing content, the vertical tab summary always reads "Not published" and never changes regardless of the moderation state of the content or any of the options in the respective vertical tabs "drawer" (fieldset).

It should show the moderation state and if the log message has been changed or is missing. This patch implements that change.

Comments

ivantm’s picture

StatusFileSize
new2.68 KB

The use of <strong> tags in the vertical tab message string meant that the text appeared with an underline when clicked in the default Seven admin theme, which looked a bit odd. This patch leaves out the <strong> tags.

Bevan’s picture

Status: Needs review » Reviewed & tested by the community

Oh yeah. I was not sure about that. This looks good.

kbentham’s picture

This looks good, I will tell stevector to commit this soon.

hass’s picture

Status: Reviewed & tested by the community » Needs work

Bugs:

  • "Current:" cannot replaced if translated.
  • Never change case of translatable strings. This is always wrong. Don't use toLowerCase() on translatable strings.
hass’s picture

Title: Update the summary in the vertical tabs drawer » Update the summary in the vertical tabs
Status: Needs work » Needs review
StatusFileSize
new1.9 KB

Reduced patch to work how core works. I'm not sure what the intention was of the previous patch, but this one fixes that the other checkboxes on the form are also shown in the summary. It just uses the text from the selected option and that's it. This patch also adds the missing jquery wrapper that caused JS errors.

hass’s picture

Component: User interface » Code
hass’s picture

hass’s picture

Status: Needs review » Needs work
hass’s picture

Status: Needs work » Needs review
StatusFileSize
new1.89 KB

Status: Needs review » Needs work
hass’s picture

Status: Needs work » Needs review
StatusFileSize
new1.89 KB
hass’s picture

Issue tags: +Workbench Sprint
kbentham’s picture

Status: Needs review » Reviewed & tested by the community

This patch looks good.

stevector’s picture

Status: Reviewed & tested by the community » Fixed
hass’s picture

THX :-)

Automatically closed -- issue fixed for 2 weeks with no activity.