add item titles
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
<div class="location">{{ link.main }}{{ item.id }}{{ link.suffix }}</div>
|
||||
<div class="gapLeft"></div>
|
||||
</div>
|
||||
@if(item.title)
|
||||
<div class="item_title">{{ item.title }}</div>
|
||||
@endif
|
||||
|
||||
<div class="content">
|
||||
<div class="previous-post">
|
||||
@@ -198,6 +201,23 @@
|
||||
<div class="modal-content" style="max-width: 500px;">
|
||||
<div class="modal-body" style="padding: 20px 0; text-align: left;">
|
||||
<table class="info-table">
|
||||
@if(can_manage_item)
|
||||
<tr class="info-title-row">
|
||||
<th>Title</th>
|
||||
<td>
|
||||
<div class="info-title-edit-wrap">
|
||||
<input type="text" id="info-title-input" class="info-title-input" value="{{ item.title || '' }}" placeholder="Add a title…" maxlength="500" data-item-id="{{ item.id }}" />
|
||||
<button id="info-title-save" class="info-title-save-btn"><i class="fa-solid fa-check"></i></button>
|
||||
</div>
|
||||
<span id="info-title-status" class="info-title-status" style="display:none"></span>
|
||||
</td>
|
||||
</tr>
|
||||
@elseif(item.title)
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<td>{{ item.title }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<th>{{ t('info_modal.file_size') || 'File Size' }}</th>
|
||||
<td>{{ item.size }}</td>
|
||||
|
||||
@@ -60,6 +60,9 @@
|
||||
<div class="location">{{ link.main }}{{ item.id }}{{ link.suffix }}</div>
|
||||
<div class="gapLeft"></div>
|
||||
</div>
|
||||
@if(item.title)
|
||||
<div class="item_title">{{ item.title }}</div>
|
||||
@endif
|
||||
|
||||
<div class="content">
|
||||
<div class="previous-post">
|
||||
@@ -172,6 +175,23 @@
|
||||
<div class="modal-content" style="max-width: 500px;">
|
||||
<div class="modal-body" style="padding: 20px 0; text-align: left;">
|
||||
<table class="info-table">
|
||||
@if(can_manage_item)
|
||||
<tr class="info-title-row">
|
||||
<th>Title</th>
|
||||
<td>
|
||||
<div class="info-title-edit-wrap">
|
||||
<input type="text" id="info-title-input" class="info-title-input" value="{{ item.title || '' }}" placeholder="Add a title…" maxlength="500" data-item-id="{{ item.id }}" />
|
||||
<button id="info-title-save" class="info-title-save-btn"><i class="fa-solid fa-check"></i></button>
|
||||
</div>
|
||||
<span id="info-title-status" class="info-title-status" style="display:none"></span>
|
||||
</td>
|
||||
</tr>
|
||||
@elseif(item.title)
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<td>{{ item.title }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<th>{{ t('info_modal.file_size') || 'File Size' }}</th>
|
||||
<td>{{ item.size }}</td>
|
||||
|
||||
@@ -58,6 +58,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if(!shitpost_mode)
|
||||
<div class="form-section global-title-section">
|
||||
<label>Title <span style="opacity: 0.5; font-weight: normal;">{{ t('upload.comment_optional') }}</span></label>
|
||||
<input type="text" name="title" class="upload-title-input" placeholder="Add a title for this item…" maxlength="500" autocomplete="off">
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="form-section global-rating-section">
|
||||
<label>{{ t('upload.rating') }} <span class="required">*</span></label>
|
||||
<div class="rating-options">
|
||||
|
||||
Reference in New Issue
Block a user