There is a disconnect in the UI between what you see on the Date Time Formats admin page and when you go to Manage Display for a date-time field.
The Formats page is only listing (with Standard install profile), 3 formats. Apparently, locked formats are excluded from listing, which is inconsistent with other admin pages. Gabor points out that also this means the locked formats have no entry point for translating.
Also, if you then go to Manage Display for a content type (or other entity) where you have a Date Time field, and want to choose a format, you see the unlocked and locked formats both, in some apparently random order, and the names do not match what you see on the Formats admin page.
This is very confusing. We were trying to write hook_help() for this module and it came up ... how would you explain this to a novice user? It really just needs to be fixed.
Comment | File | Size | Author |
---|---|---|---|
#12 | 2191189-datetime-ui-12.patch | 2.23 KB | vijaycs85 |
#9 | Screen Shot 2014-02-07 at 16.34.18.png | 46.31 KB | vijaycs85 |
#8 | Screen Shot 2014-02-07 at 16.22.44.png | 72.41 KB | vijaycs85 |
Comments
Comment #1
jhodgdonThis is blocking a critical issue so probably it should be at least major.
Comment #2
Gábor HojtsyThe same is true for languages, you cannot see the locked languages on the listing page but you can translate them and they are locked entities in the config system. The config translation module itself has overview screens (for those not having access to edit the original config) and *that* screen lists all regardless of locked-ness. I think this is mostly a UX question to answer to figure out the best way to do this.
Comment #3
vijaycs85I guess, there might be some reason for hiding, but this patch shows the locked datetime formats without any operations.
Comment #4
vijaycs85Here is the patch...
Comment #5
Gábor HojtsyLooking at the patch this sounds like it would display the translate operation if config translation is enabled? :)
Comment #6
jhodgdonThat screen shot looks promising, and the patch is nice and easy to understand!
Could you also patch the Manage Display list so it is ordered the same way (alphabetical)? See screen shot posted at https://drupal.org/files/issues/Menu_161.png on the Help issue.
Comment #7
jhodgdonI also think that it would be helpful for people to know why they don't have Edit operations for the locked formats. Maybe just putting "Locked" in the Operations column, or having a Status column?
Comment #8
vijaycs85#7: you mean like attached?
Comment #9
vijaycs85#6: like attached?
Comment #10
Gábor HojtsyDisplaying "Locked" in place of operations would not work because there may be operations on locked items, such as when enabling config translation module (as said above), which would already add the translation operation there, so locked ones would get operations but no edit/delete.
Comment #11
jhodgdonRE #8/9: Yes and Yes.
If a status column is not added, I'm just wondering if people would be confused about why there are no operations on some of the formats. I actually have no idea why some are locked anyway -- ???
And what are those "HTML" formats anyway? They look more like ISO formats than HTML formats?
Comment #12
vijaycs85#11: thanks for confirming. Here is the patch...
Comment #13
vijaycs85Making it is critical as this is blocking the critical #2091397: Create hook_help for Datetime module
Comment #14
vijaycs85Ok, closing this as duplicate of #2119903: Show locked date formats in the UI
Comment #15
jhodgdonSorry, but that other issue and this one are not the same at all?
Comment #16
catchI thought the same initially but I think the title of the other issue is misleading in terms of how it relates to this. All it's doing there is adding the uneditable system formats to the admin list - it doesn't change the validation at all which is what the title looks like.
Moving back to duplicate, but if you really think these are completely unrelated please re-open again, but would be good to have more details on why.
Comment #17
jhodgdonOh, you're right. I'll fix the other issue title.