diff options
author | BonfaceKilz | 2022-05-20 10:18:19 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-05-27 15:17:52 +0300 |
commit | d995399aef90aca58857bb488bb5f50ff4f996fe (patch) | |
tree | 965ad81184cef9b20079e29c93593e791a743306 /wqflask | |
parent | edeb003c48ea1c6ac3e069c96305bb24b8b0ecb0 (diff) | |
download | genenetwork2-d995399aef90aca58857bb488bb5f50ff4f996fe.tar.gz |
Move the case-attribute id to the button where the event occurs
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/templates/case_attributes.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/wqflask/wqflask/templates/case_attributes.html b/wqflask/wqflask/templates/case_attributes.html index 9c2001d5..1e2deb88 100644 --- a/wqflask/wqflask/templates/case_attributes.html +++ b/wqflask/wqflask/templates/case_attributes.html @@ -134,7 +134,7 @@ </thead> <tbody> {% for data in modifications %} - <tr data-id="{{ data.get('id') }}"> + <tr> <td>{{ data.get('author') }}</td> <td> {% if data.get("name")%} @@ -152,11 +152,11 @@ {% endif %} </td> <td> - <button type="button" + <button data-id="{{ data.get('id') }}" type="button" class="btn btn-secondary btn-sm reject"> Reject </button> - <button type="button" + <button data-id="{{ data.get('id') }}" type="button" class="btn btn-warning btn-sm approve"> Approve </button> @@ -183,16 +183,16 @@ </thead> <tbody> {% for data in deletions %} - <tr data-id="{{data.get('id')}}"> + <tr> <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 reject"> + <button data-id="{{data.get('id')}}" type="button" + class="btn btn-secondary btn-sm reject"> Reject </button> - <button type="button" class="btn btn-warning btn-sm approve"> + <button data-id="{{data.get('id')}}" type="button" class="btn btn-warning btn-sm approve"> Approve </button> </td> @@ -219,16 +219,16 @@ </thead> <tbody> {% for data in inserts %} - <tr data-id="{{ data.get('id') }}"> + <tr> <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 reject"> + <button data-id="{{ data.get('id') }}" type="button" + class="btn btn-secondary btn-sm reject"> Reject </button> - <button type="button" class="btn btn-warning btn-sm approve"> + <button data-id="{{ data.get('id') }}" type="button" class="btn btn-warning btn-sm approve"> Approve </button> </td> |