2020-05-05 04:25:56 +00:00
|
|
|
@extends('adminlte::page')
|
|
|
|
|
2020-09-01 11:43:39 +00:00
|
|
|
@section('title', config('app.name') . '| ' . __('messages.form_builder.builder_name'))
|
2020-05-05 04:25:56 +00:00
|
|
|
|
|
|
|
@section('content_header')
|
|
|
|
|
2020-09-01 11:43:39 +00:00
|
|
|
<h4>{{__('messages.adm')}} / {{__('messages.form_builder.builder')}}</h4>
|
2020-05-05 04:25:56 +00:00
|
|
|
|
|
|
|
@stop
|
|
|
|
|
2020-05-06 22:16:34 +00:00
|
|
|
@section('js')
|
|
|
|
|
2021-01-27 02:07:34 +00:00
|
|
|
<script>
|
|
|
|
jQuery(window).bind('beforeunload', function(){
|
|
|
|
return 'Are you sure you want to leave the form builder? You might have unsaved work.';
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2020-05-06 22:16:34 +00:00
|
|
|
@if (session()->has('success'))
|
|
|
|
|
|
|
|
<script>
|
|
|
|
toastr.success("{{session('success')}}")
|
|
|
|
</script>
|
|
|
|
|
|
|
|
@elseif(session()->has('error'))
|
|
|
|
|
|
|
|
@foreach(session('error') as $error)
|
|
|
|
|
|
|
|
<script>
|
2020-05-06 23:36:33 +00:00
|
|
|
toastr.error("{{session('error')}}")
|
2020-05-06 22:16:34 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
@endif
|
|
|
|
|
2021-09-03 23:44:54 +00:00
|
|
|
@if(session()->has('exception'))
|
|
|
|
<script>
|
|
|
|
toastr.error("{{session('exception')}}")
|
|
|
|
</script>
|
|
|
|
@endif
|
|
|
|
|
2020-05-06 22:16:34 +00:00
|
|
|
@stop
|
|
|
|
|
2020-05-05 04:25:56 +00:00
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-md-5 offset-md-3">
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
2020-05-06 02:44:39 +00:00
|
|
|
<form id="formbuilder" action="{{route('saveForm')}}" method="POST">
|
|
|
|
|
|
|
|
@csrf
|
|
|
|
|
|
|
|
<fieldset id="buildyourform">
|
2020-09-01 11:43:39 +00:00
|
|
|
<legend class="text-center">{{__('messages.form_builder.builder')}}</legend>
|
2020-05-06 04:42:55 +00:00
|
|
|
|
2020-09-01 11:43:39 +00:00
|
|
|
<input type="text" name="formName" class="form-control mb-5" placeholder="{{__('messages.form_builder.name_form')}}" required>
|
2020-05-06 04:42:55 +00:00
|
|
|
|
2020-05-06 02:44:39 +00:00
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
</form>
|
2020-05-05 04:25:56 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-footer text-center">
|
|
|
|
|
2020-09-01 11:43:39 +00:00
|
|
|
<button onclick="save()" type="button" class="btn btn-success">{{__('messages.form_builder.save_form')}}</button>
|
2020-09-02 19:11:01 +00:00
|
|
|
<input type="button" value="{{__('messages.new_field')}}" class="add btn btn-info ml-3" id="add" />
|
2020-05-06 23:36:33 +00:00
|
|
|
|
2020-05-05 04:25:56 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|
2020-07-16 05:46:20 +00:00
|
|
|
|
|
|
|
@section('footer')
|
|
|
|
@include('breadcrumbs.dashboard.footer')
|
|
|
|
@stop
|