31 lines
866 B
HTML
31 lines
866 B
HTML
{% extends "layouts/base.html" %}
|
|
|
|
{% block subtitle %}
|
|
<h1 class="text-4xl">Tambah Item</h1>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div>
|
|
<form action="/item/add-post" method="POST">
|
|
<div>
|
|
<label for="NamaItem">Nama Item</label>
|
|
<input type="text" class="border py-1 px-2" name="NamaItem">
|
|
</div>
|
|
<div>
|
|
<label for="NamaItem">Status Item</label>
|
|
<input type="checkbox" class="border py-1 px-2" name="StatusItem">
|
|
</div>
|
|
<div>
|
|
<label for="Ruang">Ruang</label>
|
|
<select class="border py-1 px-2" name="Ruang">
|
|
{% for entry in ruangs %}
|
|
<option value={{ entry.RuangID }}>{{ entry.NamaRuang }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
{% csrf_token %}
|
|
<button type="submit" class="bg-blue-500 text-white py-2 px-4 text-center">Submit</button>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|