{% from "_helpers.html" import render_field %} {% macro copr_form(form, view, copr = None, username = None) %} {# if using for updating, we need to pass name to url_for, but otherwise we need to pass nothing #}
{{ form.csrf_token }} {{ render_field(form.id, hidden = True) }} {% if copr is none %} {{ render_field(form.name, label='Project Name', required = True, class="required") }} {% else %} {{ render_field(form.name, hidden = True) }} {{ render_field(form.name, label='Project Name', disabled = True) }} {% endif %} {{ render_field(form.description, rows=5, cols=50, placeholder='Optional - describe your project briefly.') }} {{ render_field(form.instructions, rows=5, cols=50, placeholder='Optional - describe how your project can be installed. Where users can report bugs and issues. Link to wiki is good as well.') }}
You can use markdown syntax, inline HTML is forbidden..
Chroots
{% if form._mock_chroots_error %}

{{ form._mock_chroots_error }}

{% endif %} {% for group_set, chs in form.chroots_sets.items() %} {% for ch in chs %} {% if copr and form|attr(ch)|attr('data') %} {% endif %} {% endfor %}
{{ form|attr(ch)|attr('label') }} {% if form|attr(ch)|attr('label') %} {% else %} {{ form|attr(ch)|attr('label') }} {% endif %} {{ form|attr(ch) }} [Edit]
{% endfor %} {{ render_field(form.repos, rows=5, cols=50, placeholder='Optional - URL to additional yum repos, which can be used during build. Space separated. This should be baseurl from .repo file. E.g.: http://copr-be.cloud.fedoraproject.org/results/rhughes/f20-gnome-3-12/fedora-$releasever-$basearch/') }}
Available variables to expand (variable: example value):
  • $chroot fedora-21-x86_64
  • $releasever 21
  • $basearch x86-64
  • $distname fedora
To reference another Copr use format: "copr://{project owner}/{project name}"
{% if copr is none %}{# we're creating the copr, so display initial builds area #} {{ render_field(form.initial_pkgs, rows=5, cols=50, placeholder='Optional - list of src.rpm to build initially. Can be skipped and submitted later.') }} {% endif %}
Package repositories
Repository meta data is refreshed after each build.
You can disable it with the option below.
You will be still able to regenerate your repositories manually on the overview page.
Disable automatic repository meta data generation {{ form.disable_createrepo }}
Default build options
Enable network access during the build {{ form.build_enable_net }}
{% endmacro %} {% macro copr_delete_form(form, copr) %}
{{ form.csrf_token }}
{% if form.verify.errors %} {% for error in form.verify.errors %}

{{ error }}

{% endfor %} {% endif %}
{{ form.verify }}
{% endmacro %} {% macro copr_permissions_form(form, copr, permissions) %} {% if permissions %}
{{ form.csrf_token }} {% for perm in permissions %} {% endfor %}
UsernameIs BuilderIs Admin
{{ perm.user.name }} {{ perm.copr_builder|perm_type_from_num }} {% if perm.copr_builder != 0 %} {{ form['copr_builder_{0}'.format(perm.user.id)] }} {% endif %} {{ perm.copr_admin|perm_type_from_num }} {% if perm.copr_admin != 0 %} {{ form['copr_admin_{0}'.format(perm.user.id)] }} {% endif %}
{% endif %} {% endmacro %} {% macro copr_legal_flag_form(form, copr) %} {% endmacro %}