Modify form objects in login.html and edit_pengumuman.html, also create new html new_pengumuman.html
This commit is contained in:
parent
9a94e5b250
commit
d51baaf2c2
@ -13,11 +13,11 @@
|
||||
<label for="password">Password: </label>
|
||||
<input type="password" name="password" value="" placeholder="Type your password">
|
||||
|
||||
<!-- CSRF Token -->
|
||||
<input type="hidden" name="_token_" value="##GENERATED##">
|
||||
<!-- method -->
|
||||
<input type="hidden" name="_method" value="post">
|
||||
|
||||
<!-- Form type -->
|
||||
<input type="hidden" name="_type_" value="post">
|
||||
<!-- Token -->
|
||||
<input type="hidden" name="_token_" value="##TOKEN##">
|
||||
|
||||
<button type="submit" name="login">Login</button>
|
||||
</form>
|
||||
|
@ -6,8 +6,6 @@
|
||||
</head>
|
||||
<body>
|
||||
<form method="post">
|
||||
|
||||
</form>
|
||||
<h3>Pengumuman 1</h3>
|
||||
|
||||
<label for="kategori">Kategori: </label>
|
||||
@ -34,8 +32,15 @@
|
||||
<input type="text" name="editor" value="User 2">
|
||||
|
||||
<!-- Current Timestamp -->
|
||||
<input type="hidden" name="_current-ts_" value="##CURRENT_TIMESTAMP##">
|
||||
<input type="hidden" name="_currts" value="##CURRENT_TIMESTAMP##">
|
||||
|
||||
<!-- Method -->
|
||||
<input type="hidden" name="_method" value="put">
|
||||
|
||||
<!-- Token -->
|
||||
<input type="hidden" name="_token" value="##TOKEN##">
|
||||
|
||||
<button type="submit" name="edit">Edit</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
34
App/Views/Data/new_pengumuman.html
Normal file
34
App/Views/Data/new_pengumuman.html
Normal file
@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Tambah Pengumuman</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post">
|
||||
<h3>Tambah Pengumuman</h3>
|
||||
|
||||
<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>
|
||||
|
||||
<label for="konten">Konten</label>
|
||||
<textarea name="konten" rows="8" cols="120"></textarea>
|
||||
|
||||
<!-- Current Timestamp -->
|
||||
<input type="hidden" name="_currts" value="##CURRENT_TIMESTAMP##">
|
||||
|
||||
<!-- Method -->
|
||||
<input type="hidden" name="_method" value="post">
|
||||
|
||||
<!-- Token -->
|
||||
<input type="hidden" name="_token" value="##TOKEN##">
|
||||
|
||||
<button type="submit" name="entry">Entry</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user