Add required tags, fix #138

This commit is contained in:
Stasiek Michalski 2018-06-04 15:12:20 +02:00 committed by GitHub
parent 99490a9d95
commit 2136760e6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,14 +18,14 @@
<span class="icon-picture mr-1"></span> <span class="icon-picture mr-1"></span>
Upload Image Upload Image
</label> </label>
<input type="file" class="custom-file-input" name="photo" accept="image/*"> <input type="file" class="custom-file-input" name="photo" accept="image/*" required>
<small class="form-text text-muted"> <small class="form-text text-muted">
Max Size: @maxFileSize(). Supported formats: jpeg, png, gif, bmp. Max Size: @maxFileSize(). Supported formats: jpeg, png, gif, bmp.
</small> </small>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="font-weight-bold text-muted small">Caption</label> <label class="font-weight-bold text-muted small">Caption</label>
<input type="text" class="form-control" name="caption" placeholder="Add a caption here"> <input type="text" class="form-control" name="caption" placeholder="Add a caption here" required>
<small class="form-text text-muted"> <small class="form-text text-muted">
Max length: {{config('pixelfed.max_caption_length')}} characters. Max length: {{config('pixelfed.max_caption_length')}} characters.
</small> </small>