瀏覽代碼

Added current title as value for input so that the current value remains stored by default

Samy Elshamy 6 月之前
父節點
當前提交
705d2a075d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      resources/views/admin/pages/edit.blade.php

+ 1 - 1
resources/views/admin/pages/edit.blade.php

@@ -16,7 +16,7 @@
 </div>
 <div class="container-fluid mt-4">
     <input type="hidden" id="slug" name="slug" value="{{$page->slug}}">
-    <input class="form-control form-control-lg" id="title" name="title" placeholder="Title">
+    <input class="form-control form-control-lg" id="title" name="title" placeholder="Title" value="{{$page->title}}">
     <p class="small text-muted">
       Page URL: <span class="page-url font-weight-bold">{{$page->url()}}</span>
       {{-- <span class="pl-1"><a href="#" class="font-weight-bold">Edit</a></span> --}}