38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
|
{% extends "layouts/base.html" %}
|
||
|
|
||
|
{% block subtitle %}
|
||
|
<h1 class="text-4xl">Beri Akses</h1>
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block content %}
|
||
|
<div>
|
||
|
<form action="/akses/add-post" method="POST">
|
||
|
<div>
|
||
|
<label for="User">User</label>
|
||
|
<select class="border py-1 px-2" name="User">
|
||
|
{% for entry in users %}
|
||
|
<option value={{ entry.UserID }}>{{ entry.NamaUser }}</option>
|
||
|
{% endfor %}
|
||
|
</select>
|
||
|
</div>
|
||
|
<div>
|
||
|
<label for="Item">Item</label>
|
||
|
<select class="border py-1 px-2" name="Item">
|
||
|
{% for entry in items %}
|
||
|
<option value={{ entry.ItemID }}>{{ entry.NamaItem }}</option>
|
||
|
{% endfor %}
|
||
|
</select>
|
||
|
</div>
|
||
|
<div>
|
||
|
<label for="StatusAkses">Status Akses</label>
|
||
|
<select class="border py-1 px-2" name="StatusAkses">
|
||
|
<option value="0">Dilarang</option>
|
||
|
<option value="1">Diperbolehkan</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
{% csrf_token %}
|
||
|
<button type="submit" class="bg-blue-500 text-white py-2 px-4 text-center">Submit</button>
|
||
|
</form>
|
||
|
</div>
|
||
|
{% endblock %}
|