1 {% extends "base.html" %}
4 function edit_configuration(pk){
5 var csrf = $('input[name="csrfmiddlewaretoken"]').val();
9 data: { "target": pk, "create": 2, "csrfmiddlewaretoken": csrf},
10 beforeSend: function(request) {
11 request.setRequestHeader("X-CSFRToken", csrf);
14 window.location.replace("/wf/");
15 }).fail(function(){});
18 {% for config in configurations %}
19 <div class="detail_card">
21 <li>id: {{config.id}}</li>
22 <li>name: {{config.name}}</li>
23 <li>description: {{config.description}}</li>
24 <li>resource: {{config.bundle}}</li>
26 <div class="detail_btn_group">
27 <button style="display: none" class="btn" onclick="edit_configuration({{config.id}});">Edit</button>