57 lines
1.8 KiB
HTML
57 lines
1.8 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Tambah Pengumuman{% endblock %}
|
|
|
|
{% block body %}
|
|
<main class="documentation">
|
|
<section>
|
|
<form method="post">
|
|
<h2>Tambah Pengumuman</h2>
|
|
<div class="flex three grow">
|
|
<div class="full third-600">
|
|
|
|
<label for="category">Kategori</label>
|
|
<select name="category">
|
|
{% for cat in categories %}
|
|
<option value="{{ cat.id }}">{{ cat.category }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
|
|
<br>
|
|
|
|
<label for="expired_at">Berlaku dari: </label>
|
|
<input type="date" name="valid_at" value="{{ timestamp }}">
|
|
|
|
<br>
|
|
|
|
<label for="expired_at">Berlaku sampai: </label>
|
|
<input type="date" name="expired_at" value="{{ timestamp }}">
|
|
|
|
<br>
|
|
</div>
|
|
|
|
<div class="full two-third-600">
|
|
<label for="content">Konten: </label>
|
|
<textarea name="content" rows="2" cols="30" maxlength="255"></textarea>
|
|
</div>
|
|
|
|
<input type="hidden" name="creator" value="{{ user }}">
|
|
|
|
<!-- Current Timestamp -->
|
|
<input type="hidden" name="_currts" value="{{ timestamp }}" disabled>
|
|
|
|
<!-- Method -->
|
|
<input type="hidden" name="_method" value="post">
|
|
|
|
<!-- Token -->
|
|
<input type="hidden" name="_token" value="{{ token }}">
|
|
|
|
<br>
|
|
|
|
<button type="submit" class="success">Unggah</button>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
</main>
|
|
{% endblock %}
|