|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /home/matalashes/.trash/app.bak.10/Views/admin/pages/custom/store/storerole/ |
Upload File : |
<?= $this->extend('admin/layout/admin_form') ?>
<?= $this->section('content') ?>
<!-- ============================================================== -->
<!-- Page Content -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Different data widgets -->
<!-- ============================================================== -->
<?php
if ($state !== 'delete' && $state !== 'restore' && $state !== 'deletepermanent') {
?>
<?php
$validation = \Config\Services::validation();
$session = \Config\Services::session();
$title = '';
if ($state == 'add') {
$title = 'Tambah';
echo form_open($url_action_table['add']);
} else if ($state == 'edit') {
$title = 'Ubah';
echo form_open($url_action_table['edit'] . $myLib->secure_id($id));
}
?>
<div class="goback">
<?= href_button('', 'mb-6 align-self-center golink', '', 'submit', '', '', 'Kembali', $session->get('keyword'), $url_action_table); ?>
</div>
<div class="card mb-5 mb-xl-10">
<div class="card-header border-0 header-second">
<div class="card-title m-0">
<h3 class="fw-bolder m-0"><?= $title ?> Data</h3>
</div>
<div class="d-flex my-4">
<?= button_button('', 'btn btn-success align-self-center fs-7', '', 'submit',
'', '', $button); ?>
</div>
</div>
<div class="separator separator-content my-3"></div>
<div class="card-body py-4 pt-10 pb-10">
<div class="row g-3">
<div class="col-md-4">
<label class="fs-6 fw-bold mb-2">Role</label>
<?= input_field('role_name', 'form-control form-control-sm', 'role_name', 'text', 'Role',
$state == 'add' ? (isset($_POST['role_name']) ? $_POST['role_name'] : '') :
($state == 'edit' ? $_data->role_name : ''), ''); ?>
<?= span_error('role_name', $validation) ?>
</div>
<?= input_field('', '', 'id', 'hidden', '', $state == 'edit' ? $myLib->secure_id($id) : ''); ?>
</div>
</div>
</div>
<?= form_close() ?>
<?php } ?>
<!-- End Page Content -->
<!-- ============================================================== -->
<?= $this->endSection('content') ?>