Last active
May 4, 2020 01:13
-
-
Save fleetimee/bd64023cd5572aa789733609863c537b to your computer and use it in GitHub Desktop.
view form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<link href="/css/bootstrap.min.css" rel="stylesheet"> | |
<title>Form Input Produk</title> | |
</head> | |
<body> | |
<div class="container pt-4 bg-white"> | |
<div class="row"> | |
<div class="col-md-8 col-xl-6"> | |
<h1>Form Input Produk</h1> | |
<hr> | |
<form action="{{url('/simpan-produk')}}" method="POST"> | |
<div class="form-group"> | |
<label for="nim">Nama Produk</label> | |
<input type="text" class="form-control" id="nama_produk" name="nama_produk" value="{{ old('nama_produk') }}"> | |
</div> | |
<div class="form-group"> | |
<label for="jurusan">Kategori Produk</label> | |
<select class="form-control" name="kategori" id="kategori" value" {{ old('kategori') }}"> | |
<option value="Elektronik">Elektronik</option> | |
<option value="Fashion">Fashion</option> | |
<option value="Komputer">Komputer</option> | |
</select> | |
</div> | |
<div class="form-group"> | |
<label for="nama">Harga</label> | |
<input type="text" class="form-control" id="harga" name="harga" value="{{ old('harga') }}"> | |
</div> | |
<div class="form-group"> | |
<label for="email">Stok</label> | |
<input type="text" class="form-control" id="stok" name="stok"> | |
</div> | |
<div class="form-group"> | |
<label>Kondisi Barang</label> | |
<div> | |
<div class="form-check form-check-inline"> | |
<input class="form-check-input" type="radio" name="kondisi" id="baru" | |
value="Y"> | |
<label class="form-check-label" for="baru">Baru</label> | |
</div> | |
<div class="form-check form-check-inline"> | |
<input class="form-check-input" type="radio" name="kondisi" id="bekas" | |
value="N"> | |
<label class="form-check-label" for="bekas">Bekas</label> | |
</div> | |
</div> | |
</div> | |
<div class="form-group"> | |
<label for="alamat">Deskripsi Produk</label> | |
<textarea class="form-control" id="deskripsi" rows="3" name="deskripsi"></textarea> | |
</div> | |
<button type="submit" class="btn btn-primary mb-2">Simpan</button> | |
</form> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment