Update Staging Deploy

This commit is contained in:
2026-06-09 11:45:59 +02:00
parent f529f74823
commit 6b02c1b2f4
14 changed files with 168 additions and 28 deletions

View File

@@ -29,7 +29,7 @@
<!-- ABOUT THE ENTRY -->
<x-form-group-title label="{{ $words['about_the'] }}" icon="puzzle" />
@if( section_must_not_be( 'translations', $section ) )
@if( section_must_not_be( ['translations', 'homebrew'], $section ) )
<div class="form-group">
<x-form-field-title name="{{ $words['entry_title'] }}" required="true" />
<input class="form-input" type="text" name="entry_title" value="{{ old('entry_title', $entry->title ?? '' ) }}" required>
@@ -37,7 +37,7 @@
<x-form-error-text message="{{ $message }}" />
@enderror
</div>
@else
@elseif( section_must_be( 'translations', $section ) )
<div class="form-group">
<x-form-field-title name="{{ $words['entry_title'] }}" helper="{{ $words['entry_title_helper'] }}" />
<input class="form-input" type="text" name="entry_title" value="{{ old('entry_title', $entry->title, '' ) }}">
@@ -59,7 +59,7 @@
</div>
@endif
@if( section_must_be( ['romhacks', 'translations'], $section ) )
@if( section_must_be( ['romhacks', 'translations', 'homebrew'], $section ) )
<div class="form-group grid-c3">
<div>
<x-form-field-title name="{{ $words['version'] }}" required="true" />
@@ -178,7 +178,7 @@
</div>
<div>
<x-form-field-title name="Owner" required="true" />
<livewire:xf-user-selector :initial-user-id="$entry->user_id" />
<livewire:xf-user-selector :initial-user-id="old('owner_user_id', $entry->user_id)" />
</div>
</div>
<div class="form-group grid-c2">

View File

@@ -131,11 +131,19 @@
</div>
<div class="modal-content">
<div class="form-group">
<x-form-group-title label="Online patcher" />
<label><input type="checkbox" class="form-checkbox" :name="'files_metadata[' + file.uuid + '][online_patcher]'" x-model="file.meta_online_patcher"> Enable it</label>
<label x-show="file.meta_online_patcher"><input type="checkbox" class="form-checkbox" :name="'files_metadata[' + file.meta_secondary_online_patcher + '][secondary_online_patcher]'" x-model="file.meta_secondary_online_patcher"> Mark as a secondary patch</label>
</div>
@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>
@endif
</div>
</div>
</div>
@@ -144,6 +152,19 @@
<input type="hidden" name="files_uuid[]" :value="file.uuid" x-show="file.done">
@if($isEdit)
<input type="hidden" name="files_state[]" :value="file.state" x-show="file.done">
<template x-if="file.done">
<div>
@if( section_must_be( ['translations', 'romhacks'], $section ) )
<input type="hidden"
:name="'files_metadata[' + file.uuid + '][online_patcher]'"
:value="file.meta_online_patcher ? 1 : 0">
<input type="hidden"
:name="'files_metadata[' + file.uuid + '][secondary_online_patcher]'"
:value="(file.meta_online_patcher && file.meta_secondary_online_patcher) ? 1 : 0">
@endif
</div>
</template>
@endif
</div>
</template>