A lot of things

This commit is contained in:
2026-06-16 16:21:43 +02:00
parent 4f9f6c63b3
commit 7e1e26f20b
126 changed files with 7917 additions and 204 deletions

View File

@@ -28,7 +28,7 @@
{{--
File listing. Used for editions or server-side errors.
--}}
<div class="upload-list" x-show="numberOfFiles > 0" x-cloak>
<div class="upload-list" x-show="numberOfFiles > 0" x-cloak style="margin-bottom: 15px">
<template x-for="(file,i) in files" :key="i">
<div class="upload-item" :class="
{
@@ -132,17 +132,33 @@
<div class="modal-content">
@if( section_must_be( ['translations', 'romhacks'], $section ) )
<div class="form-group">
<x-form-group-title label="Online patcher" />
<label>
<input type="checkbox" class="form-checkbox" x-model="file.meta_online_patcher">
Enable it
</label>
<label x-show="file.meta_online_patcher">
<input type="checkbox" class="form-checkbox" x-model="file.meta_secondary_online_patcher">
Mark as a secondary patch
</label>
</div>
<template x-if="file.can_be_online_patched">
<div class="form-group">
<x-form-group-title label="Online patcher" />
<label>
<input type="checkbox" class="form-checkbox" x-model="file.meta_online_patcher">
Enable it
</label>
</div>
</template>
@endif
@if( section_must_be( ['translations', 'romhacks', 'homebrew' ], $section ) )
<template x-if="file.can_be_online_patched">
<div class="form-group">
<x-form-group-title label="Play online" />
<label>
<input type="checkbox" class="form-checkbox" x-model="file.meta_play_online">
Enable it
</label>
<div class="form-group level" x-show="file.meta_play_online">
@include('submissions.play-online-core-select')
<label>
<input type="checkbox" class="form-checkbox" x-model="file.meta_play_online_threads">
Enable Threads
</label>
</div>
</div>
</template>
@endif
</div>
</div>
@@ -163,6 +179,17 @@
:name="'files_metadata[' + file.uuid + '][secondary_online_patcher]'"
:value="(file.meta_online_patcher && file.meta_secondary_online_patcher) ? 1 : 0">
@endif
@if( section_must_be( ['translations', 'romhacks', 'homebrew'], $section ) )
<input type="hidden"
:name="'files_metadata[' + file.uuid + '][play_online]'"
:value="file.meta_play_online ? 1 : 0">
<input type="hidden"
:name="'files_metadata[' + file.uuid + '][play_online_core]'"
:value="file.meta_play_online_core ? file.meta_play_online_core : ''">
<input type="hidden"
:name="'files_metadata[' + file.uuid + '][play_online_threads]'"
:value="file.meta_play_online_threads ? 1 : 0">
@endif
</div>
</template>
@endif