55 lines
2 KiB
PHP
55 lines
2 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<div class="container">
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
{{$project->name}} - {{$project->display_name}}
|
|
<a href="/projects/{{$project->uuid}}/delete" class="btn btn-sm btn-danger float-right">Supprimer</a>
|
|
<a href="{{ route('projects.index') }}" class="btn btn-sm btn-primary float-right mr-2">Retour</a>
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
@if (session('status'))
|
|
<div class="alert alert-success" role="alert">
|
|
{{ session('status') }}
|
|
</div>
|
|
@endif
|
|
@if (session('error'))
|
|
<div class="alert alert-danger" role="alert">
|
|
{{ session('error') }}
|
|
</div>
|
|
@endif
|
|
@if ($errors->any())
|
|
<div class="alert alert-danger">
|
|
<ul>
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
<form action="/projects/{{$project->uuid}}/update" method="POST">
|
|
@csrf
|
|
@include('projects.form-inputs')
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
document.addEventListener('click', function(event) {
|
|
if (event.target.type === 'text' || event.target.type === 'url') {
|
|
if (event.target.value.length > 0) {
|
|
event.target.select();
|
|
document.execCommand("copy");
|
|
//console.log(event.target.value);
|
|
}
|
|
}
|
|
|
|
}, false);
|
|
</script>
|
|
@endsection
|