kuvia/resources/views/gallery/new.blade.php

55 lines
2.6 KiB
PHP
Raw Normal View History

2021-01-12 14:49:45 +00:00
@extends('layout/template')
@section('content')
2021-01-17 14:32:25 +00:00
<div class="row" style="margin-top: 20px;">
2021-01-12 14:49:45 +00:00
<div class="col-md-12">
2021-01-17 14:32:25 +00:00
<h1>Gallery</h1>
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
</div>
</div>
<div class="row">
<div class="col-md-9">
2021-01-12 14:49:45 +00:00
<form method="post">
@csrf
2021-01-17 15:33:14 +00:00
<input name="name" value="{{ old('name') ?? $gallery->name }}" placeholder="Name" class="form-control">
<textarea name="description" style="height: 300px;" placeholder="Description" class="form-control">{{ old('description') ?? $gallery->description }}</textarea>
2021-01-12 14:49:45 +00:00
<div class="accordion" id="accordionExample">
<div class="card">
<div class="card-header" id="headingTwo">
<h2 class="mb-0">
<button class="btn btn-link btn-block text-left collapsed" type="button" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Advanced Settings
</button>
</h2>
</div>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionExample">
<div class="card-body">
2021-01-17 16:31:00 +00:00
<input name="date" value="{{ old('date') ?? $gallery->gallery_create_time }}" class="form-control" placeholder="Create Date (yyyy-mm-dd, today if empty)">
2021-01-17 15:33:14 +00:00
<input name="url" value="{{ old('url') ?? $gallery->url }}" placeholder="URL" class="form-control">
2021-01-12 14:49:45 +00:00
</div>
</div>
</div>
</div>
2021-01-17 14:32:25 +00:00
<input type="submit" class="btn btn-outline-success" value="Save" style="margin-top: 10px;">
2021-01-12 14:49:45 +00:00
</form>
</div>
2021-01-17 14:32:25 +00:00
<div class="col-md-3">
<div class="custom-control custom-switch">
2021-01-17 15:33:14 +00:00
<input type="checkbox" class="custom-control-input" disabled value="on" id="customSwitch1" checked="">
<label class="custom-control-label" disabled="disabled" for="customSwitch1">Publish</label>
2021-01-17 14:32:25 +00:00
</div>
</div>
</div>
2021-01-12 14:49:45 +00:00
@endsection