- Function to store and get worked good
- Token works great - Session works great
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
<form method="post">
|
||||
<h3>Tambah Pengumuman</h3>
|
||||
|
||||
<label for="kategori">Kategori</label>
|
||||
<select name="kategori">
|
||||
<label for="category">Kategori</label>
|
||||
<select name="category">
|
||||
{% for cat in categories %}
|
||||
<option value="{{ cat.id }}">{{ cat.category }}</option>
|
||||
{% endfor %}
|
||||
@@ -15,20 +15,27 @@
|
||||
|
||||
<br>
|
||||
|
||||
<label for="konten">Konten</label>
|
||||
<textarea name="konten" rows="3" cols="30"></textarea>
|
||||
<label for="expired_at">Berlaku sampai</label>
|
||||
<input type="date" name="expired_at" value="">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="content">Konten</label>
|
||||
<textarea name="content" rows="3" cols="30"></textarea>
|
||||
|
||||
<input type="hidden" name="creator" value="1"> <!-- Nanti diganti user id -->
|
||||
|
||||
<!-- Current Timestamp -->
|
||||
<input type="hidden" name="_currts" value={{ 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 }}>
|
||||
<input type="hidden" name="_token" value="{{ token }}">
|
||||
|
||||
<br>
|
||||
|
||||
<button type="submit" name="entry">Entry</button>
|
||||
<button type="submit">Entry</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user