Skip to content

Commit

Permalink
Merge pull request #432 from AdmiralGT/grt/upload-broken-banner
Browse files Browse the repository at this point in the history
Add a banner and disable the submit button on script upload while it'…
  • Loading branch information
AdmiralGT committed Aug 30, 2024
2 parents 202a443 + 45cfe5b commit 1ab7958
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/templates/upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

{% block content %}

<div class="alert alert-danger">
Script uploads are currently broken. Please do not attempt to upload scripts at this time.
</div>

<form method="post" enctype="multipart/form-data">
{% csrf_token %}
<div class="d-flex flex-row">
Expand All @@ -26,7 +30,7 @@
checked="checked"
{% endif %}
>
<span class="badge badge-pill {{ tag.style }} pt-1">{{ tag }}</span>
<span class="badge badge-pill {{ tag.style }} pt-1">{{ tag }}</span>
</label>
</div>
{% endfor %}
Expand All @@ -41,8 +45,8 @@
{% endif %}
</div>
{% buttons %}
<button type="submit" class="btn btn-primary m-1">Submit</button>
<button type="submit" class="btn btn-primary m-1" disabled>Submit</button>
{% endbuttons %}
</form>

{% endblock %}

0 comments on commit 1ab7958

Please sign in to comment.