openrat-cms

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

commit 67d4a6c660b2b3848358805e088c529b77db9b4d
parent 122ea7699b8a185938a410bff1e9cb465ec3174f
Author: Jan Dankert <devnull@localhost>
Date:   Sat, 16 Dec 2017 22:12:59 +0100

Dateiinhalte auch mit Code-Editor bearbeiten.

Diffstat:
themes/default/templates/file/value.tpl.out.php | 36++++++++++++++++++++++++++++++++++++
themes/default/templates/file/value.tpl.src.xml | 25++++++++++++++++++++++---
2 files changed, 58 insertions(+), 3 deletions(-)

diff --git a/themes/default/templates/file/value.tpl.out.php b/themes/default/templates/file/value.tpl.out.php @@ -0,0 +1,35 @@ + + + <form name="" target="_self" action="<?php echo OR_ACTION ?>" data-method="<?php echo OR_METHOD ?>" data-action="<?php echo OR_ACTION ?>" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" class="<?php echo OR_ACTION ?>" data-async="" data-autosave="" onSubmit="formSubmit( $(this) ); return false;"><input type="submit" class="invisible" /><input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /><input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo OR_ACTION ?>" /><input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo OR_METHOD ?>" /><input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> + + <tr> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_VALUE')))); ?></span> + + </td> + <td> + <textarea name="value" data-mode="html" class="editor__code-editor"><?php echo ${'value'} ?></textarea> + + </td> + </tr> + <tr> + <td class="act" colspan="2"> + <div class="invisible"><input type="submit" name="ok" class="%class%" + title="Best├Ątigen" + value="&nbsp;&nbsp;&nbsp;&nbsp;OK&nbsp;&nbsp;&nbsp;&nbsp;" /> + </div> + </td> + </tr> + + +<div class="bottom"> + <div class="command "> + + <input type="button" class="submit ok" value="OK" onclick="$(this).closest('div.sheet').find('form').submit(); " /> + + <!-- Cancel-Button nicht anzeigen, wenn cancel==false. --> </div> +</div> +</form> + + + + \ No newline at end of file diff --git a/themes/default/templates/file/value.tpl.src.xml b/themes/default/templates/file/value.tpl.src.xml @@ -1,3 +1,22 @@ <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"><dummy><form><window><row><column><text text="GLOBAL_VALUE"></text></column><column><inputarea rows="40" name="value" class="editor"></inputarea></column></row><row><column class="act" colspan="2"><button type="ok"></button></column></row></window></form><focus field="value"></focus></dummy></output>- \ No newline at end of file + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> + <form> + <window> + <row> + <column> + <text text="GLOBAL_VALUE"></text> + </column> + <column> + <editor name="value" type="code"></editor> + </column> + </row> + <row> + <column class="act" colspan="2"> + <button type="ok"></button> + </column> + </row> + </window> + </form> + <focus field="value"></focus> +</output>+ \ No newline at end of file