7c114edf03
1)fasa 1 shj, 2 hari sblm lelong, tangguh pertama kali 2)tukar nama role kpd tugas 3)update button start all lelong
58 lines
2.0 KiB
PHP
58 lines
2.0 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<div class="container">
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-8">
|
|
@if ($message = Session::get('success'))
|
|
<div class="alert alert-success">
|
|
<p>{{ $message }}</p>
|
|
</div>
|
|
@endif
|
|
<form action="{{ route('pengguna.storerole') }}" method="POST" id="formrole">
|
|
@csrf
|
|
<div class="form-row">
|
|
<div class="form-group col-md-6">
|
|
<label for="rolename">Tugas</label>
|
|
<input type="text" value="{{$permission->name}}" class="form-control" name="name" id="rolename" readonly>
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<label for="keterangan">Keterangan</label>
|
|
<textarea class="form-control" id="keterangan" rows="3" readonly>{{$permission->description}}</textarea>
|
|
</div>
|
|
<div class="text-right pt-4">
|
|
<input type="hidden" name="idrole" value="{{$permission->id}}">
|
|
<a href="{{url('pengguna/roles')}}" class="btn btn-primary">Kembali</a>
|
|
<button type="button" class="btn btn-warning" onclick="confirm()">Simpan</button>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
function confirm() {
|
|
$.confirm({
|
|
title: 'Pengesahan',
|
|
content: 'Anda pasti?',
|
|
type: 'orange',
|
|
typeAnimated: true,
|
|
buttons: {
|
|
Simpan: {
|
|
btnClass: 'btn-warning',
|
|
action: function () {
|
|
$("#formrole").submit();
|
|
}
|
|
},
|
|
Batal: {
|
|
btnClass: 'btn-default',
|
|
action: function () {}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
</script>
|
|
@endsection
|