复制常驻时,勾选批量复制

This commit is contained in:
2023-01-27 15:35:27 +08:00
parent 074e5e48e7
commit 275eeebd1d
9 changed files with 142 additions and 84 deletions

View File

@ -25,17 +25,28 @@
@endif
</label>
@endif
<label class="block my-2" id="broadcast_select">
复制的名称
<input class="form-input border-0 border-b-2 w-full" autocomplete="off" type="text" name="name" value="{{ old('name') }}">
<input class="form-input border-0 border-b-2 w-full" id="broadcast_id" type="hidden" name="id" value="{{ old('id') }}">
<label>
复制的常驻留言,请选择:
<br>
@foreach($broadcastList as $broadcast)
<label>
<input type="checkbox" name="ids[]" value="{{$broadcast->id}}">
{{$broadcast->from}}】:{{$broadcast->name}}
</label>
<br>
@endforeach
</label>
@include("common.form_error")
@if(sizeof($broadcastList) <= 0)
<div class="block my-2 text-center">
无可复制内容
</div>
@else
<div class="block my-2 text-center">
<input class="px-6 py-2 inline-block rounded-full bg-cyan-600 text-white" type="submit">
</div>
@endempty
</form>
@include("common.footer")
</body>
<script src="{{ mix('/js/component/broadcast_select.js') }}" rel="script"></script>
</html>