Configure html files with twig
This commit is contained in:
@@ -1,58 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Edit Pengumuman</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post">
|
||||
<h3>Pengumuman 1</h3>
|
||||
{% extends "base.html" %}
|
||||
|
||||
<label for="kategori">Kategori: </label>
|
||||
<select name="kategori">
|
||||
<option value="kategori_1">Kategori 1</option>
|
||||
<option value="kategori_2">Kategori 2</option>
|
||||
<option value="kategori_3">Kategori 3</option>
|
||||
<option value="kategori_4">Kategori 4</option>
|
||||
</select>
|
||||
{% block title %}Edit Pengumuman{% endblock %}
|
||||
|
||||
<br>
|
||||
{% block body %}
|
||||
<form method="post">
|
||||
<h3>Pengumuman 1</h3>
|
||||
|
||||
<label for="konten">Konten: </label>
|
||||
<textarea name="konten" rows="3" cols="30"></textarea>
|
||||
<label for="kategori">Kategori: </label>
|
||||
<select name="kategori">
|
||||
<option value="kategori_1">Kategori 1</option>
|
||||
<option value="kategori_2">Kategori 2</option>
|
||||
<option value="kategori_3">Kategori 3</option>
|
||||
<option value="kategori_4">Kategori 4</option>
|
||||
</select>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<label for="first-approach">Dibuat pada: </label>
|
||||
<input type="text" name="first-approach" value="2017-08-28 15:20">
|
||||
<label for="konten">Konten: </label>
|
||||
<textarea name="konten" rows="3" cols="30"></textarea>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<label for="first-touch">Dibuat oleh: </label>
|
||||
<input type="text" name="first-touch" value="User 1">
|
||||
<label for="first-approach">Dibuat pada: </label>
|
||||
<input type="text" name="first-approach" value="2017-08-28 15:20">
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<label for="edit">Diubah pada: </label>
|
||||
<input type="text" name="edit" value="2017-08-28 15:34">
|
||||
<label for="first-touch">Dibuat oleh: </label>
|
||||
<input type="text" name="first-touch" value="User 1">
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<label for="editor">Diubah oleh: </label>
|
||||
<input type="text" name="editor" value="User 2">
|
||||
<label for="edit">Diubah pada: </label>
|
||||
<input type="text" name="edit" value="2017-08-28 15:34">
|
||||
|
||||
<!-- Current Timestamp -->
|
||||
<input type="hidden" name="_currts" value="##CURRENT_TIMESTAMP##">
|
||||
<br>
|
||||
|
||||
<!-- Method -->
|
||||
<input type="hidden" name="_method" value="put">
|
||||
<label for="editor">Diubah oleh: </label>
|
||||
<input type="text" name="editor" value="User 2">
|
||||
|
||||
<!-- Token -->
|
||||
<input type="hidden" name="_token" value="##TOKEN##">
|
||||
<!-- Current Timestamp -->
|
||||
<input type="hidden" name="_currts" value="##CURRENT_TIMESTAMP##">
|
||||
|
||||
<br>
|
||||
<!-- Method -->
|
||||
<input type="hidden" name="_method" value="put">
|
||||
|
||||
<button type="submit" name="edit">Edit</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<!-- Token -->
|
||||
<input type="hidden" name="_token" value="##TOKEN##">
|
||||
|
||||
<br>
|
||||
|
||||
<button type="submit" name="edit">Edit</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user