From 2e90805e20f21c163274eafa3aaa874a91e0f30c Mon Sep 17 00:00:00 2001 From: Jiri Kyjovsky Date: Mon, 28 Aug 2023 15:40:20 +0200 Subject: [PATCH] frontend: reword priority=X info for better look --- frontend/coprs_frontend/coprs/forms.py | 3 +-- .../coprs_frontend/coprs/templates/coprs/_coprs_forms.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/coprs_frontend/coprs/forms.py b/frontend/coprs_frontend/coprs/forms.py index 21d27c637..3738759a2 100644 --- a/frontend/coprs_frontend/coprs/forms.py +++ b/frontend/coprs_frontend/coprs/forms.py @@ -658,8 +658,7 @@ class CoprForm(BaseForm): validators=[wtforms.validators.Optional()],) repo_priority = wtforms.IntegerField( - "Use the priority= config option for repositories in this " - "project, see man dnf.conf(5) for more info.", + "Repo priority", render_kw={"placeholder": "Optional - integer, e.g. 22"}, validators=[ wtforms.validators.Optional(), diff --git a/frontend/coprs_frontend/coprs/templates/coprs/_coprs_forms.html b/frontend/coprs_frontend/coprs/templates/coprs/_coprs_forms.html index 004605e5a..aeb33cab0 100644 --- a/frontend/coprs_frontend/coprs/templates/coprs/_coprs_forms.html +++ b/frontend/coprs_frontend/coprs/templates/coprs/_coprs_forms.html @@ -159,7 +159,7 @@

{{ counter('instructions') }}. Other options

{{ render_field(form.repo_priority, class="short-input-field", placeholder='Optional', - info='Set the priority value of this repository. Defaults to 99.') }} + info='Use the priority=<INT> config option for repositories in this project, see man dnf.conf(5) for more info.') }} {{ render_field(form.isolation, placeholder='default') }}