presenting job description as form
[qcg-portal.git] / qcg / templates / qcg / details_base.html
1 {% extends 'qcg/base.html' %}
2 {% load staticfiles %}
3
4 {% block extra_css %}
5     <link href="{% static 'qcg/selectize/selectize.bootstrap3.css' %}" rel="stylesheet">
6
7     <style>
8         #env-controls > div > div:last-child {
9             display: none;
10         }
11
12         .btn-group .btn-default.active[disabled] {
13             background-color: #E6E6E6;
14             border-color: #ADADAD;
15             box-shadow: 0 3px 5px rgba(0, 0, 0, 0.125) inset;
16         }
17     </style>
18 {% endblock %}
19
20 {% block extra_js %}
21     <script>
22         $(function () {
23             'use strict';
24
25             $('#toggle-advanced').click(function(e) {
26                 e.preventDefault();
27                 $('.form-horizontal .collapse').collapse('toggle');
28                 $(this).find('span').text(this.text == "Pokaż zaawansowane" ? "Ukryj zaawansowane" : "Pokaż zaawansowane");
29             });
30
31             $('#desc').find('select:not(#id_wall_time_1)').selectize();
32
33             $('input[name="notify_type"],input[name="watch_output_type"],input[name="preprocess_type"],input[name="postprocess_type"]').each(function() {
34                 if (this.checked)
35                     $(this).tab('show');
36             });
37         });
38     </script>
39 {% endblock extra_js %}