feat: add modify/delete buttons

This commit is contained in:
2023-07-02 17:04:41 +02:00
parent 953d11ded0
commit 3bdc7ba119
2 changed files with 38 additions and 2 deletions

View File

@@ -87,3 +87,28 @@ body{
width: 100%; width: 100%;
text-align: center; text-align: center;
} }
.service-info-button:hover{
color: black;
opacity: 0.75;
}
.service-info-button{
float: right;
font-family: monospace;
margin-left: 10px;
padding-left: 10px;
padding-right: 10px;
padding-top: 2px;
padding-top: 2px;
color: black;
}
.box{
border-style: solid;
border-width: 1px;
border-color: aliceblue;
width: fit-content;
}

View File

@@ -4,8 +4,12 @@
{% include "navbar.html" %} {% include "navbar.html" %}
<div class="container"> <div class="container">
<h2 class="service-name">Service: {{ service.service }}</h2> <h2 class="service-name">Service: {{ service.service }}</h2>
<div class="service-timeout">Timeout: {{ service.timeout }}d</div>
<div class="service-token">Secret Token: {{ service.token }}</div> <a class="service-info-button mt-3" style="background-color: orange;"
href="/entry-form">Modify</a>
<a class="service-info-button mt-3" style="background-color: red;"
href="#"
onclick="alert('Delete is not supported yet')">Delete</a>
<div class="last-status"> <div class="last-status">
{% if status_list | length > 0 %} {% if status_list | length > 0 %}
@@ -15,6 +19,13 @@
{% endif %} {% endif %}
</div> </div>
<div class="p-4 box mt-4 mb-3" style="display: none;">
<div class="service-timeout">Timeout: {{ service.timeout }} days</div>
<div class="service-timeout">Owner: {{ service.owner }}</div>
<div style="display: none;"
class="service-token">Secret Token: {{ service.token }}</div>
</div>
<h5 class="my-4">Curl</h5> <h5 class="my-4">Curl</h5>
<div class="ml-3 example"> <div class="ml-3 example">
curl -X POST \ <br> curl -X POST \ <br>