1 {% extends "workflow/viewport-element.html" %}
8 <!-- DataTables CSS -->
9 <link href="{% static "bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css" %}"
12 <!-- DataTables Responsive CSS -->
13 <link href="{% static "bower_components/datatables-responsive/css/dataTables.responsive.css" %}" rel="stylesheet">
14 {% endblock extrahead %}
18 <h1 style="text-align:center;">{{ error }}</h1>
20 <form style="width: 90%; margin: 5%;" method="post" action="" class="form" id="softwaredefinitionform">
24 <div class="col-lg-12">
25 <div class="dataTables_wrapper">
26 <table class="table table-striped table-bordered table-hover" id="table" cellspacing="0"
38 {% for form in formset %}
40 {% for field in form %}
45 {{formset.management_form}}
51 <!-- /.table-responsive -->
60 function filter_images(){
61 var filter_data = {{filter_data|safe}};
62 for(var key in filter_data){
63 var dropdown = document.getElementById(key);
64 var to_remove = filter_data[key];
65 for(var i=0; i<to_remove.length; i++){
66 for(var j=dropdown.children.length-1; j>=0; j--){
67 if(dropdown.children[j].text == to_remove[i]){
68 dropdown.removeChild(dropdown.children[j]);
78 {% endblock content %}
82 <!-- DataTables JavaScript -->
84 <script src={% static "bower_components/datatables/media/js/jquery.dataTables.min.js" %}></script>
85 <script src={% static "bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js" %}></script>
87 <script src={% static "js/dataTables-sort.js" %}></script>
90 {% endblock tablejs %}
91 {% endblock extrajs %}
95 var form = $("#softwaredefinitionform");
96 var formData = form.serialize();
97 var req = new XMLHttpRequest();
98 req.open("POST", "/wf/workflow/", false);
99 req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
100 req.onerror = function() { alert("problem with form submission"); }