diff options
author | BonfaceKilz | 2022-05-24 11:48:35 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-05-27 15:17:52 +0300 |
commit | 22eeefc8950195505bc265ad03dd803a6bcc0c26 (patch) | |
tree | 57b13c32e78a305605653c84fc81086aae44fbc9 | |
parent | ab5d06c96dda489d5d1e28f4a68d6c2aed26476b (diff) | |
download | genenetwork2-22eeefc8950195505bc265ad03dd803a6bcc0c26.tar.gz |
Cosmetic changes in Jinja template
-rw-r--r-- | wqflask/wqflask/templates/case_attributes.html | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/wqflask/wqflask/templates/case_attributes.html b/wqflask/wqflask/templates/case_attributes.html index 1e1bc98a..c71ca96f 100644 --- a/wqflask/wqflask/templates/case_attributes.html +++ b/wqflask/wqflask/templates/case_attributes.html @@ -112,7 +112,7 @@ {% for id_, name, description in case_attributes %} <tr data-id="{{id_}}"> <td class="name" data-original-value="{{ name }}">{{ name }}</td> - <td class="description" data-original-value="{{ description }}">{{description}}</td> + <td class="description" data-original-value="{{ description }}">{{ description }}</td> <td> <a class="add" title="Add" data-toggle="tooltip"><i><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></i></a> <a class="edit" title="Edit" data-toggle="tooltip"><i><span class="glyphicon glyphicon-edit" aria-hidden="true"></span></i></a> @@ -220,9 +220,9 @@ <tbody> {% for data in inserts %} <tr> - <td>{{data.get("name")}}</td> - <td>{{ data.get('author')}}</td> - <td>{{data.get("description")}} </td> + <td>{{ data.get("name") }}</td> + <td>{{ data.get("author")}}</td> + <td>{{ data.get("description") }} </td> <td> <button data-id="{{ data.get('id') }}" type="button" class="btn btn-secondary btn-sm reject"> @@ -377,7 +377,7 @@ }); $(".reject").click(function(){ - let id = $(this).data("id") + let id = $(this).data("id"); if (Number.isInteger(id)) { $.ajax({ type: "POST", @@ -385,7 +385,10 @@ url: '{{ url_for("metadata_edit.reject_case_attribute_data") }}', success: function(data, status, xhr) { location.reload(); - } + } + }) + } + }); }) } }); |