aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-12-21 14:10:46 +0000
committerrubenwardy <rw@rubenwardy.com>2018-12-21 14:10:46 +0000
commitc9bf7a32451069c0697c8a18dddad7aa1a2bd8af (patch)
tree5bee711244c8c0a34b00c898ea238f91bfed841c
parentdd368d87aa926ef2676b22ccee95934a38be7fac (diff)
downloadcheatdb-c9bf7a32451069c0697c8a18dddad7aa1a2bd8af.tar.xz
Add skip button to importerv1.10.1
-rw-r--r--app/public/static/package_create.js2
-rw-r--r--app/templates/packages/create_edit.html5
2 files changed, 5 insertions, 2 deletions
diff --git a/app/public/static/package_create.js b/app/public/static/package_create.js
index 86c5140..ac7b79f 100644
--- a/app/public/static/package_create.js
+++ b/app/public/static/package_create.js
@@ -11,6 +11,8 @@ $(function() {
$(".pkg_meta").hide()
$(".pkg_wiz_1").show()
+
+ $("#pkg_wiz_1_skip").click(finish)
$("#pkg_wiz_1_next").click(function() {
const repoURL = $("#repo").val();
if (repoURL.trim() != "") {
diff --git a/app/templates/packages/create_edit.html b/app/templates/packages/create_edit.html
index 4b855fc..fee73bd 100644
--- a/app/templates/packages/create_edit.html
+++ b/app/templates/packages/create_edit.html
@@ -51,13 +51,14 @@
<p>Enter the repo URL for the package.
If the repo uses git then the metadata will be automatically imported.</p>
- <p>Leave blank if you don't have a repo.</p>
+ <p>Leave blank if you don't have a repo. Click skip if the import fails.</p>
</div>
{{ render_field(form.repo, class_="pkg_repo") }}
<div class="pkg_wiz_1">
- <a id="pkg_wiz_1_next" class="button button-primary">Next</a>
+ <a id="pkg_wiz_1_next" class="button button-primary">Next (Autoimport)</a>
+ <a id="pkg_wiz_1_skip" class="button button-default">Skip Autoimport</a>
</div>
<div class="pkg_wiz_2">