demianturner / sgl-docs-tickets-migration-test

0 stars 0 forks source link

Rename all templates with managerNameAction.html #395

Open demianturner opened 11 years ago

demianturner commented 11 years ago

Rename all templates so they have consistent naming. This will allow to automatically call the appropriate template for every managerName / action combination, e.g. in UserMgr, action Add, appropriate template is userAdd.html.

In the mean time, remove "name" option from all

tags, as "name" option is not allowed in xHTML 1.0 STRICT DOCTYPE.

Be carefull : have to change identification of nodes in all javascript functions. They often identify a node with a document.name, where we will need to identify it with a document.getElementById().

demianturner commented 11 years ago

[jcasanova] Auto load could go in SGL_Manager::process() just the one line like so $input->template = $className . $methodName . '.html'; on line 241 (AJ) If really needed, $output->template could be overwritten in manager::methodName()

demianturner commented 11 years ago

[jcasanova] This will be done in 0.7 as it will break BC.

  1. Templates renaming to $className . '_' . $methodName . '.html', i.e. MgrName_ActionName.html
  2. Admin task templates prepend with 'admin_' (already done in 0.5.6)
  3. Also cleanup js functions to use document.getElementById instead of document.formName
demianturner commented 11 years ago

[demian] Milestone 0.7.0 deleted