[copr] master: Alter the copr form to accomodate arbitrary chroots (91053bd)

bkabrda at fedoraproject.org bkabrda at fedoraproject.org
Tue Jan 15 11:06:31 UTC 2013


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : master

>---------------------------------------------------------------

commit 91053bd647035a3b63ece460eec00be2cd5c8e9c
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Mon Jan 14 14:47:44 2013 +0100

    Alter the copr form to accomodate arbitrary chroots


>---------------------------------------------------------------

 .../coprs/templates/coprs/_coprs_forms.html        |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/coprs_frontend/coprs/templates/coprs/_coprs_forms.html b/coprs_frontend/coprs/templates/coprs/_coprs_forms.html
index e29060f..7b90310 100644
--- a/coprs_frontend/coprs/templates/coprs/_coprs_forms.html
+++ b/coprs_frontend/coprs/templates/coprs/_coprs_forms.html
@@ -7,8 +7,18 @@
       {{ form.csrf_token }}
       {{ render_field(form.id, hidden = True) }}
       {{ render_field(form.name) }}
-      {{ render_field(form.release) }}
-      {{ render_field(form.arches, size = 2) }}
+      {% for group_set, chs in form.chroots_sets.items() %}
+        <table style="display:inline;">
+          <tr>
+            <th colspan=2>Chroots to use</th>
+          </tr>
+          {% for ch in chs %}
+            <tr>
+              <td>{{ form|attr(ch)|attr('label') }}</td><td>{{ form|attr(ch) }}</td>
+            </tr>
+          {% endfor %}
+        </table>
+      {% endfor %}
       {{ render_field(form.repos, 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) }}



More information about the copr-devel mailing list