<script src="https://cdn.tiny.cloud/1/g2q15den9yhncvk03y5mpbhbp05scqqsx923xs8u7e3sr2iq/tinymce/7/tinymce.min.js"
    referrerpolicy="origin"></script>
<script>
tinymce.init({
    selector: '#areaDokumentasi',
    plugins: [
        'advlist', 'autolink', 'link', 'image', 'lists', 'charmap', 'preview', 'anchor', 'pagebreak',
        'searchreplace', 'wordcount', 'visualblocks', 'visualchars', 'code', 'fullscreen', 'insertdatetime',
        'media', 'table', 'emoticons', 'help'
    ],
    toolbar: 'undo redo | styles | bold italic | alignleft aligncenter alignright alignjustify | ' +
        'bullist numlist outdent indent | link image | print preview media fullscreen | ' +
        'forecolor backcolor emoticons | help',
    menu: {
        favs: {
            title: 'My Favorites',
            items: 'code visualaid | searchreplace | emoticons'
        }
    },
    menubar: 'favs file edit view insert format tools table help',
    content_css: 'css/content.css'
});
</script>
<div id="content" class="main-content">
    <div class="layout-px-spacing">
        <br>
        <?= $this->session->flashdata('pesan_berhasil'); ?>
        <?= $this->session->flashdata('pesan_gagal'); ?>
        <?php echo form_open_multipart('owner/dokumentasi/crud'); ?>
        <input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>"
            value="<?= $this->security->get_csrf_hash(); ?>" style="display: none">
        <div class="row layout-spacing" style="padding-bottom: 10px;">
            <div class="col-lg-12">
                <blockquote class="blockquote media-object">
                    <div class="form-group">
                        <label>Judul Dokumentasi</label>
                        <input type="text" class="form-control" value="<?= $data_doc['jdl_doc'] ?>" id="jdl_doc"
                            name="jdl_doc" placeholder="Masukkan Judul Dokumentasi" required>
                        <input type="text" class="form-control" id="doc_id" name="doc_id" value="<?= $data_doc['id'] ?>"
                            placeholder="Masukkan Judul Dokumentasi" required hidden readonly>
                    </div>
                    <div class="form-group">
                        <label>Keterangan Dokumentasi</label>
                        <textarea type="text" cols="30" rows="5" class="form-control" id="ket_doc" name="ket_doc"
                            placeholder="Masukkan Keterangan Dokumentasi"
                            required><?= $data_doc['ket_doc'] ?></textarea>
                    </div>
                    <div class="form-group">
                        <label>Level Role</label>
                        <select class="form-control" id="role_level" name="role_level" required>
                            <?php
                            foreach ($data_role as $Data_role) :
                                if ($Data_role->id == $data_doc['role_level']) :
                            ?>
                            <option value="<?= $Data_role->id ?>"><?= $Data_role->role_level ?></option>
                            <?php endif; ?>
                            <?php endforeach;
                            ?>
                            <?php
                            foreach ($data_role as $Data_role) : ?>
                            <option value="<?= $Data_role->id ?>"><?= $Data_role->role_level ?></option>
                            <?php endforeach;
                            ?>
                        </select>
                    </div>
                    <div class="form-group">
                        <textarea id="areaDokumentasi" name="areaDokumentasi"><?= $data_doc['langkah_doc'] ?></textarea>
                    </div>
                </blockquote>
            </div>
        </div>
        <div class="row layout-spacing" style="padding-bottom: 10px;">
            <div class="col-lg-12">
                <blockquote class="blockquote media-object">
                    <div class="modal-footer">
                        <button type="button" class="btn btn-outline-primary" data-dismiss="modal">
                            Batal
                        </button>
                        <button type="submit" id="hapusDataKasus" name="hapusDataKasus"
                            class="btn btn-danger">Hapus</button>
                        <button type="submit" id="ubahDataKasus" name="ubahDataKasus"
                            class="btn btn-warning">Ubah</button>
                    </div>
                </blockquote>
            </div>
        </div>
        <?php echo form_close(); ?>
    </div>
</div>