Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

EZP-24626 As an editor I want to see content type description when editing content #292

Conversation

StephaneDiot
Copy link
Contributor

https://jira.ez.no/browse/EZP-24626

Description

A description of the content type should be shown when passing cursor over the header while editing or creating a content. On 'touch friendly' devices the description should be shown when tapping on header, and should unshow when tapping outside (the same rule has also been added for the technical infos).

Screencast

http://youtu.be/Y97RexOHWZo
(first part is 'touch friendly' emulated, second is like in a normal browser)

@StephaneDiot
Copy link
Contributor Author

ready for review @dpobel @mhyndle @yannickroger

@StephaneDiot StephaneDiot force-pushed the EZP-24626_Content_type_description_when_editing branch 2 times, most recently from 7bc8f11 to 4aaaf8d Compare July 28, 2015 15:44
@@ -53,6 +56,18 @@ YUI.add('ez-contenteditview', function (Y) {
}
});

this.after('activeChange', function (e) {
if ( e.newVal ) {
that._attachedViewEvents.push(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is perfectly usable here and given the complexity of the code, that would deserve an external method

@StephaneDiot StephaneDiot force-pushed the EZP-24626_Content_type_description_when_editing branch from 4aaaf8d to 76d296c Compare July 30, 2015 09:41
@glye
Copy link
Member

glye commented Jul 31, 2015

You can rebase on master to get rid of the ezrobot warning.

@StephaneDiot StephaneDiot force-pushed the EZP-24626_Content_type_description_when_editing branch from 76d296c to 5f8d233 Compare August 3, 2015 08:19
<div class="ez-infos">
<ul class="ez-technical-infos">
<li>{{ contentType.names.[eng-GB] }}</li>
<li>Created by {{ owner.name }}</li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a translateable string?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be because it is ContentInfo object underneath, if so something we would have to fix later. Or @StephaneDiot ?

@glye
Copy link
Member

glye commented Aug 12, 2015

+1 apart from question above.

@andrerom
Copy link
Contributor

+1

* @protected
* @param {Object} e event facade
*/
_removeInfos: function (e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a very bad name (and description in the comment). This method does not remove anything, it sets an event handler on the clickoutside event that will hide the infos. So please rename it to something like _addClickoutsideInfoHandler and use _hideDetails instead of reimplementing it in an anonymous function.

@StephaneDiot StephaneDiot force-pushed the EZP-24626_Content_type_description_when_editing branch from 5f8d233 to cd11ee6 Compare August 27, 2015 10:14
@StephaneDiot
Copy link
Contributor Author

updated ! @dpobel

@dpobel
Copy link
Contributor

dpobel commented Aug 27, 2015

+1

StephaneDiot added a commit that referenced this pull request Aug 27, 2015
…ription_when_editing

EZP-24626 As an editor I want to see content type description when editing content
@StephaneDiot StephaneDiot merged commit 9fb2a7a into ezsystems:master Aug 27, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
4 participants