diff options
| author | rubenwardy <rw@rubenwardy.com> | 2019-01-28 22:28:47 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2019-01-28 22:28:47 +0000 |
| commit | 034315d421c01c5524565d24e3f7fd3666a77ee1 (patch) | |
| tree | a6d8b381b27c6e1aeaaa6cd53670ab1d4aaaa1b8 /app/templates/packages/release_edit.html | |
| parent | 5cd8b35d1f58104b78ed31724e174c2b478f3498 (diff) | |
| download | cheatdb-034315d421c01c5524565d24e3f7fd3666a77ee1.tar.xz | |
Add notes about min/max, and hide invalid options
Diffstat (limited to 'app/templates/packages/release_edit.html')
| -rw-r--r-- | app/templates/packages/release_edit.html | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/app/templates/packages/release_edit.html b/app/templates/packages/release_edit.html index 32df306..2f69f2c 100644 --- a/app/templates/packages/release_edit.html +++ b/app/templates/packages/release_edit.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block title %} - Create a release | {{ package.title }} + Edit release | {{ package.title }} {% endblock %} {% block content %} @@ -39,12 +39,27 @@ Approved: {{ release.approved }} {% endif %} {% endif %} - + <div class="row"> {{ render_field(form.min_rel, class_="col-sm-6") }} {{ render_field(form.max_rel, class_="col-sm-6") }} </div> + <p id="minmax_warning" style="color:#f00; display: none;"> + Maximum must be greater than or equal to the minimum! + </p> + + <p> + Note: Min and max versions will be used to hide the package on + platforms not within the range. + You cannot selected the oldest version for min or the newest version + for max as this does not make sense - you can't predict the future. + </p> + {{ render_submit_field(form.submit) }} </form> {% endblock %} + +{% block scriptextra %} + <script src="/static/release_minmax.js?v=1"></script> +{% endblock %} |
