You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
2.4 KiB
PHTML

@extends('temp.admin')
@php
use NN\Module\DB;
use NN\Module\Perusahaan as perush;
$demo = perush::datalogin()['data'][0]->demo;
$set = [
"title" => "Setting"
, "subtitle" => "Intro APP"
, "thead" => [
"#","kode","Nama"
]
];
@endphp
@section("content")
@include("temp.temp1", $set)
<noscript id="datainternal">{!! json_encode(DB::query_result_object("SELECT kode id, keterangan text FROM dept")) !!}</noscript>
@endsection
@section('script')
<script>
var objectForm = {
title : function(){
return 'Intro App'
},
table :"introapp",
idform :"containerforms",
newkode: ``,
kode: 'kode',
view: ['kode','nama'],
custome: {
kode : function(a){
return `<a class="btn btn-clear btn-sm" href="{{PATH}}/admin/editor/intro/${a}">Open Editor</a>`;
}
},
oncreate: function(a){
_setval('kode', Date.now())
},
onupdate: function(dt){
},
dataSelect: ["*"],
queryTemp: "SELECT {select} FROM introapp || ORDER BY kode ASC",
validasiForm: [],
data: [
{
title: 'Kode',
type: 'text',
name: 'kode',
row: 12,
readonly: true,
action: function(){
},
}
,{
title: 'Sub Index',
type: 'select',
name: 'subindex',
row: 12,
readonly: false,
data: [{id:"0", text:"Ya"},{id:"1", text:"Tidak"}],
action: function(){
},
}
,{
title: 'Nama',
type: 'text',
name: 'nama',
row: 12,
readonly: false,
action: function(){
},
}
]
};
@if($demo == 1)
objectForm.disableEditor = true;
@endif
</script>
@include('temp.crudpinjaman')
@endsection
@section('css')
<style>
.dataTable tr td:nth-child(1){
white-space: nowrap;
max-width: 60px !important;
min-width: 60px !important;
width: 60px !important;
}
</style>
<style>
.dataTable tr td:nth-child(2){
white-space: nowrap;
}
</style>
@endsection