You've already forked lubo_comment_query
优化下翻译,创建节目时,添加old参数
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
"Logout": "登出",
|
||||
"Name": "姓名",
|
||||
"Not Found": "页面不存在",
|
||||
"of": "于",
|
||||
"of": "条,共有",
|
||||
"Oh no": "不好了",
|
||||
"Page Expired": "页面会话已超时",
|
||||
"Pagination Navigation": "分页导航",
|
||||
@ -29,7 +29,7 @@
|
||||
"Remember Me": "记住我",
|
||||
"Reset Password": "重置密码",
|
||||
"Reset Password Notification": "重置密码通知",
|
||||
"results": "结果",
|
||||
"results": "条结果",
|
||||
"Send Password Reset Link": "发送重设密码链接",
|
||||
"Server Error": "服务器错误",
|
||||
"Service Unavailable": "服务不可用",
|
||||
|
@ -11,19 +11,19 @@
|
||||
<input type="hidden" name="id" value="{{$program->id}}">
|
||||
<label class="block my-2">
|
||||
节目名称
|
||||
<input class="form-input border-0 border-b-2 w-full" type="text" name="name" value="{{$program->name}}">
|
||||
<input class="form-input border-0 border-b-2 w-full" type="text" required name="name" value="{{ old("name", $program->name) }}">
|
||||
</label>
|
||||
<label class="block my-2">
|
||||
节目难度
|
||||
<input class="form-input border-0 border-b-2 w-full" type="text" name="difficulty" value="{{$program->difficulty}}">
|
||||
<input class="form-input border-0 border-b-2 w-full" type="text" name="difficulty" value="{{ old("difficulty", $program->difficulty) }}">
|
||||
</label>
|
||||
<label class="block my-2">
|
||||
节目要求
|
||||
<input class="form-input border-0 border-b-2 w-full" type="text" name="desc" value="{{$program->desc}}">
|
||||
<input class="form-input border-0 border-b-2 w-full" type="text" name="desc" value="{{ old("desc", $program->desc) }}">
|
||||
</label>
|
||||
<label class="block my-2">
|
||||
是否结束维护
|
||||
<input class="form-checkbox" type="checkbox" name="status" value="1" @if($program->status == 1) checked @endif>
|
||||
<input class="form-checkbox" type="checkbox" name="status" value="1" @if(old("status", $program->status) == 1) checked @endif>
|
||||
</label>
|
||||
@if($errors->any())
|
||||
@foreach ($errors->all() as $error)
|
||||
|
Reference in New Issue
Block a user