mirror of
https://github.com/ThomasGsp/HyperProxmox.git
synced 2025-03-09 15:40:18 +00:00
22 lines
935 B
PHP
22 lines
935 B
PHP
<div class="container">
|
|
<h1>NoteController/edit/:note_id</h1>
|
|
|
|
<div class="box">
|
|
<h2>Edit a note</h2>
|
|
|
|
<!-- echo out the system feedback (error and success messages) -->
|
|
<?php $this->renderFeedbackMessages(); ?>
|
|
|
|
<?php if ($this->note) { ?>
|
|
<form method="post" action="<?php echo Config::get('URL'); ?>note/editSave">
|
|
<label>Change text of note: </label>
|
|
<!-- we use htmlentities() here to prevent user input with " etc. break the HTML -->
|
|
<input type="hidden" name="note_id" value="<?php echo htmlentities($this->note->note_id); ?>" />
|
|
<input type="text" name="note_text" value="<?php echo htmlentities($this->note->note_text); ?>" />
|
|
<input type="submit" value='Change' />
|
|
</form>
|
|
<?php } else { ?>
|
|
<p>This note does not exist.</p>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|