Styles, scripts and page titles are no longer set from controllers level. Changed because it was breaking MVC pattern and led to spaghetti code. Also, optimized JS/CSS inclusions a bit.
21 lines
772 B
PHTML
21 lines
772 B
PHTML
<?php
|
|
LayoutHelper::addStylesheet('comment-edit.css');
|
|
LayoutHelper::addScript('comment-edit.js');
|
|
?>
|
|
|
|
<form action="<?php echo \Chibi\UrlHelper::route('comment', 'edit', ['id' => $this->context->transport->comment->id]) ?>" method="post" class="edit-comment aligned">
|
|
<h1>edit comment</h1>
|
|
|
|
<div class="preview"></div>
|
|
|
|
<div class="text">
|
|
<div class="input-wrapper"><textarea name="text" cols="50" rows="3"><?php echo TextHelper::secureWhitespace($this->context->transport->comment->text) ?></textarea></div>
|
|
</div>
|
|
|
|
<input type="hidden" name="submit" value="1"/>
|
|
|
|
<div>
|
|
<button name="sender" class="submit" type="submit" value="preview">Preview</button>
|
|
<button name="sender" class="submit" type="submit" value="submit">Submit</button>
|
|
</div>
|
|
</form>
|