47 lines
1.1 KiB
HTML
47 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Tambah Pengumuman{% endblock %}
|
|
|
|
{% block body %}
|
|
<form method="post">
|
|
<h3>Tambah Pengumuman</h3>
|
|
|
|
<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>
|
|
|
|
<label for="content">Konten: </label>
|
|
<textarea name="content" rows="3" cols="30" maxlength="255"></textarea>
|
|
|
|
<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">Unggah</button>
|
|
</form>
|
|
{% endblock %}
|