Form width fixed
This commit is contained in:
@@ -9,44 +9,46 @@
|
||||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
|
||||
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
|
||||
<div class="p-6 bg-white border-b border-gray-200">
|
||||
@if ($errors->any())
|
||||
<div class="alert alert-danger text-red-500 p-2">
|
||||
<ul class="list-unstyled alert alert-danger">
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<div class="w-96 mx-auto">
|
||||
@if ($errors->any())
|
||||
<div class="alert alert-danger text-red-500 p-2">
|
||||
<ul class="list-unstyled alert alert-danger">
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<form method="POST" action="{{ route('projects.store') }}">
|
||||
@csrf
|
||||
<!-- Project 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')" />
|
||||
|
||||
<x-input id="description" class="block mt-1 w-full" type="text" name="description" :value="old('description')" required />
|
||||
</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">
|
||||
<x-button class="ml-4">
|
||||
{{ __('Create project') }}
|
||||
</x-button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@endif
|
||||
<form method="POST" action="{{ route('projects.store') }}">
|
||||
@csrf
|
||||
<!-- Project 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')" />
|
||||
|
||||
<x-input id="description" class="block mt-1 w-full" type="text" name="description" :value="old('description')" required />
|
||||
</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">
|
||||
<x-button class="ml-4">
|
||||
{{ __('Create project') }}
|
||||
</x-button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="3">No Projects!</td>
|
||||
<td colspan="4" class="p-2 border border-gray-200 text-center">No Projects!</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user