Stuff
|
@ -26,7 +26,8 @@ class GalleryController extends BaseController
|
||||||
}
|
}
|
||||||
|
|
||||||
public function newView() {
|
public function newView() {
|
||||||
return view("gallery.new");
|
$gallery = new Gallery();
|
||||||
|
return view("gallery.new", ["gallery" => $gallery]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function newGallery(Request $request) {
|
public function newGallery(Request $request) {
|
||||||
|
@ -101,11 +102,11 @@ class GalleryController extends BaseController
|
||||||
|
|
||||||
public function editGalleryView($name, Request $request) {
|
public function editGalleryView($name, Request $request) {
|
||||||
$gallery = Gallery::getByTenantAndUrl(session("current_tenant_id"), $name);
|
$gallery = Gallery::getByTenantAndUrl(session("current_tenant_id"), $name);
|
||||||
session(['_old_input.name' => $gallery->name]);
|
/*session(['_old_input.name' => $gallery->name]);
|
||||||
session(['_old_input.description' => $gallery->description]);
|
session(['_old_input.description' => $gallery->description]);
|
||||||
session(['_old_input.date' => $gallery->gallery_create_time]);
|
session(['_old_input.date' => $gallery->gallery_create_time]);
|
||||||
session(['_old_input.url' => $gallery->url]);
|
session(['_old_input.url' => $gallery->url]);*/
|
||||||
return view("gallery.new");
|
return view("gallery.new", ["gallery" => $gallery]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function editGallery($name, Request $request) {
|
public function editGallery($name, Request $request) {
|
||||||
|
|
|
@ -4,8 +4,6 @@ all:
|
||||||
hosts:
|
hosts:
|
||||||
www1.fra.kuvia.cloud:
|
www1.fra.kuvia.cloud:
|
||||||
domain: www1.fra.kuvia.cloud www.kuvia.cloud kuvia.cloud
|
domain: www1.fra.kuvia.cloud www.kuvia.cloud kuvia.cloud
|
||||||
www2.fra.kuvia.cloud:
|
|
||||||
domain: www2.fra.kuvia.cloud
|
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
hosts:
|
hosts:
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<form method="post">
|
<form method="post">
|
||||||
@csrf
|
@csrf
|
||||||
<input name="name" value="{{ old('name') }}" placeholder="Name" class="form-control">
|
<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') }}</textarea>
|
<textarea name="description" style="height: 300px;" placeholder="Description" class="form-control">{{ old('description') ?? $gallery->description }}</textarea>
|
||||||
|
|
||||||
<div class="accordion" id="accordionExample">
|
<div class="accordion" id="accordionExample">
|
||||||
|
|
||||||
|
@ -34,8 +34,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionExample">
|
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionExample">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<input name="date" value="{{ old('date') }}" class="form-control" placeholder="Create Date (yyyy-mm-dd, today if empty)">
|
<input name="date" value="{{ old('date') ?? $gallery->date }}" class="form-control" placeholder="Create Date (yyyy-mm-dd, today if empty)">
|
||||||
<input name="url" value="{{ old('url') }}" placeholder="URL" class="form-control">
|
<input name="url" value="{{ old('url') ?? $gallery->url }}" placeholder="URL" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -46,8 +46,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<div class="custom-control custom-switch">
|
<div class="custom-control custom-switch">
|
||||||
<input type="checkbox" class="custom-control-input" id="customSwitch1" checked="">
|
<input type="checkbox" class="custom-control-input" disabled value="on" id="customSwitch1" checked="">
|
||||||
<label class="custom-control-label" for="customSwitch1">Publish</label>
|
<label class="custom-control-label" disabled="disabled" for="customSwitch1">Publish</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -62,5 +62,6 @@
|
||||||
|
|
||||||
<script src="/js/jquery-3.5.1.min.js"></script>
|
<script src="/js/jquery-3.5.1.min.js"></script>
|
||||||
<script src="/js/bootstrap.bundle.min.js"></script>
|
<script src="/js/bootstrap.bundle.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
|
||||||
@yield('js')
|
@yield('js')
|
||||||
</body>
|
</body>
|
||||||
|
|
BIN
storage/cache/cache_1_3_100_big
vendored
Before Width: | Height: | Size: 223 KiB |
BIN
storage/cache/cache_1_3_100_medium
vendored
Before Width: | Height: | Size: 60 KiB |
BIN
storage/cache/cache_1_3_100_orginal
vendored
Before Width: | Height: | Size: 311 KiB |
BIN
storage/cache/cache_1_3_100_small
vendored
Before Width: | Height: | Size: 16 KiB |
BIN
storage/cache/cache_1_3_101_big
vendored
Before Width: | Height: | Size: 266 KiB |
BIN
storage/cache/cache_1_3_101_medium
vendored
Before Width: | Height: | Size: 71 KiB |
BIN
storage/cache/cache_1_3_101_orginal
vendored
Before Width: | Height: | Size: 363 KiB |
BIN
storage/cache/cache_1_3_101_small
vendored
Before Width: | Height: | Size: 19 KiB |
BIN
storage/cache/cache_1_3_102_big
vendored
Before Width: | Height: | Size: 302 KiB |
BIN
storage/cache/cache_1_3_102_medium
vendored
Before Width: | Height: | Size: 85 KiB |
BIN
storage/cache/cache_1_3_102_orginal
vendored
Before Width: | Height: | Size: 454 KiB |
BIN
storage/cache/cache_1_3_102_small
vendored
Before Width: | Height: | Size: 23 KiB |
BIN
storage/cache/cache_1_3_103_big
vendored
Before Width: | Height: | Size: 285 KiB |
BIN
storage/cache/cache_1_3_103_medium
vendored
Before Width: | Height: | Size: 78 KiB |
BIN
storage/cache/cache_1_3_103_orginal
vendored
Before Width: | Height: | Size: 433 KiB |
BIN
storage/cache/cache_1_3_103_small
vendored
Before Width: | Height: | Size: 20 KiB |
BIN
storage/cache/cache_1_3_104_big
vendored
Before Width: | Height: | Size: 224 KiB |
BIN
storage/cache/cache_1_3_104_medium
vendored
Before Width: | Height: | Size: 66 KiB |
BIN
storage/cache/cache_1_3_104_orginal
vendored
Before Width: | Height: | Size: 348 KiB |
BIN
storage/cache/cache_1_3_104_small
vendored
Before Width: | Height: | Size: 18 KiB |
BIN
storage/cache/cache_1_3_105_big
vendored
Before Width: | Height: | Size: 332 KiB |
BIN
storage/cache/cache_1_3_105_medium
vendored
Before Width: | Height: | Size: 87 KiB |
BIN
storage/cache/cache_1_3_105_orginal
vendored
Before Width: | Height: | Size: 485 KiB |
BIN
storage/cache/cache_1_3_105_small
vendored
Before Width: | Height: | Size: 22 KiB |
BIN
storage/cache/cache_1_3_106_big
vendored
Before Width: | Height: | Size: 125 KiB |
BIN
storage/cache/cache_1_3_106_medium
vendored
Before Width: | Height: | Size: 43 KiB |
BIN
storage/cache/cache_1_3_106_orginal
vendored
Before Width: | Height: | Size: 193 KiB |
BIN
storage/cache/cache_1_3_106_small
vendored
Before Width: | Height: | Size: 15 KiB |
BIN
storage/cache/cache_1_3_107_big
vendored
Before Width: | Height: | Size: 258 KiB |
BIN
storage/cache/cache_1_3_107_medium
vendored
Before Width: | Height: | Size: 77 KiB |
BIN
storage/cache/cache_1_3_107_orginal
vendored
Before Width: | Height: | Size: 413 KiB |
BIN
storage/cache/cache_1_3_107_small
vendored
Before Width: | Height: | Size: 22 KiB |
BIN
storage/cache/cache_1_3_108_big
vendored
Before Width: | Height: | Size: 228 KiB |
BIN
storage/cache/cache_1_3_108_medium
vendored
Before Width: | Height: | Size: 66 KiB |
BIN
storage/cache/cache_1_3_108_orginal
vendored
Before Width: | Height: | Size: 324 KiB |
BIN
storage/cache/cache_1_3_108_small
vendored
Before Width: | Height: | Size: 18 KiB |
BIN
storage/cache/cache_1_3_109_big
vendored
Before Width: | Height: | Size: 239 KiB |
BIN
storage/cache/cache_1_3_109_medium
vendored
Before Width: | Height: | Size: 65 KiB |
BIN
storage/cache/cache_1_3_109_orginal
vendored
Before Width: | Height: | Size: 318 KiB |
BIN
storage/cache/cache_1_3_109_small
vendored
Before Width: | Height: | Size: 17 KiB |
BIN
storage/cache/cache_1_3_110_big
vendored
Before Width: | Height: | Size: 257 KiB |
BIN
storage/cache/cache_1_3_110_medium
vendored
Before Width: | Height: | Size: 70 KiB |
BIN
storage/cache/cache_1_3_110_orginal
vendored
Before Width: | Height: | Size: 388 KiB |
BIN
storage/cache/cache_1_3_110_small
vendored
Before Width: | Height: | Size: 19 KiB |
BIN
storage/cache/cache_1_3_111_big
vendored
Before Width: | Height: | Size: 234 KiB |
BIN
storage/cache/cache_1_3_111_medium
vendored
Before Width: | Height: | Size: 68 KiB |
BIN
storage/cache/cache_1_3_111_orginal
vendored
Before Width: | Height: | Size: 358 KiB |
BIN
storage/cache/cache_1_3_111_small
vendored
Before Width: | Height: | Size: 20 KiB |
BIN
storage/cache/cache_1_3_112_big
vendored
Before Width: | Height: | Size: 102 KiB |
BIN
storage/cache/cache_1_3_112_medium
vendored
Before Width: | Height: | Size: 31 KiB |
BIN
storage/cache/cache_1_3_112_orginal
vendored
Before Width: | Height: | Size: 160 KiB |
BIN
storage/cache/cache_1_3_112_small
vendored
Before Width: | Height: | Size: 9.6 KiB |
BIN
storage/cache/cache_1_3_113_big
vendored
Before Width: | Height: | Size: 118 KiB |
BIN
storage/cache/cache_1_3_113_medium
vendored
Before Width: | Height: | Size: 32 KiB |
BIN
storage/cache/cache_1_3_113_orginal
vendored
Before Width: | Height: | Size: 184 KiB |
BIN
storage/cache/cache_1_3_113_small
vendored
Before Width: | Height: | Size: 8.4 KiB |
BIN
storage/cache/cache_1_3_114_big
vendored
Before Width: | Height: | Size: 330 KiB |
BIN
storage/cache/cache_1_3_114_medium
vendored
Before Width: | Height: | Size: 84 KiB |
BIN
storage/cache/cache_1_3_114_orginal
vendored
Before Width: | Height: | Size: 483 KiB |
BIN
storage/cache/cache_1_3_114_small
vendored
Before Width: | Height: | Size: 20 KiB |
BIN
storage/cache/cache_1_3_115_big
vendored
Before Width: | Height: | Size: 215 KiB |
BIN
storage/cache/cache_1_3_115_medium
vendored
Before Width: | Height: | Size: 58 KiB |
BIN
storage/cache/cache_1_3_115_orginal
vendored
Before Width: | Height: | Size: 287 KiB |
BIN
storage/cache/cache_1_3_115_small
vendored
Before Width: | Height: | Size: 16 KiB |
BIN
storage/cache/cache_1_3_116_big
vendored
Before Width: | Height: | Size: 257 KiB |
BIN
storage/cache/cache_1_3_116_medium
vendored
Before Width: | Height: | Size: 70 KiB |
BIN
storage/cache/cache_1_3_116_orginal
vendored
Before Width: | Height: | Size: 341 KiB |
BIN
storage/cache/cache_1_3_116_small
vendored
Before Width: | Height: | Size: 19 KiB |
BIN
storage/cache/cache_1_3_117_big
vendored
Before Width: | Height: | Size: 262 KiB |
BIN
storage/cache/cache_1_3_117_medium
vendored
Before Width: | Height: | Size: 81 KiB |
BIN
storage/cache/cache_1_3_117_orginal
vendored
Before Width: | Height: | Size: 407 KiB |
BIN
storage/cache/cache_1_3_117_small
vendored
Before Width: | Height: | Size: 23 KiB |
BIN
storage/cache/cache_1_3_118_big
vendored
Before Width: | Height: | Size: 366 KiB |
BIN
storage/cache/cache_1_3_118_medium
vendored
Before Width: | Height: | Size: 95 KiB |
BIN
storage/cache/cache_1_3_118_orginal
vendored
Before Width: | Height: | Size: 556 KiB |
BIN
storage/cache/cache_1_3_118_small
vendored
Before Width: | Height: | Size: 23 KiB |
BIN
storage/cache/cache_1_3_119_big
vendored
Before Width: | Height: | Size: 220 KiB |
BIN
storage/cache/cache_1_3_119_medium
vendored
Before Width: | Height: | Size: 61 KiB |
BIN
storage/cache/cache_1_3_119_orginal
vendored
Before Width: | Height: | Size: 308 KiB |
BIN
storage/cache/cache_1_3_119_small
vendored
Before Width: | Height: | Size: 16 KiB |
BIN
storage/cache/cache_1_3_120_big
vendored
Before Width: | Height: | Size: 210 KiB |
BIN
storage/cache/cache_1_3_120_medium
vendored
Before Width: | Height: | Size: 59 KiB |
BIN
storage/cache/cache_1_3_120_orginal
vendored
Before Width: | Height: | Size: 300 KiB |
BIN
storage/cache/cache_1_3_120_small
vendored
Before Width: | Height: | Size: 16 KiB |
BIN
storage/cache/cache_1_3_121_big
vendored
Before Width: | Height: | Size: 179 KiB |
BIN
storage/cache/cache_1_3_121_medium
vendored
Before Width: | Height: | Size: 50 KiB |
BIN
storage/cache/cache_1_3_121_orginal
vendored
Before Width: | Height: | Size: 270 KiB |
BIN
storage/cache/cache_1_3_121_small
vendored
Before Width: | Height: | Size: 14 KiB |
BIN
storage/cache/cache_1_3_122_big
vendored
Before Width: | Height: | Size: 183 KiB |
BIN
storage/cache/cache_1_3_122_medium
vendored
Before Width: | Height: | Size: 49 KiB |
BIN
storage/cache/cache_1_3_122_orginal
vendored
Before Width: | Height: | Size: 246 KiB |
BIN
storage/cache/cache_1_3_122_small
vendored
Before Width: | Height: | Size: 13 KiB |
BIN
storage/cache/cache_1_3_123_big
vendored
Before Width: | Height: | Size: 187 KiB |
BIN
storage/cache/cache_1_3_123_medium
vendored
Before Width: | Height: | Size: 57 KiB |
BIN
storage/cache/cache_1_3_123_orginal
vendored
Before Width: | Height: | Size: 256 KiB |
BIN
storage/cache/cache_1_3_123_small
vendored
Before Width: | Height: | Size: 17 KiB |