aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2022-05-20 10:12:47 +0300
committerBonfaceKilz2022-05-27 15:17:52 +0300
commitedeb003c48ea1c6ac3e069c96305bb24b8b0ecb0 (patch)
tree743cb32ae62f23161c850885c9d34176ef098212 /wqflask
parent54ca73ac0edc2d92fafc1854f863acd3d61d3f37 (diff)
downloadgenenetwork2-edeb003c48ea1c6ac3e069c96305bb24b8b0ecb0.tar.gz
Make approve/reject buttons normal links instead of embedded links
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/case_attributes.html30
1 files changed, 12 insertions, 18 deletions
diff --git a/wqflask/wqflask/templates/case_attributes.html b/wqflask/wqflask/templates/case_attributes.html
index 32b698fc..9c2001d5 100644
--- a/wqflask/wqflask/templates/case_attributes.html
+++ b/wqflask/wqflask/templates/case_attributes.html
@@ -134,8 +134,6 @@
</thead>
<tbody>
{% for data in modifications %}
- {% set reject_url = "" %}
- {% set approve_url = "" %}
<tr data-id="{{ data.get('id') }}">
<td>{{ data.get('author') }}</td>
<td>
@@ -155,12 +153,12 @@
</td>
<td>
<button type="button"
- class="btn btn-secondary btn-sm">
- <a href="{{ reject_url }}">Reject</a>
+ class="btn btn-secondary btn-sm reject">
+ Reject
</button>
<button type="button"
- class="btn btn-warning btn-sm">
- <a href="{{ approve_url }}">Approve</a>
+ class="btn btn-warning btn-sm approve">
+ Approve
</button>
</td>
</tr>
@@ -185,19 +183,17 @@
</thead>
<tbody>
{% for data in deletions %}
- {% set reject_url = "" %}
- {% set approve_url = "" %}
<tr data-id="{{data.get('id')}}">
<td>{{data.get("name")}}</td>
<td>{{ data.get('author') }}</td>
<td>{{data.get("description")}}</td>
<td>
<button type="button"
- class="btn btn-secondary btn-sm">
- <a href="{{ reject_url }}">Reject</a>
+ class="btn btn-secondary btn-sm reject">
+ Reject
</button>
- <button type="button" class="btn btn-warning btn-sm">
- <a href="{{ approve_url }}" class="delete" title="Delete" data-toggle="tooltip">Approve</a>
+ <button type="button" class="btn btn-warning btn-sm approve">
+ Approve
</button>
</td>
</tr>
@@ -223,19 +219,17 @@
</thead>
<tbody>
{% for data in inserts %}
- {% set reject_url = "" %}
- {% set approve_url = "" %}
<tr data-id="{{ data.get('id') }}">
<td>{{data.get("name")}}</td>
<td>{{ data.get('author')}}</td>
<td>{{data.get("description")}} </td>
<td>
<button type="button"
- class="btn btn-secondary btn-sm">
- <a href="{{ reject_url }}">Reject</a>
+ class="btn btn-secondary btn-sm reject">
+ Reject
</button>
- <button type="button" class="btn btn-warning btn-sm">
- <a href="{{ approve_url }}" class="delete" title="Delete" data-toggle="tooltip">Approve</a>
+ <button type="button" class="btn btn-warning btn-sm approve">
+ Approve
</button>
</td>
</tr>