edit.php 757 B

1234567891011121314151617181920
  1. <div class="page-header">
  2. <h2><?= $title ?></h2>
  3. <h3><?= $subtitle ?></h3>
  4. </div>
  5. <form method="post" action="<?= $this->url->href('TemplateController', 'save', ['plugin' => 'OMITemplateModder', 'template_index' => $template_index]) ?>">
  6. <?= $this->form->csrf() ?>
  7. <div class="form-group">
  8. <label for="form-content">Template Content</label>
  9. <textarea name="content" id="form-content" class="form-textarea" rows="20" style="width:100%;font-family:monospace;"><?= $template_content ?></textarea>
  10. </div>
  11. <div class="form-actions">
  12. <button type="submit" class="btn btn-blue">Save</button>
  13. <?= $this->url->link(t("Cancel"), "TemplateController", "show", ["plugin" => "OMITemplateModder"], false, "btn") ?>
  14. </div>
  15. </form>