MyHome/primary/templates/akses/add.html

38 lines
1.1 KiB
HTML
Raw Normal View History

2020-01-15 14:09:07 +00:00
{% 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 %}