openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 9afb07102a74b80bf22a30ac7251bd9598b2d29c
parent 45a9e494165b188bee50f9576ce210b7bfaca227
Author: Jan Dankert <devnull@localhost>
Date:   Wed, 31 Oct 2012 10:10:28 +0100

Views zur Templatebearbeitung: Info und Prop jetzt mit Inhalt.

Diffstat:
action/TemplateAction.class.php | 12+++---------
themes/default/templates/template/info.tpl.src.xml | 21+++++++++++++++++++++
themes/default/templates/template/name.tpl.src.xml | 39---------------------------------------
themes/default/templates/template/pages.tpl.src.xml | 22----------------------
themes/default/templates/template/prop.tpl.src.xml | 45++++++++++++++++++++++++++++++++++++++++++++-
5 files changed, 68 insertions(+), 71 deletions(-)

diff --git a/action/TemplateAction.class.php b/action/TemplateAction.class.php @@ -112,7 +112,7 @@ class TemplateAction extends Action // Speichern der Template-Eigenschaftens // - function namePost() + function propPost() { if ($this->getRequestVar('name') == "") @@ -158,7 +158,7 @@ class TemplateAction extends Action /** * Anzeigen aller Seiten der Vorlage. */ - function pagesView() + function infoView() { $pages = array(); $pageids = $this->template->getDependentObjectIds(); @@ -238,16 +238,10 @@ class TemplateAction extends Action - function propView() - { - } - - - /** * Eigenschaften einer Vorlage anzeigen */ - function nameView() + function propView() { $this->setTemplateVar('name' ,$this->template->name ); $this->setTemplateVar('extension',$this->template->extension ); diff --git a/themes/default/templates/template/info.tpl.src.xml b/themes/default/templates/template/info.tpl.src.xml @@ -0,0 +1,20 @@ +<output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> + <table> + <row class="headline"> + <column> + <text key="pages"></text> + </column> + </row> + <list list="pages" value="name" key="pageid"> + <row class="data"> + <column> + <image icon="page"></image> + <link action="main" subaction="page" id="var:pageid" target="cms_main"> + <text var="name"></text> + </link> + </column> + </row> + </list> + </table> +</output>+ \ No newline at end of file diff --git a/themes/default/templates/template/name.tpl.src.xml b/themes/default/templates/template/name.tpl.src.xml @@ -1,38 +0,0 @@ -<output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> - <header back="true" views="extension"></header> - <form> - <part class="line"> - <part class="label"> - <text text="TEMPLATE_NAME"></text> - </part> - <part class="input"> - <input name="name"></input> - </part> - </part> - <group></group> - - <part class="line"> - <part class="label"> - <text key="file_extension"></text> - </part> - <part class="input"> - <link action="template" subaction="extension"> - <text var="extension"></text> - </link> - </part> - </part> - - <part class="line"> - <part class="label"> - <text key="file_mimetype"></text> - </part> - <part class="input"> - <link action="template" subaction="extension"> - <text var="mime_type"></text> - </link> - </part> - </part> - - </form> -</output>- \ No newline at end of file diff --git a/themes/default/templates/template/pages.tpl.src.xml b/themes/default/templates/template/pages.tpl.src.xml @@ -1,21 +0,0 @@ -<output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> - <header back="true"></header> - <table> - <row class="headline"> - <column> - <text key="name"></text> - </column> - </row> - <list list="pages" value="name" key="pageid"> - <row class="data"> - <column> - <image icon="page"></image> - <link action="main" subaction="page" id="var:pageid" target="cms_main"> - <text var="name"></text> - </link> - </column> - </row> - </list> - </table> -</output>- \ No newline at end of file diff --git a/themes/default/templates/template/prop.tpl.src.xml b/themes/default/templates/template/prop.tpl.src.xml @@ -1,4 +1,47 @@ <output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> - <header views="name,extension,pages"></header> + <header views="extension"></header> + <form> + <part class="line"> + <part class="label"> + <text text="TEMPLATE_NAME"></text> + </part> + <part class="input"> + <input name="name"></input> + </part> + </part> + <group></group> + + <part class="line"> + <part class="label"> + <text key="file_extension"></text> + </part> + <part class="input"> + <link type="view" subaction="extension"> + <part class="inputholder"> + <text var="extension"></text> + </part> + </link> + <part class="clickable"> + <link class="action" type="view" subaction="extension"> + <text key="edit"></text> + </link> + </part> + </part> + </part> + + <part class="line"> + <part class="label"> + <text key="file_mimetype"></text> + </part> + <part class="input"> + <link action="template" subaction="extension"> + <part class="inputholder"> + <text var="mime_type"></text> + </part> + </link> + </part> + </part> + + </form> </output> \ No newline at end of file