105 lines
4.2 KiB
PHP
105 lines
4.2 KiB
PHP
@extends('layouts.backapp')
|
|
|
|
@section('content')
|
|
|
|
<style type="text/css">
|
|
#nama{
|
|
text-transform: uppercase;
|
|
}
|
|
</style>
|
|
|
|
<div class="kt-portlet kt-portlet--mobile" id="kt_blockui_datatable">
|
|
<div class="kt-portlet__head kt-portlet__head--lg">
|
|
<div class="kt-portlet__head-label">
|
|
<span class="kt-portlet__head-icon">
|
|
<i class="kt-font-brand flaticon2-line-chart"></i>
|
|
</span>
|
|
<h3 class="kt-portlet__head-title">
|
|
Pekerjaan
|
|
</h3>
|
|
</div>
|
|
@can('create', $menus['work.index'])
|
|
<div class="kt-portlet__head-toolbar">
|
|
<div class="kt-portlet__head-wrapper">
|
|
<div class="kt-portlet__head-actions">
|
|
<button type="button" class="btn btn-bold btn-label-brand btn-sm" id="addWork"> Tambah </button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endcan
|
|
</div>
|
|
|
|
<div class="kt-portlet__body">
|
|
<div class="table-responsive">
|
|
<!--begin: Datatable -->
|
|
<table class="table table-striped table-bordered table-hover table-checkable" id="kt_table">
|
|
<thead>
|
|
<tr>
|
|
<th>Kategori</th>
|
|
<th>Pekerjaan</th>
|
|
<th>Short Name</th>
|
|
<th>Deskripsi</th>
|
|
<th>Aksi</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
<!--end: Datatable -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!--begin::Modal-->
|
|
<div class="modal fade" id="workModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog" role="document">
|
|
<form id="workForm" class="kt-form">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="modalHeading"></h5>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="kt-portlet__body">
|
|
<div class="form-group">
|
|
<label>Nama Pekerjaan</label>
|
|
<input type="text" class="form-control inputUppercase" id="name" name="name" placeholder="Masukan Nama Pekerjaan" value="" required="" autocomplete="off" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Short Name</label>
|
|
<input type="text" class="form-control inputUppercase" id="shortname" name="shortname" placeholder="Masukan Short Name" value="" required="" autocomplete="off" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="category_id">Kategori</label>
|
|
<select name="category_id" id="category_id" class="form-control">
|
|
@foreach ($categories as $category)
|
|
<option value="{{ $category->id }}">{{ $category->name }}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="desc">Deskripsi Pekerjaan</label>
|
|
<textarea name="desc" id="desc" rows="5" class="form-control"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Batal</button>
|
|
<button type="submit" class="btn btn-primary" id="saveBtn" value="create">Simpan</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<!--end::Modal-->
|
|
|
|
|
|
<input type="hidden" name="ajax_url" value="{{ route('work.index') }}">
|
|
<input type="hidden" name="store_url" value="{{ route('work.store') }}">
|
|
|
|
@endsection
|
|
|
|
@section('javascripts')
|
|
<script src="{{ url('js/pages/back/master/work.js') }}" type="text/javascript"></script>
|
|
@endsection |