openrat-cms

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

commit b7773ddcf351015751a71c7d61f5e08510c003e6
parent 04ea8f3ee608bb21cd42f0f09620e2f7b619e20f
Author: Jan Dankert <devnull@localhost>
Date:   Tue, 19 Dec 2017 22:40:27 +0100

HTML-Formular eingerückt ausgeben.

Diffstat:
modules/template-engine/components/html/form/Form.class.php | 27++++++++++-----------------
1 file changed, 10 insertions(+), 17 deletions(-)

diff --git a/modules/template-engine/components/html/form/Form.class.php b/modules/template-engine/components/html/form/Form.class.php @@ -68,28 +68,21 @@ class FormComponent extends Component { $label = $this->htmlvalue($this->label); - // Fällt demnächst weg: - echo <<<HTML + echo '<div class="bottom">'; + echo "<div class=\"command {$this->visible}\">"; -<div class="bottom"> - <div class="command {$this->visible}"> - - <input type="button" class="submit ok" value="{$label}" onclick="$(this).closest('div.sheet').find('form').submit(); " /> - - <!-- Cancel-Button nicht anzeigen, wenn cancel==false. --> -HTML; + echo "<input type=\"button\" class=\"submit ok\" value=\"{$label}\" onclick=\"$(this).closest('div.sheet').find('form').submit(); \" />"; + + // Cancel-Button nicht anzeigen, wenn cancel==false. if ($this->cancel) { echo '<input type="button" class="submit cancel" value="<?php echo lang("CANCEL") ?>" onclick="' . "$(div#dialog').hide(); $('div#filler').fadeOut(500); $(this).closest('div.panel').find('ul.views > li.active').click();" . '" />'; - } - echo <<<HTML - </div> -</div> + } + echo '</div>'; + echo '</div>'; + echo '</form>'; -</form> - -HTML; - } + } } ?> \ No newline at end of file