Massive refactoring of "form_blocks.tpl" template

Components

Labels

Description

I have applied "design approach" to every form block in administrative console. This allows to use less HTML to create new blocks and even allow to use single table to place form blocks into 2 or more columns on same form.

Additionally some small improvements were made:

  • each block now have "title_text" parameter, that allows to specify field title in plain text (before only phrases can be used via "title" parameter)

  • blocks "inp_label", "inp_edit_box" now have "after_text" parameter, that allows to specify text, that should be displayed after control (e.g. measure unit after input field)

  • block "inp_edit_box" now can be used with FCKEditor

  • block "inp_edit_options" now also processes "style" parameter

  • block "inp_edit_checkboxes" now have "has_br" parameter, that allow to list each checkbox option at new line or one after another (as before)

Context Information

None

Additional information (do not use)

I recommend this task for 5.1.1 release, since whole "form_blocks.tpl" template is changed from top till bottom and we'll have many issues when we'll try to merge it later from further release.

Attachments

3

Activity

Dmitry Andrejev 
November 30, 2010 at 6:48 PM

Closing released 5.1.1 task.

Alex 
August 31, 2010 at 4:26 PM

Fix committed to [b]5.1.x branch/b. Commit Message:

Fixes #0000841: Massive refactoring of "form_blocks.tpl" template

Dmitry Andrejev 
August 31, 2010 at 4:23 PM

Reviewed and tested on different versions again - works well - please commit.

NOTE: most likely issue was with Windows font set to 125% which can't be controlled here.

Dmitry Andrejev 
August 30, 2010 at 12:40 AM

Reviewed and tested - everything seems to be well, BUT:

1. in FF (for sure) all New Catalog Items and Sections have less space for Title field and more for input one (see attachment).

Alex 
August 28, 2010 at 12:18 PM

Test, that nothing has been broken due refactoring. Optionally new block parameters could be tested as well.

Fixed

Details

Priority

Assignee

Reporter

Developer

External issue ID

External issue URL

Fix versions

Affects versions

Patch Instructions

Patches must be submitted through Phabricator.

Created August 28, 2010 at 12:15 PM
Updated December 29, 2024 at 9:16 PM
Resolved November 30, 2010 at 6:48 PM