Feat: Добавлена валидация обложки курса
✅ Минимальные размеры: 400x300px ✅ Максимальный размер: 2MB ✅ Форматы: JPEG, PNG, WebP ✅ Подсказки в формах ✅ Кастомные сообщения об ошибках Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -75,6 +75,7 @@
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Обложка</label>
|
||||
<input type="file" name="thumbnail" class="form-control" accept="image/*">
|
||||
<small class="text-muted">Мин. 400x300px, макс. 2MB, форматы: JPEG, PNG, WebP</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -72,7 +72,8 @@
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Обложка</label>
|
||||
<input type="file" name="thumbnail" class="form-control" accept="image/*">
|
||||
@if($course->thumbnail)<small class="text-muted">Текущая: {{ basename($course->thumbnail) }}</small>@endif
|
||||
@if($course->thumbnail)<small class="text-muted d-block">Текущая: {{ basename($course->thumbnail) }}</small>@endif
|
||||
<small class="text-muted">Мин. 400x300px, макс. 2MB, форматы: JPEG, PNG, WebP</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user