MyHome/primary/templates/ruang/add.html

27 lines
729 B
HTML
Raw Normal View History

2020-01-15 14:09:07 +00:00
{% extends "layouts/base.html" %}
{% block subtitle %}
<h1 class="text-4xl">Tambah Ruang</h1>
{% endblock %}
{% block content %}
<div>
<form action="/ruang/add-post" method="POST">
<div>
<label for="NamaRuang">Nama Ruang</label>
<input type="text" class="border py-1 px-2" name="NamaRuang">
</div>
<div>
<label for="Rumah">Rumah</label>
<select class="border py-1 px-2" name="Rumah">
{% for entry in rumahs %}
<option value={{ entry.RumahID }}>{{ entry.NamaRumah }}</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 %}