Commit
commit e253bd53ffc39fbe4ccfafd224a8d01d5dbafbfa Author: Jan DankertDate: Sun Sep 27 04:09:05 2020 +0200 Refactoring: The tree functions should use normal templates as the other actions. Beware of the JS hell. modules/cms/model/ModelFactory.class.php | 12 +- modules/cms/ui/action/IndexAction.class.php | 28 +- modules/cms/ui/action/TreeAction.class.php | 25 +- .../themes/default/html/views/element/advanced.php | 8 +- .../ui/themes/default/html/views/element/name.php | 8 +- .../ui/themes/default/html/views/element/prop.php | 8 +- .../default/html/views/element/properties.php | 8 +- .../themes/default/html/views/element/remove.php | 8 +- .../ui/themes/default/html/views/file/advanced.php | 8 +- .../ui/themes/default/html/views/file/compress.php | 8 +- .../cms/ui/themes/default/html/views/file/edit.php | 10 +- .../ui/themes/default/html/views/file/extract.php | 8 +- .../cms/ui/themes/default/html/views/file/info.php | 8 +- .../cms/ui/themes/default/html/views/file/pub.php | 8 +- .../ui/themes/default/html/views/file/remove.php | 8 +- .../themes/default/html/views/file/uncompress.php | 8 +- .../ui/themes/default/html/views/file/value.php | 8 +- .../themes/default/html/views/folder/advanced.php | 10 +- .../ui/themes/default/html/views/folder/create.php | 14 +- .../default/html/views/folder/createfile.php | 8 +- .../default/html/views/folder/createfolder.php | 8 +- .../default/html/views/folder/createimage.php | 8 +- .../default/html/views/folder/createlink.php | 8 +- .../default/html/views/folder/createpage.php | 8 +- .../default/html/views/folder/createtext.php | 8 +- .../themes/default/html/views/folder/createurl.php | 8 +- .../ui/themes/default/html/views/folder/edit.php | 2 +- .../themes/default/html/views/folder/inherit.php | 8 +- .../ui/themes/default/html/views/folder/order.php | 8 +- .../ui/themes/default/html/views/folder/pub.php | 8 +- .../ui/themes/default/html/views/folder/remove.php | 8 +- .../cms/ui/themes/default/html/views/group/add.php | 8 +- .../ui/themes/default/html/views/group/info.php | 8 +- .../default/html/views/group/memberships.php | 8 +- .../ui/themes/default/html/views/group/prop.php | 8 +- .../ui/themes/default/html/views/group/remove.php | 8 +- .../ui/themes/default/html/views/group/rights.php | 2 +- .../ui/themes/default/html/views/grouplist/add.php | 8 +- .../themes/default/html/views/grouplist/show.php | 2 +- .../themes/default/html/views/image/compress.php | 8 +- .../ui/themes/default/html/views/image/edit.php | 8 +- .../ui/themes/default/html/views/image/extract.php | 8 +- .../cms/ui/themes/default/html/views/image/pub.php | 8 +- .../ui/themes/default/html/views/image/size.php | 8 +- .../themes/default/html/views/image/uncompress.php | 8 +- .../ui/themes/default/html/views/image/value.php | 8 +- .../themes/default/html/views/index/manifest.php | 1 + .../default/html/views/index/manifest.tpl.src.xml | 4 + .../index.php => html/views/index/show.php} | 2 +- .../themes/default/html/views/index/themestyle.php | 1 + .../html/views/index/themestyle.tpl.src.xml | 4 + .../ui/themes/default/html/views/language/add.php | 8 +- .../ui/themes/default/html/views/language/info.php | 8 +- .../ui/themes/default/html/views/language/prop.php | 8 +- .../themes/default/html/views/language/remove.php | 8 +- .../themes/default/html/views/languagelist/add.php | 8 +- .../default/html/views/languagelist/show.php | 2 +- .../cms/ui/themes/default/html/views/link/edit.php | 8 +- .../ui/themes/default/html/views/link/remove.php | 8 +- .../ui/themes/default/html/views/login/login.php | 8 +- .../ui/themes/default/html/views/login/openid.php | 8 +- .../themes/default/html/views/login/password.php | 8 +- .../default/html/views/login/passwordcode.php | 8 +- .../themes/default/html/views/login/register.php | 8 +- .../default/html/views/login/registercode.php | 8 +- .../ui/themes/default/html/views/model/info.php | 8 +- .../ui/themes/default/html/views/model/prop.php | 8 +- .../ui/themes/default/html/views/model/remove.php | 8 +- .../ui/themes/default/html/views/modellist/add.php | 8 +- .../themes/default/html/views/modellist/show.php | 2 +- .../themes/default/html/views/object/aclform.php | 8 +- .../ui/themes/default/html/views/object/copy.php | 12 +- .../ui/themes/default/html/views/object/info.php | 14 +- .../themes/default/html/views/object/inherit.php | 8 +- .../ui/themes/default/html/views/object/name.php | 8 +- .../ui/themes/default/html/views/object/prop.php | 8 +- .../ui/themes/default/html/views/object/rights.php | 4 +- .../themes/default/html/views/object/settings.php | 8 +- .../default/html/views/page/changetemplate.php | 8 +- .../views/page/changetemplateselectelements.php | 8 +- .../cms/ui/themes/default/html/views/page/form.php | 8 +- .../cms/ui/themes/default/html/views/page/info.php | 12 +- .../cms/ui/themes/default/html/views/page/name.php | 8 +- .../ui/themes/default/html/views/page/preview.php | 8 +- .../cms/ui/themes/default/html/views/page/pub.php | 8 +- .../ui/themes/default/html/views/page/remove.php | 8 +- .../cms/ui/themes/default/html/views/page/src.php | 8 +- .../default/html/views/pageelement/advanced.php | 4 +- .../themes/default/html/views/pageelement/diff.php | 12 +- .../themes/default/html/views/pageelement/edit.php | 2 +- .../default/html/views/pageelement/export.php | 8 +- .../default/html/views/pageelement/history.php | 12 +- .../default/html/views/pageelement/import.php | 8 +- .../themes/default/html/views/pageelement/link.php | 8 +- .../themes/default/html/views/pageelement/prop.php | 8 +- .../themes/default/html/views/pageelement/pub.php | 8 +- .../default/html/views/pageelement/value.php | 8 +- .../default/html/views/profile/confirmmail.php | 8 +- .../ui/themes/default/html/views/profile/edit.php | 10 +- .../ui/themes/default/html/views/profile/mail.php | 10 +- .../ui/themes/default/html/views/profile/pw.php | 8 +- .../ui/themes/default/html/views/project/add.php | 8 +- .../themes/default/html/views/project/export.php | 8 +- .../ui/themes/default/html/views/project/info.php | 8 +- .../default/html/views/project/maintenance.php | 8 +- .../ui/themes/default/html/views/project/prop.php | 8 +- .../themes/default/html/views/project/remove.php | 8 +- .../themes/default/html/views/projectlist/add.php | 8 +- .../themes/default/html/views/projectlist/edit.php | 2 +- .../ui/themes/default/html/views/search/edit.php | 8 +- .../default/html/views/start/projectmenu.php | 8 +- .../themes/default/html/views/template/addel.php | 8 +- .../ui/themes/default/html/views/template/edit.php | 4 +- .../default/html/views/template/extension.php | 10 +- .../themes/default/html/views/template/preview.php | 8 +- .../ui/themes/default/html/views/template/prop.php | 8 +- .../ui/themes/default/html/views/template/pub.php | 8 +- .../themes/default/html/views/template/remove.php | 8 +- .../ui/themes/default/html/views/template/src.php | 8 +- .../default/html/views/template/srcelement.php | 8 +- .../themes/default/html/views/templatelist/add.php | 8 +- .../default/html/views/templatelist/show.php | 2 +- .../ui/themes/default/html/views/text/compress.php | 8 +- .../cms/ui/themes/default/html/views/text/edit.php | 8 +- .../ui/themes/default/html/views/text/extract.php | 8 +- .../cms/ui/themes/default/html/views/text/pub.php | 8 +- .../cms/ui/themes/default/html/views/text/size.php | 8 +- .../themes/default/html/views/text/uncompress.php | 8 +- .../ui/themes/default/html/views/text/value.php | 8 +- .../ui/themes/default/html/views/title/show.php | 74 +- .../ui/themes/default/html/views/tree/branch.php | 17 + .../default/html/views/tree/branch.tpl.src.xml | 17 + .../cms/ui/themes/default/html/views/tree/path.php | 19 + .../default/html/views/tree/path.tpl.src.xml | 21 + .../cms/ui/themes/default/html/views/url/edit.php | 8 +- .../ui/themes/default/html/views/url/remove.php | 8 +- .../cms/ui/themes/default/html/views/user/add.php | 8 +- .../cms/ui/themes/default/html/views/user/info.php | 12 +- .../themes/default/html/views/user/memberships.php | 8 +- .../cms/ui/themes/default/html/views/user/prop.php | 8 +- .../cms/ui/themes/default/html/views/user/pw.php | 8 +- .../ui/themes/default/html/views/user/remove.php | 8 +- .../ui/themes/default/html/views/user/rights.php | 2 +- .../ui/themes/default/html/views/userlist/add.php | 8 +- .../ui/themes/default/html/views/userlist/show.php | 2 +- modules/cms/ui/themes/default/script/openrat.js | 86 +- .../cms/ui/themes/default/script/openrat.min.js | 18 +- .../cms/ui/themes/default/script/openrat/common.js | 29 +- .../default/script/plugin/jquery-plugin-orTree.js | 53 +- .../ui/themes/default/style/openrat-workbench.less | 2 +- modules/cms/ui/themes/default/style/openrat.css | 2 +- .../cms/ui/themes/default/style/openrat.min.css | 2 +- .../components/html/image/Image.class.php | 10 +- .../components/html/link/Link.class.php | 5 +- .../components/html/part/Part.class.php | 3 +- .../components/html/set/Set.class.php | 2 +- modules/template_engine/components/template.xsd | 1579 +------------------- modules/template_engine/element/Value.class.php | 8 +- .../engine/TemplateEngine.class.php | 2 +- modules/util/Tree.class.php | 10 +- 160 files changed, 768 insertions(+), 2294 deletions(-)