A lot of things
This commit is contained in:
@@ -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
|
||||
|
||||
73
resources/views/submissions/index.blade.php
Normal file
73
resources/views/submissions/index.blade.php
Normal file
@@ -0,0 +1,73 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('page-title', 'Submit - ' . config('app.name'))
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ \Diglactic\Breadcrumbs\Breadcrumbs::render() }}
|
||||
<div class="page-title">Submit content</div>
|
||||
|
||||
<div class="submit-body">
|
||||
|
||||
<div class="submit-section-label">Entries</div>
|
||||
|
||||
<div class="submit-grid">
|
||||
|
||||
@foreach($entryTypes as $type)
|
||||
<a href="{{ route('submit.create', ['section' => $type['slug']]) }}"
|
||||
class="submit-card"
|
||||
style="--card-color: {{ $type['color'] }}; --card-bg: {{ $type['bg'] }}; --card-border: {{ $type['border'] }}">
|
||||
<div class="submit-card-top">
|
||||
<div class="submit-card-icon">
|
||||
<i data-lucide="{{ $type['icon'] }}" size="17"></i>
|
||||
</div>
|
||||
<div class="submit-card-info">
|
||||
<div class="submit-card-title">{{ $type['label'] }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="submit-card-bottom">
|
||||
<span class="submit-card-cta">
|
||||
Submit <i data-lucide="arrow-right" size="11"></i>
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
|
||||
<div class="submit-section-label">News</div>
|
||||
|
||||
<div class="submit-news-row" style="display:flex;align-items: center;justify-content: center">
|
||||
<a href="{{ route('news.create') }}" class="submit-news-card">
|
||||
<div class="submit-news-icon">
|
||||
<i data-lucide="newspaper" size="17"></i>
|
||||
</div>
|
||||
<div class="submit-news-info">
|
||||
<div class="submit-news-title">News article</div>
|
||||
</div>
|
||||
<span class="submit-news-cta">
|
||||
Submit <i data-lucide="arrow-right" size="11"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="submit-section-label">Rules</div>
|
||||
|
||||
<div class="submit-rules">
|
||||
<div class="submit-rule">
|
||||
<span class="submit-rule-num">1</span>
|
||||
<p><strong>One entry per submission.</strong> Do not bundle multiple hacks or versions in a single form.</p>
|
||||
</div>
|
||||
<div class="submit-rule">
|
||||
<span class="submit-rule-num">2</span>
|
||||
<p><strong>You must be the author</strong> or have explicit permission from the original creator.</p>
|
||||
</div>
|
||||
<div class="submit-rule">
|
||||
<span class="submit-rule-num">3</span>
|
||||
<p><strong>Patch files only.</strong> Never upload ROM files — attach an IPS, BPS or xdelta patch.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,8 @@
|
||||
<div x-data>
|
||||
<x-form-field-title name="Core" required="true" />
|
||||
<select x-model="file.meta_play_online_core" class="form-select" style="margin-bottom:15px;">
|
||||
@foreach( \App\Helpers\PlayOnlineHelpers::getCoreLists() as $core )
|
||||
<option value="{{ $core }}" :selected="file.meta_play_online_core === '{{$core}}'">{{ $core }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
Reference in New Issue
Block a user