openrat-cms

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

commit a7d87edcfbd36f49f994c22c4967797580c49fac
parent 54a744c488c710e97430fd7fcc92b81571e1dc83
Author: Jan Dankert <devnull@localhost>
Date:   Wed, 29 Aug 2018 22:56:26 +0200

Umbenennung: Standardmethode heißt 'edit', nicht 'show'.

Diffstat:
modules/cms-ui/themes/default/html/views/projectlist/edit.php | 38++++++++++++++++++++++++++++++++++++++
modules/cms-ui/themes/default/html/views/projectlist/edit.tpl.src.xml | 30++++++++++++++++++++++++++++++
modules/cms-ui/themes/default/html/views/projectlist/show.tpl.src.xml | 30------------------------------
3 files changed, 68 insertions(+), 30 deletions(-)

diff --git a/modules/cms-ui/themes/default/html/views/projectlist/edit.php b/modules/cms-ui/themes/default/html/views/projectlist/edit.php @@ -0,0 +1,37 @@ + + + + + <table width="100%"> + <tr class="headline"> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'name'.'')))); ?></span> + + </td> + </tr> + <?php foreach($projects as $list_key=>$list_value){ ?><?php extract($list_value) ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" date-name="<?php echo $name ?>" name="<?php echo $name ?>" data-type="open" data-action="project" data-method="edit" data-id="<?php echo $id ?>" data-extra="[]" href="<?php echo Html::url('project','',$id,array()) ?>"> + <img class="" title="" src="./modules/cms-ui/themes/default/images/icon/icon_project.png" /> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $name,30,'..',constant('STR_PAD_BOTH') )))); ?></span> + + </a> + + </td> + </tr> + <?php } ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" date-name="<?php echo lang('new') ?>" name="<?php echo lang('new') ?>" data-type="dialog" data-action="" data-method="add" data-id="<?php echo OR_ID ?>" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="<?php echo Html::url('','add','',array('dialogAction'=>'','dialogMethod'=>'add')) ?>"> + <img class="" title="" src="./modules/cms-ui/themes/default/images/icon/add.png" /> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('new')))); ?></span> + + </a> + + </td> + </tr> + </table> + + \ No newline at end of file diff --git a/modules/cms-ui/themes/default/html/views/projectlist/edit.tpl.src.xml b/modules/cms-ui/themes/default/html/views/projectlist/edit.tpl.src.xml @@ -0,0 +1,29 @@ +<output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.openrat.de/template ../../../../../../template-engine/components/template.xsd"> + <header views="add" /> + <table> + <row class="headline"> + <column> + <text key="name"></text> + </column> + </row> + <list list="projects" extract="true"> + <row class="data"> + <column class="clickable"> + <link type="open" id="var:id" name="var:name" action="project"> + <image file="icon_project"></image> + <text value="var:name" maxlength="30"></text> + </link> + </column> + </row> + </list> + <row class="data"> + <column class="clickable"> + <link type="dialog" subaction="add" name="message:new"> + <image icon="add" /> + <text text="new" /> + </link> + </column> + </row> + </table> +</output>+ \ No newline at end of file diff --git a/modules/cms-ui/themes/default/html/views/projectlist/show.tpl.src.xml b/modules/cms-ui/themes/default/html/views/projectlist/show.tpl.src.xml @@ -1,29 +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-engine/components/template.xsd"> - <header views="add" /> - <table> - <row class="headline"> - <column> - <text key="name"></text> - </column> - </row> - <list list="projects" extract="true"> - <row class="data"> - <column class="clickable"> - <link type="open" id="var:id" name="var:name" action="project"> - <image file="icon_project"></image> - <text value="var:name" maxlength="30"></text> - </link> - </column> - </row> - </list> - <row class="data"> - <column class="clickable"> - <link type="dialog" subaction="add" name="message:new"> - <image icon="add" /> - <text text="new" /> - </link> - </column> - </row> - </table> -</output>- \ No newline at end of file