Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Kelola Jurusan</title>
- <link rel="shortcut icon" href="<?= base_url('/assets/logo.png') ?>" type="image/x-icon">
- <link rel="stylesheet" href="<?= base_url('/assets/css/bootstrap.min.css') ?>">
- <link rel="stylesheet" href="<?= base_url('/assets/css/all.min.css') ?>">
- <link rel="stylesheet" href="<?= base_url('/assets/css/font-awesome.min.css') ?>">
- </head>
- <body>
- <div class="container-fluid">
- <div class="d-sm-flex align-items-center justify-content-between mb-4">
- <span class="nav-brand">
- <img src="<?= base_url('/assets/logo.png') ?>" alt="" height="100px">
- <span style="font-size: 174%"><b>Kelola Jurusan</b></span>
- </span>
- <a href="<?= base_url('/jurusan') ?>" class="btn btn-md btn-secondary"><i class="fas fa-undo fa-md text-white"></i> Kembali</a>
- </div>
- <div class="row">
- <div class="col-md-12">
- <div class="card border-left-primary shadow h-100 py-2">
- <div class="card-body">
- <?php
- $inputs = session()->getFlashdata('inputs');
- $errors = session()->getFlashdata('errors');
- if(!empty($errors)){ ?>
- <div class="alert alert-danger">
- Ada Kesalahan saat input data, yaitu:
- <ul>
- <?php foreach($errors as $error) : ?>
- <li><?= esc($error) ?></li>
- <?php endforeach ?>
- </ul>
- </div>
- <?php } ?>
- <form action="<?= base_url('/jurusan/simpan') ?>" method="post">
- <div class="form-group">
- <label for="">Nama Jurusan</label>
- <input type="text" name="jurusan" class="form-control" value="<?= $inputs['jurusan'] ?>" autofocus>
- </div>
- <div class="form-group">
- <label for="">Kapasitas</label>
- <input type="number" name="kapasitas" class="form-control" value="<?= $inputs['kapasitas'] ?>">
- </div>
- <div class="form-group">
- <label for="">Terisi</label>
- <input type="number" name="terisi" class="form-control" value="<?= $inputs['terisi'] ?>">
- </div>
- <div class="form-group">
- <button class="btn btn-warning" type="reset">Reset</button>
- <button class="btn btn-warning" type="submit">Simpan</button>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment