aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2022-05-24 12:46:20 +0300
committerBonfaceKilz2022-05-27 15:17:52 +0300
commit9749c4564cc6875f6e885d3fb5ff4878f3a6e8dc (patch)
tree058ceda7ab426a059eb67342ba546f83a5a4641a /wqflask
parentb016a75ef69f1bb48e2cb04d4744299759f1b7f5 (diff)
downloadgenenetwork2-9749c4564cc6875f6e885d3fb5ff4878f3a6e8dc.tar.gz
Add sensible styling to "reject"/"approve" buttons
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/case_attributes.html18
1 files changed, 10 insertions, 8 deletions
diff --git a/wqflask/wqflask/templates/case_attributes.html b/wqflask/wqflask/templates/case_attributes.html
index 1779f0a9..fad3dd94 100644
--- a/wqflask/wqflask/templates/case_attributes.html
+++ b/wqflask/wqflask/templates/case_attributes.html
@@ -4,7 +4,10 @@
{% block css %}
<link rel="stylesheet" type="text/css" href="{{ url_for('css', filename='DataTables/css/jquery.dataTables.css') }}" />
<style>
- .case-attribute {
+ .reject, .approve {
+ margin-bottom: 5px;
+ }
+.case-attribute {
width: 10em;
}
.table-title {
@@ -158,11 +161,11 @@
</td>
<td>
<button data-id="{{ data.get('id') }}" type="button"
- class="btn btn-secondary btn-sm reject">
+ class="btn btn-default reject">
Reject
</button>
<button data-id="{{ data.get('id') }}" type="button"
- class="btn btn-warning btn-sm approve">
+ class="btn btn-success approve">
Approve
</button>
</td>
@@ -194,10 +197,10 @@
<td>{{data.get("description")}}</td>
<td>
<button data-id="{{data.get('id')}}" type="button"
- class="btn btn-secondary btn-sm reject">
+ class="btn btn-default reject">
Reject
</button>
- <button data-id="{{data.get('id')}}" type="button" class="btn btn-warning btn-sm approve">
+ <button data-id="{{data.get('id')}}" type="button" class="btn btn-success approve">
Approve
</button>
</td>
@@ -230,10 +233,10 @@
<td>{{ data.get("description") }} </td>
<td>
<button data-id="{{ data.get('id') }}" type="button"
- class="btn btn-secondary btn-sm reject">
+ class="btn btn-default reject">
Reject
</button>
- <button data-id="{{ data.get('id') }}" type="button" class="btn btn-warning btn-sm approve">
+ <button data-id="{{ data.get('id') }}" type="button" class="btn btn-success approve">
Approve
</button>
</td>
@@ -368,7 +371,6 @@
name: node.find(".name").data("original-value"),
description: node.find(".description").data("original-value"),
id: node.data("id")}
- console.log(diff)
if (nodeId){
$.ajax({
type: "POST",