Initial baseline WACloud CI3 production
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-6">
|
||||
<div class="card border-0 shadow-sm">
|
||||
<div class="card-header">
|
||||
<h4 class="card-title mb-0">Form Tambah Device Baru</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if (validation_errors()): ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo validation_errors(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo form_open('devices/create'); ?>
|
||||
<div class="mb-3">
|
||||
<label for="number_name" class="form-label">Nama Nomor</label>
|
||||
<input type="text" class="form-control" id="number_name" name="number_name" value="<?php echo set_value('number_name'); ?>" required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="phone_number" class="form-label">Nomor Telepon</label>
|
||||
<input type="text" class="form-control" id="phone_number" name="phone_number" value="<?php echo set_value('phone_number'); ?>" required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="phone_number_id" class="form-label">Phone Number ID</label>
|
||||
<input type="text" class="form-control" id="phone_number_id" name="phone_number_id" value="<?php echo set_value('phone_number_id'); ?>" required>
|
||||
</div>
|
||||
<div class="d-flex justify-content-end">
|
||||
<a href="<?php echo site_url('devices'); ?>" class="btn btn-secondary me-2">Batal</a>
|
||||
<button type="submit" class="btn btn-primary">Simpan Device</button>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,46 @@
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h1 class="h3">Daftar Device</h1>
|
||||
<a href="<?php echo site_url('devices/add'); ?>" class="btn btn-primary">
|
||||
<i class="bi bi-plus-circle"></i> Tambah Device Baru
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
<?php echo $this->session->flashdata('success'); ?>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="card border-0 shadow-sm">
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Nama</th>
|
||||
<th>Nomor Telepon</th>
|
||||
<th>Phone Number ID</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (!empty($devices)): ?>
|
||||
<?php foreach ($devices as $device): ?>
|
||||
<tr>
|
||||
<td><?php echo $device->id; ?></td>
|
||||
<td><?php echo $device->number_name; ?></td>
|
||||
<td><?php echo $device->phone_number; ?></td>
|
||||
<td><?php echo $device->phone_number_id; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td colspan="4" class="text-center text-muted py-4">Belum ada data device.</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user