jobs list: filter by purged attribute
[qcg-portal.git] / qcg / templates / qcg / jobs.html
index c2e1480..4cc79d1 100644 (file)
@@ -67,7 +67,7 @@
 
 {% block container %}
     <form action="." class="pull-right">
-        {% get_params_as_hidden 'host' 'submission' 'finish' %}
+        {% get_params_as_hidden 'host' 'purged' 'submission' 'finish' %}
         <div class="btn-toolbar" role="toolbar">
             <div class="btn-group" role="group">
                 <div class="input-group">
                                 </div>
                             </div>
                         </div>
+
+                        <div class="form-group">
+                            <label class="col-sm-3 col-md-4 control-label">IstniejÄ…cy katalog roboczy?</label>
+                            <div class="col-sm-9 col-md-6">
+                                <div class="btn-group" data-toggle="buttons">
+                                    {% for choice in filters.purged %}
+                                        <label class="btn btn-default{% if choice.is_checked %} active{% endif %}">
+                                            <input type="radio" name="{{ choice.name }}" value="{{ choice.choice_value }}"
+                                                   {% if choice.is_checked %}checked{% endif %}> {{ choice.choice_label }}
+                                        </label>
+                                    {% endfor %}
+                                </div>
+                            </div>
+                        </div>
+
                         {% bootstrap_field filters.submission layout='horizontal' bound_css_class=' ' %}
                         {% bootstrap_field filters.finish layout='horizontal' bound_css_class=' ' %}
                     </form>