openrat-cms

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

commit 7e4393a9fa27dda3471b9d2ea1d906f839fe9283
parent 9352e2dfe484d3e24d40b0cf1d225488263a45a8
Author: Jan Dankert <devnull@localhost>
Date:   Mon, 26 Nov 2018 23:43:26 +0100

Überflüssige Eingabefelder aus Eigenschaften-Dialog entfernt.

Diffstat:
modules/cms-ui/themes/default/html/views/folder/prop.php | 22++++------------------
modules/cms-ui/themes/default/html/views/folder/prop.tpl.src.xml | 17+++--------------
2 files changed, 7 insertions(+), 32 deletions(-)

diff --git a/modules/cms-ui/themes/default/html/views/folder/prop.php b/modules/cms-ui/themes/default/html/views/folder/prop.php @@ -1,24 +1,10 @@ - - <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" class="or-form folder" data-async="" data-autosave=""><input type="hidden" name="<?php echo REQ_PARAM_EMBED ?>" value="1" /><input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /><input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="folder" /><input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="prop" /><input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> - <input type="hidden" name="languageid" value="<?php echo $languageid ?>"/> - - <div class="line"> - <div class="label"> - <label for="<?php echo REQUEST_ID ?>_name" class="label"><?php echo lang('global_name') ?> - </label> - </div> - <div class="input"> - <div class="inputholder"><input id="<?php echo REQUEST_ID ?>_name" name="<?php if ('') echo ''.'_' ?>name<?php if ('') echo '_disabled' ?>" type="text" maxlength="256" class="name,focus" value="<?php echo Text::encodeHtml(@$name) ?>" /><?php if ('') { ?><input type="hidden" name="name" value="<?php $name ?>"/><?php } ?></div> - - </div> - </div> - <label class="or-form-row"><span class="or-form-label">Dateiname</span><span class="or-form-input"><div class="inputholder"><input id="<?php echo REQUEST_ID ?>_filename" name="<?php if ('') echo ''.'_' ?>filename<?php if ('') echo '_disabled' ?>" autofocus="autofocus" type="text" maxlength="150" class="filename" value="<?php echo Text::encodeHtml(@$filename) ?>" /><?php if ('') { ?><input type="hidden" name="filename" value="<?php $filename ?>"/><?php } ?></div></span></label> - - <label class="or-form-row"><span class="or-form-label">Beschreibung</span><span class="or-form-input"><div class="inputholder"><textarea class="description" name="<?php if ('') echo ''.'_' ?>description<?php if ('') echo '_disabled' ?>"><?php echo Text::encodeHtml($description) ?></textarea></div></span></label> - + <fieldset class="toggle-open-close<?php echo '1'?" open":" closed" ?><?php echo '1'?" show":"" ?>"><legend class="on-click-open-close"><div class="arrow arrow-right on-closed"></div><div class="arrow arrow-down on-open"></div><?php echo lang('global_prop') ?></legend><div> + <label class="or-form-row"><span class="or-form-label">Dateiname</span><span class="or-form-input"><div class="inputholder"><input id="<?php echo REQUEST_ID ?>_filename" name="<?php if ('') echo ''.'_' ?>filename<?php if ('') echo '_disabled' ?>" autofocus="autofocus" type="text" maxlength="150" class="filename" value="<?php echo Text::encodeHtml(@$filename) ?>" /><?php if ('') { ?><input type="hidden" name="filename" value="<?php $filename ?>"/><?php } ?></div></span></label> + + </div></fieldset> <?php foreach($names as $list_key=>$list_value){ ?><?php extract($list_value) ?> <fieldset class="toggle-open-close<?php echo $languageIsDefault?" open":" closed" ?><?php echo '1'?" show":"" ?>"><legend class="on-click-open-close"><div class="arrow arrow-right on-closed"></div><div class="arrow arrow-down on-open"></div><?php echo $languageName ?></legend><div> <?php $$languageName= $name; ?> diff --git a/modules/cms-ui/themes/default/html/views/folder/prop.tpl.src.xml b/modules/cms-ui/themes/default/html/views/folder/prop.tpl.src.xml @@ -1,22 +1,11 @@ <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></header> <form label="message:global_save"> - <hidden name="languageid" /> - <part class="line"> - <part class="label"> - <label for="name" key="global_name" /> - </part> - <part class="input"> - <input name="name" class="name,focus"></input> - </part> - </part> - - <input name="filename" label="global_filename" class="filename" maxlength="150" focus="true" /> - - <inputarea label="global_description" name="description" class="description"></inputarea> + <group title="message:global_prop"> + <input name="filename" label="global_filename" class="filename" maxlength="150" focus="true" /> + </group> <list list="names" extract="true">