2020-06-30 09:31:12 +00:00
|
|
|
@extends("admin.layout.base")
|
|
|
|
@extends("admin.layout.header")
|
|
|
|
|
|
|
|
@section("title")
|
|
|
|
Rolle - Rediger
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("path")
|
|
|
|
<a href="{{ route('roles.edit', ['role' => $role]) }}" class="text-white">Rediger Rolle</a> /
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("content")
|
|
|
|
<h1>Rediger Rolle:</h1>
|
|
|
|
<form method="post" action="{{ route("roles.update", ['role' => $role]) }}">
|
|
|
|
@csrf
|
|
|
|
@method("put")
|
|
|
|
<label for="name">Navn:</label>
|
2020-06-30 09:56:31 +00:00
|
|
|
<input type="text" name="name" id="name" placeholder="Admin" value="{{ $role->name }}" required>
|
2020-06-30 09:31:12 +00:00
|
|
|
<label for="name">Beskrivelse:</label>
|
2020-06-30 09:58:00 +00:00
|
|
|
<input type="text" name="description" id="description" placeholder="Admin rollen bruges til administratorene" value="{{ $role->description }}" required>
|
2020-06-30 09:31:12 +00:00
|
|
|
<input type="submit" class="btn btn-dark text-white" value="Rediger">
|
|
|
|
</form>
|
|
|
|
@endsection
|
2020-08-11 08:54:01 +00:00
|
|
|
@section("scripts")
|
|
|
|
<script>
|
|
|
|
$(function() {
|
|
|
|
$('form').areYouSure(
|
|
|
|
{
|
|
|
|
message: 'It looks like you have been editing something. '
|
|
|
|
+ 'If you leave before saving, your changes will be lost.'
|
|
|
|
}
|
|
|
|
);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@endsection
|