aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/admin/plugin_download_form.php
diff options
context:
space:
mode:
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