@extends('ahphc.mod_schema_docs.layout')
@section('dataForm_method', 'POST')
@section('dataForm_action', route('schema_docs.update', ['id' => $schemaDoc->id]))
@section('dataForm_laravelCsrf', csrf_field())
@section('dataForm_laravelMethod', method_field('PUT'))
@section('title_class', $errors->has('title') ? 'mods-errorField' : '')
@section('title_value', old('title', $schemaDoc->title))
@section('title_disabled', '')
@section('active_checked', $schemaDoc->active == false ? '' : 'checked')
@section('active_disabled', '')
@section('on_files_checked', $schemaDoc->on_files == false ? '' : 'checked')
@section('on_files_disabled', '')
@if ($userModPermissions->create == true)
@section('dataButtonAdd_onclick', route('schema_docs.create'))
@section('dataButtonAdd_disabled', '')
@else
@section('dataButtonAdd_onclick', '')
@section('dataButtonAdd_disabled', 'disabled')
@endif
@section('dataButtonPrint_disabled', '')
@if ($userModPermissions->delete == true)
@section('dataButtonDel_formDeleteType', 'submit')
@section('dataButtonDel_formDeleteId', 'dataFormDelete')
@section('dataButtonDel_disabled', '')
@section('HTML-dataFormDelete')
@endsection
@else
@section('dataButtonDel_disabled', 'disabled')
@endif
@section('dataButtonSave_disabled', '')
@section('dataButtonSave_formType', 'submit')
@section('dataButtonSave_formId', 'dataForm')