1
1
<div class =" row wz-editor-header" >
2
2
{{ csrf_field () } }
3
- <input type =" hidden" name =" project_id" id =" editor-project_id" value =" {{ $project -> id or ' ' } }" />
4
- <input type =" hidden" name =" page_id" id =" editor-page_id" value =" {{ $pageItem -> id or ' ' } }" >
5
- <input type =" hidden" name =" pid" id =" editor-pid" value =" {{ $pageItem -> pid or ' ' } }" >
6
- <input type =" hidden" name =" last_modified_at" value =" {{ $pageItem -> updated_at or ' ' } }" >
7
- <input type =" hidden" name =" history_id" value =" {{ $pageItem -> history_id or ' ' } }" >
8
- <input type =" hidden" name =" sort_level" value =" {{ $pageItem -> sort_level or 1000 } }" >
3
+ <input type =" hidden" name =" project_id" id =" editor-project_id" value =" {{ $project -> id ?? ' ' } }" />
4
+ <input type =" hidden" name =" page_id" id =" editor-page_id" value =" {{ $pageItem -> id ?? ' ' } }" >
5
+ <input type =" hidden" name =" pid" id =" editor-pid" value =" {{ $pageItem -> pid ?? ' ' } }" >
6
+ <input type =" hidden" name =" last_modified_at" value =" {{ $pageItem -> updated_at ?? ' ' } }" >
7
+ <input type =" hidden" name =" history_id" value =" {{ $pageItem -> history_id ?? ' ' } }" >
8
+ <input type =" hidden" name =" sort_level" value =" {{ $pageItem -> sort_level ?? 1000 } }" >
9
9
<div class =" col-12" style =" padding-left : 0 ;" >
10
10
<div class =" wz-panel-breadcrumb" >
11
11
<ol class =" breadcrumb pull-left" >
@@ -67,13 +67,13 @@ class="btn btn-default bmd-btn-icon" id="wz-document-goback">
67
67
<div class =" form-group" >
68
68
<label for =" editor-title" class =" bmd-label-static" >@lang (' document.title' )</label >
69
69
<input type =" text" class =" form-control wz-input-long" name =" title" id =" editor-title"
70
- value =" {{ $pageItem -> title or ' ' } }" >
70
+ value =" {{ $pageItem -> title ?? ' ' } }" >
71
71
</div >
72
72
73
73
@if ($type === ' swagger' )
74
74
<div class =" form-group" >
75
75
<label for =" form-sync-url" class =" bmd-label-static" >文档同步地址</label >
76
- <input type =" text" class =" form-control wz-input-long" name =" sync_url" id =" editor-sync_url" value =" {{ $pageItem -> sync_url or ' ' } }" placeholder =" http://" />
76
+ <input type =" text" class =" form-control wz-input-long" name =" sync_url" id =" editor-sync_url" value =" {{ $pageItem -> sync_url ?? ' ' } }" placeholder =" http://" />
77
77
</div >
78
78
@endif
79
79
</div >
@@ -95,7 +95,7 @@ class="btn btn-default bmd-btn-icon" id="wz-document-goback">
95
95
<div class =" modal-body" >
96
96
<form method =" post" action =" {{ wzRoute (' template:create' ) } }" id =" wz-template-save-form" >
97
97
{{ csrf_field () } }
98
- <input type =" hidden" name =" type" value =" {{ $type or ' markdown' } }" />
98
+ <input type =" hidden" name =" type" value =" {{ $type ?? ' markdown' } }" />
99
99
<div class =" form-group" >
100
100
<label for =" template-name" class =" control-label" >@lang (' document.template_name' )</label >
101
101
<input type =" text" name =" name" class =" form-control" id =" template-name" >
0 commit comments