Project_Fish/templates/admin.html

59 lines
1.6 KiB
HTML
Raw Permalink Normal View History

<script src="{{url_for('static', filename='jquery-3.6.0.min.js') }}"></script>
<script>
function GetAllServices(){
$.ajax({
type: "POST",
url: "/GetServices",
data: JSON.stringify({
"nummer": "-1",
}),
contentType: "application/json",
dataType: 'text json',
success: function(response) {
document.getElementById('resultblock').innerHTML = response
},
error: function(error){
console.log(error);
}
});
}
GetAllServices();
</script>
{% extends 'base.html' %}
<head>
<div class="headerblock">
</div>
<title>Administratie</title>
</head>
{% block content %}
<div class="requestblock">
<div class="MainText">
<h1 style="text-align: center;">Voeg dienst toe</h1>
<h3 style="text-align: center;">Vul de datum en groepen in om toe te voegen</h3>
<div class="a_datum_block">
<input class="a_datum_input" id="datum_input" name="text" placeholder="1-11-2021">
<tr>Tijd</tr>
<input class="a_datum_input" id="tijd_input" name="text" placeholder="9:30">
</div>
<div class="a_datum_block">
<input class="a_van_input" id="van_input" name="text" placeholder="1">
<tr>t/m</tr>
<input class="a_van_input" id="tot_input" name="text" placeholder="10">
</div>
<div class="add_service_btn" onclick="AddService()">Toevoegen</div>
</div>
</div>
<div class="resultblock" id="resultblock">
</div>
{% endblock %}