aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/admin/plugin_download_form.php
diff options
context:
space:
mode:
authorwinter2025-03-26 23:45:22 +0000
committerwinter2025-03-26 23:45:22 +0000
commitc26a1dca22fcced7b9cd37ace7a20ae71491fd66 (patch)
tree0e2f997428b85315a43df68e0b83aea8b970a97f /templates/admin/plugin_download_form.php
parenta05e8a564009ae7354f0b1ede5a69ed6d3c6e650 (diff)
add plugin admin page
Diffstat (limited to 'templates/admin/plugin_download_form.php')
-rw-r--r--templates/admin/plugin_download_form.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/admin/plugin_download_form.php b/templates/admin/plugin_download_form.php
new file mode 100644
index 0000000..2e9b2a8
--- /dev/null
+++ b/templates/admin/plugin_download_form.php
@@ -0,0 +1,16 @@
+<form class="pluginDownloadForm" hx-post="/fragment/admin/plugins/download" hx-target="this" hx-swap="outerHTML"
+ hx-disabled-elt="find button">
+ <div class="row">
+ <div class="column">
+ <label for="pluginUrl"><?= __('admin.plugins.download.url.label') ?></label>
+ <input type="url" id="pluginUrl" name="url" required autocomplete="off"
+ placeholder="<?= __('admin.plugins.download.url.placeholder') ?>">
+ </div>
+ <div class="column">
+ <button type="submit" class="primary"><?= __('admin.plugins.download.action') ?></button>
+ </div>
+ </div>
+ <?php if ($success ?? false): ?>
+ <span hidden _="on load js location.reload() end"></span>
+ <?php endif; ?>
+</form> \ No newline at end of file