Documents create begin
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<x-app-layout>
|
||||
<x-slot name="header">
|
||||
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
|
||||
{{ __('Create project') }}
|
||||
{{ $project->name }}: {{ __('Create document') }}
|
||||
</h2>
|
||||
</x-slot>
|
||||
|
||||
@@ -19,35 +19,34 @@
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<form method="POST" action="{{ route('projects.store') }}">
|
||||
<form method="POST" action="{{ route('documents.store') }}">
|
||||
@csrf
|
||||
<!-- Project name -->
|
||||
<!-- Document name -->
|
||||
<div>
|
||||
<x-label for="name" :value="__('Title')" />
|
||||
|
||||
<x-input id="name" class="block mt-1 w-full" type="text" name="name" :value="old('name')" required autofocus />
|
||||
</div>
|
||||
|
||||
<!-- Description -->
|
||||
<div class="mt-4">
|
||||
<x-label for="description" :value="__('Description')" />
|
||||
<div>
|
||||
<x-label for="parent_id" :value="__('Parent document')" />
|
||||
|
||||
<x-input id="description" class="block mt-1 w-full" type="text" name="description" :value="old('description')" required />
|
||||
{{-- <x-select>
|
||||
<option>1</option>
|
||||
</x-select> --}}
|
||||
<select id="parent_id" class="block mt-1 w-full" type="select" name="parent_id" :value="old('parent_id')" required>
|
||||
<option>1</option>
|
||||
<option>1</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- MMC Path -->
|
||||
<div class="mt-4">
|
||||
<x-label for="mmc_path" :value="__('MMC Path')" />
|
||||
|
||||
<x-input id="mmc_path" class="block mt-1 w-full" type="text" name="mmc_path" :value="old('mmc_path')" required />
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-end mt-4">
|
||||
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full">
|
||||
<i class="fa fa-add pr-2"></i>{{ __('Create project') }}
|
||||
<i class="fa fa-add pr-2"></i>{{ __('Create document') }}
|
||||
</button>
|
||||
<div class="pl-2">
|
||||
<a href="{{ route('projects.index') }}" class="btn bg-gray-500 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded-full">
|
||||
<a href="{{ route('documents.index') }}" class="btn bg-gray-500 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded-full">
|
||||
<i class="fa fa-cancel pr-2"></i>{{__('Cancel')}}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user