3
1

edit.php 821 B

1234567891011121314151617181920212223242526
  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' => $templateIndex]) ?>">
  6. <?= $this->form->csrf() ?>
  7. <div class="form-group">
  8. <label for="form-content">
  9. <?= t('Template Content') ?>
  10. </label>
  11. <textarea name="content" id="form-content" class="form-textarea" rows="20" style="width:100%; font-family: monospace;"><?= $templateContent ?></textarea>
  12. </div>
  13. <div class="form-actions">
  14. <button type="submit" class="btn btn-blue">
  15. <?= t("Save") ?>
  16. </button>
  17. <?= $this->url->link(t("Cancel"), "TemplateController", "show", ["plugin" => "OMITemplateModder"], false, "btn") ?>
  18. </div>
  19. </form>