This commit is contained in:
Neerholt 2020-08-11 10:39:22 +02:00
parent 7e985aef49
commit 37b53a5480
1 changed files with 13 additions and 1 deletions

View File

@ -18,7 +18,7 @@
<script src="https://cdn.ckeditor.com/ckeditor5/21.0.0/classic/ckeditor.js"></script>
<h1>Opret Kontakt:</h1>
<form method="post" action="{{ route("contacts.store") }}">
<form name="contact" method="post" action="{{ route("contacts.store") }}">
@csrf
<label for="contactname">Kontakt Navn:</label>
<input type="text" name="contactname" id="contactname" placeholder="Navn" required>
@ -51,3 +51,15 @@
</script>
@endsection
@section("scripts")
<script>
$(function() {
$('contact').areYouSure(
{
message: 'It looks like you have been editing something. '
+ 'If you leave before saving, your changes will be lost.'
}
);
});
</script>
@endsection