Skip to content

[ENH][UX] Adding an option in the trackers so the title of a text field is...

Bernard Sfez requested to merge bsfez/tiki:tracker-label-for-placholder into master

[ENH][UX] Adding an option in the trackers so the title of a text field is used as placeholder in the input field instead using the label and extra space.

Added a new option "labelasplaceholder" for tracker text field.

This is adding a placehorder in the input field of the tracker text field with the field name and use available width. It remove the then unnecessary label col It cancels the unnecessary samerow parameter as we don't use a label with the field name I placed more wisely the Mandatory star when this is used to keep it all in one line

I added a "labelasplaceholder" css class so it will be possible to redesign the input field where a placeholder is used.

// To do // Not sure about the error line found at line 2177, should it be placed also somewhere where samerow is not used to indicate the field name in case of error ? // .wikiplugin_tracker_name(f['fieldId'], tra(f['name']), $field_errors);

Tested in the tracker (including legacy), tracker plugin and plugin list. Tested with and without multilingual fields.

Screen_Shot_2021-07-01_at_10.24.29_

Screen_Shot_2021-07-01_at_09.56.30_

Screen_Shot_2021-07-01_at_12.53.26_

Screen_Shot_2021-07-01_at_10.49.43_

They may be other places to add the idea for test field or may other fields.

Thanks for comments and suggestions.

Edited by Bernard Sfez

Merge request reports