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 | |
| parent | 5cd8b35d1f58104b78ed31724e174c2b478f3498 (diff) | |
| download | cheatdb-034315d421c01c5524565d24e3f7fd3666a77ee1.tar.xz | |
Add notes about min/max, and hide invalid options
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/packages/release_bulk_change.html | 15 | ||||
| -rw-r--r-- | app/templates/packages/release_edit.html | 19 | ||||
| -rw-r--r-- | app/templates/packages/release_new.html | 15 |
3 files changed, 47 insertions, 2 deletions
diff --git a/app/templates/packages/release_bulk_change.html b/app/templates/packages/release_bulk_change.html index 73d45e1..f416ada 100644 --- a/app/templates/packages/release_bulk_change.html +++ b/app/templates/packages/release_bulk_change.html @@ -24,6 +24,21 @@ {{ render_field(form.max_rel, class_="col-sm-10") }} </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 %} 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 %} diff --git a/app/templates/packages/release_new.html b/app/templates/packages/release_new.html index 32cc8d8..69fe91e 100644 --- a/app/templates/packages/release_new.html +++ b/app/templates/packages/release_new.html @@ -24,6 +24,21 @@ {{ 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 %} |
