Project continue

This commit is contained in:
Александр Бабкин
2022-06-29 16:11:14 +03:00
parent 94fdd4809d
commit 6b85576c4e
8 changed files with 118 additions and 103 deletions

View File

@@ -1,54 +1,57 @@
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ __('Edit user') }}
{{ __('Edit project') }}
</h2>
</x-slot>
<div class="py-12">
<!-- <div class="py-12">
<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">
<x-auth-validation-errors class="mb-4" :errors="$errors" />
<form method="POST" action="{{ route('users.update', $user->id) }}">
@csrf
@method('PUT')
<!-- User name -->
<!-- <input type="hidden" name="id" id="id" value="{{ $user->id}}"> -->
<div>
<x-label for="username" :value="__('User name')" />
<x-input id="username" class="block mt-1 w-full" type="text" name="username" value="{{ $user->username }}" required autofocus />
<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.update,$project->id') }}">
@csrf
@method('PUT')
<div>
<x-label for="name" :value="__('Title')" />
<!-- Name -->
<div>
<x-label for="name" :value="__('Name')" />
<x-input id="name" class="block mt-1 w-full" type="text" name="name" value="{{ $project->name }}" required autofocus />
</div>
<div class="mt-4">
<x-label for="description" :value="__('Description')" />
<x-input id="name" class="block mt-1 w-full" type="text" name="name" value="{{ $user->name }}" required />
</div>
<x-input id="description" class="block mt-1 w-full" type="text" name="description" value="{{ $project->description }}" required />
</div>
<div class="mt-4">
<x-label for="mmc_path" :value="__('MMC Path')" />
<!-- Email Address -->
<div class="mt-4">
<x-label for="email" :value="__('Email')" />
<x-input id="mmc_path" class="block mt-1 w-full" type="text" name="mmc_path" value="{{ $project->mmc_path }}" required />
</div>
<x-input id="email" class="block mt-1 w-full" type="email" name="email" value="{{ $user->email }}" required />
</div>
<div class="flex items-center justify-end mt-4">
<!-- <button type="submit" class="btn">{{ __('Save') }}</button> -->
<x-button class="ml-4">
{{ __('Save') }}
</x-button>
<!-- <a href="{{ route('users.index') }}">
<x-button class="ml-4">
{{ __('Cancel') }}
</x-button>
</a> -->
</div>
</form>
<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>{{ __('Save') }}
</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">
<i class="fa fa-cancel pr-2"></i>{{__('Cancel')}}
</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div> -->
</x-app-layout>