Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit 19adab0d567c68ca9c1880fb6ad1852e8fa3a786 Author: Bohuslav Kabrda bkabrda@redhat.com Date: Fri Dec 21 17:26:21 2012 +0100
Only display initial packages textarea on copr creation
.../coprs/templates/coprs/_coprs_forms.html | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/coprs_frontend/coprs/templates/coprs/_coprs_forms.html b/coprs_frontend/coprs/templates/coprs/_coprs_forms.html index 5f3baa4..e29060f 100644 --- a/coprs_frontend/coprs/templates/coprs/_coprs_forms.html +++ b/coprs_frontend/coprs/templates/coprs/_coprs_forms.html @@ -10,7 +10,9 @@ {{ render_field(form.release) }} {{ render_field(form.arches, size = 2) }} {{ render_field(form.repos, rows = 10, cols = 50) }} - {{ render_field(form.initial_pkgs, rows = 10, cols = 50) }} + {% if copr is none %}{# we're creating the copr, so display initial builds area #} + {{ render_field(form.initial_pkgs, rows = 10, cols = 50) }} + {% endif %} <dd><input type=submit value=Submit></dd> </dl> </form>
copr-devel@lists.stg.fedorahosted.org