| |
@@ -1,6 +1,6 @@
|
| |
{% from "_helpers.html" import render_field, render_checkbox_field, render_form_errors, copr_details_href, copr_url %}
|
| |
|
| |
- {% macro copr_form(form, view, copr = None, username = None, group = None) %}
|
| |
+ {% macro copr_form(form, view, copr = None, username = None, group = None, comments = None) %}
|
| |
{# if using for updating, we need to pass name to url_for, but otherwise we need to pass nothing #}
|
| |
|
| |
{{ render_form_errors(form) }}
|
| |
@@ -67,12 +67,15 @@
|
| |
<label>
|
| |
{{ form|attr(ch) }}
|
| |
{{ form|attr(ch)|attr('label') }}
|
| |
+ {% set chrootname = form|attr(ch)|attr('label')|attr('text') %}
|
| |
{% if copr and form|attr(ch)|attr('data') %}
|
| |
- {% set chrootname = form|attr(ch)|attr('label')|attr('text') %}
|
| |
<a style="margin-left:20px" class="btn btn-xs btn-default" href="{{ copr_url('coprs_ns.chroot_edit', copr, chrootname = chrootname)}}">
|
| |
<span class="pficon pficon-edit"> Edit </span>
|
| |
</a>
|
| |
{% endif %}
|
| |
+ {% if comments[chrootname] %}
|
| |
+ <small class="text-muted"> {{ comments[chrootname] }} </small>
|
| |
+ {% endif %}
|
| |
</label>
|
| |
</div>
|
| |
{% endfor %}{% endfor %}
|
| |
This is a work in progress.