Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="en">
- <head>
- <!-- Required meta tags -->
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <!-- Bootstrap CSS -->
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
- <title>Uji Level 1</title>
- </head>
- <body>
- <h1 class="text-center">Form Input Data</h1>
- <div class="container-sm mt-5">
- <form class="border border-dark mx-5">
- <div class="form-group row mt-2 mx-5">
- <label for="kodeProduk" class="col-sm-2 col-form-label">Kode Produk</label>
- <div class="col-sm-10">
- <input type="text" class="form-control" id="kodeProduk" placeholder="MD-001" disabled>
- </div>
- </div>
- <div class="form-group row mx-5">
- <label for="namaProduk" class="col-sm-2 col-form-label">Nama Produk</label>
- <div class="col-sm-10">
- <input type="text" class="form-control" id="namaProduk" placeholder="makanan/minuman">
- </div>
- </div>
- <div class="form-group row mx-5">
- <label for="hargaProduk" class="col-sm-2 col-form-label">Harga Produk</label>
- <div class="col-sm-10">
- <input type="number" class="form-control" id="hargaProduk">
- </div>
- </div>
- <div class="form-group row mx-5">
- <label for="satuan" class="col-sm-2 col-form-label">Satuan</label>
- <div class="col-sm-10">
- <select class="form-control" id="satuan">
- <option disabled selected>Pilih</option>
- <option value="1">Gelas</option>
- <option value="2">Pcs</option>
- </select>
- </div>
- </div>
- <div class="form-group row mx-5">
- <label for="kategori" class="col-sm-2 col-form-label">Kategori</label>
- <div class="col-sm-10">
- <select class="form-control" id="kategori" onchange="kodep(this.value)">
- <option disabled selected>pilih</option>
- <option value="Minuman Dingin">Minuman Dingin</option>
- <option value="Makanan Ringan">Makanan Ringan</option>
- <option value="Makanan Cepat Saji">Makanan Cepat Saji</option>
- </select>
- </div>
- </div>
- <div class="form-group row mx-5 ">
- <label for="urlGambar" class="col-sm-2 col-form-label">URL Gambar</label>
- <div class="col-sm-10">
- <input type="text" class="form-control" id="urlGambar">
- </div>
- </div>
- <div class="form-group row mx-5">
- <label for="stokAwal" class="col-sm-2 col-form-label">Stok Awal</label>
- <div class="col-sm-10">
- <input type="number" class="form-control" id="stokAwal">
- </div>
- <button class="btn btn-success mt-3 ml-3" type="button" onclick="add()" id="button9">Simpan</button>
- <button class="btn btn-secondary mt-3 ml-3" type="button" onclick="batal()" id="button">Batal</button>
- <button class="btn btn-success mt-3 ml-3" type="button" onclick="editSimpan()" id="button6">Simpan</button>
- </div>
- </form>
- <table class="table table-bordered mt-5">
- <thead class="thead-light">
- <tr>
- <th scope="col">No</th>
- <th scope="col">Kode Produk</th>
- <th scope="col">Nama Produk</th>
- <th scope="col">Kategori Produk</th>
- <th scope="col">Stok Produk</th>
- <th scope="col">Gambar Produk</th>
- <th scope="col">Action</th>
- </tr>
- </thead>
- <tbody id="tampildata">
- </tbody>
- </table>
- </div>
Add Comment
Please, Sign In to add comment