<?php
/*
 * *************************************************
 * Copyright (C) 2021 Earworks.                    *
 * Codeigniter Project Template Modification       *
 * Please contact our email for more information : *
 * contact@earworks.co.id                          *
 * *************************************************
 */

defined('BASEPATH') OR exit('No direct script access allowed');
?>
<?= form_open(current_url() . '?redir=' . $redir, ['class' => 'form-horizontal']) ?>

<div class="form-group">
    <?= lang('group', [], 'group', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_input('group', $data['group'], ['class' => 'form-control']) ?>
    </div>
</div>

<div class="form-group">
    <?= lang('name', [], 'name', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_input('name', $data['name'], ['class' => 'form-control']) ?>
    </div>
</div>

<div class="form-group">
    <?= lang('description', [], 'description', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_textarea('description', $data['description'], ['class' => 'form-control']) ?>
    </div>
</div>

<div class="form-group">
    <?= lang('status', [], 'status', ['class' => 'col-sm-3 control-label']) ?>
    <div class="col-sm-9">
        <?= form_dropdown('status', Permission_model::status_label(), $data['status'], ['class' => 'form-control']) ?>
    </div>
</div>

<div class="form-group">
    <div class="col-sm-9 col-sm-offset-3">
        <?= form_submit('submit', 'Submit', ['class' => 'btn blue']) ?>
    </div>
</div>
<?= form_close() ?>