写追加时,添加参考信息
This commit is contained in:
parent
86bb3abb90
commit
074e5e48e7
@ -9,7 +9,8 @@
|
||||
</head>
|
||||
<body>
|
||||
@include("common.header")
|
||||
<form class="w-full lg:w-1/2 lg:ml-6 border-2" action="" method="post" enctype="multipart/form-data">
|
||||
<div class="flex gap-3 px-3">
|
||||
<form class="w-full lg:w-1/2 border-2" action="" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="id" value="{{$append->id}}">
|
||||
@if($program)
|
||||
<label class="block my-2">
|
||||
@ -26,23 +27,23 @@
|
||||
@endif
|
||||
</label>
|
||||
@endif
|
||||
<label class="block my-2">
|
||||
<label class="block my-2 mx-2">
|
||||
追加内容(点播可不填)
|
||||
<input class="form-input border-0 border-b-2 w-full" autocomplete="off" type="text" name="name" value="{{ old('name', $append->name) }}">
|
||||
</label>
|
||||
<label class="block my-2" id="from_select">
|
||||
<label class="block my-2 mx-2" id="from_select">
|
||||
点播老板
|
||||
<input class="form-input border-0 border-b-2 w-full" autocomplete="off" type="text" name="from" value="{{ old('from', $append->from) }}">
|
||||
</label>
|
||||
<label class="block my-2">
|
||||
<label class="block my-2 mx-2">
|
||||
是否点播(不是追加)
|
||||
<input class="form-checkbox" type="checkbox" name="is_original" value="1" @if(old('is_original', $append->is_original) == 1) checked @endif>
|
||||
</label>
|
||||
<label class="block my-2">
|
||||
<label class="block my-2 mx-2">
|
||||
分
|
||||
<input class="form-input border-0 border-b-2 w-full" type="number" step="0.5" name="price" value="{{ old('price', $append->price) }}">
|
||||
</label>
|
||||
<label class="block my-2">
|
||||
<label class="block my-2 mx-2">
|
||||
补充说明
|
||||
<input class="form-input border-0 border-b-2 w-full" autocomplete="off" type="text" name="append" value="{{ old('append', $append->append) }}">
|
||||
</label>
|
||||
@ -65,7 +66,47 @@
|
||||
href="{{route('program.construct.append.list', ['program'=>$program->id])}}"
|
||||
>返回列表</a>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
<div class="hidden lg:block lg:w-1/2">
|
||||
<div>已有记录</div>
|
||||
<table class="table-auto border-collapse w-full lg:border lg:border-black">
|
||||
<thead>
|
||||
<tr class="border border-black sticky bg-white lg:static top-0 left-0 right-0">
|
||||
<td>老板</td>
|
||||
<td>类型</td>
|
||||
<td>要求</td>
|
||||
<td>分值</td>
|
||||
<td>补充说明</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($program->appends as $append)
|
||||
<tr>
|
||||
<td>
|
||||
<x-links.user_link :name="$append->from" :plt-id="$append->platform_id" :mid="$append->from_mid"></x-links.user_link>
|
||||
</td>
|
||||
<td>
|
||||
@if($append->is_original)
|
||||
点播
|
||||
@else
|
||||
追加
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if($append->is_original)
|
||||
点播
|
||||
@else
|
||||
{{$append->name}}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{$append->price}}</td>
|
||||
<td>{{$append->append}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@include("common.footer")
|
||||
</body>
|
||||
<script src="{{ mix('/js/component/from_select.js') }}" rel="script"></script>
|
||||
|
@ -24,23 +24,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{route("program.construct.append.edit", ["append"=>$append->id])}}">编辑</a>
|
||||
@switch($append->platform_id)
|
||||
@case(1)
|
||||
<img class="w-4 h-4 inline-block" src="https://cdn.jerryyan.net/luboimg/bilibili.ico" alt="B站">
|
||||
<a class="underline" href="https://space.bilibili.com/{{$append->from_mid}}" target="_blank">{{$append->from}}</a>
|
||||
@break
|
||||
@case(2)
|
||||
<img class="w-4 h-4 inline-block" src="https://cdn.jerryyan.net/luboimg/ixigua.ico" alt="西瓜视频">
|
||||
<a class="underline" href="https://www.ixigua.com/home/{{$append->from_mid}}/" target="_blank">{{$append->from}}</a>
|
||||
@break
|
||||
@case(3)
|
||||
<img class="w-4 h-4 inline-block" src="https://cdn.jerryyan.net/luboimg/douyin.ico" alt="抖音">
|
||||
{{$append->from}}
|
||||
@break
|
||||
@default
|
||||
{{$append->from}}
|
||||
@break
|
||||
@endswitch
|
||||
<x-links.user_link :name="$append->from" :plt-id="$append->platform_id" :mid="$append->from_mid"></x-links.user_link>
|
||||
</td>
|
||||
<td>
|
||||
@if($append->is_original)
|
||||
|
Loading…
x
Reference in New Issue
Block a user