mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-11 00:54:50 +00:00
Add character limit info
Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
This commit is contained in:
parent
ba454e38e8
commit
7aea831a10
3 changed files with 5 additions and 5 deletions
|
@ -30,9 +30,9 @@ class StatusController extends Controller
|
||||||
$user = Auth::user();
|
$user = Auth::user();
|
||||||
|
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'photo' => 'required|image|max:15000',
|
'photo' => 'required|image|max:15000',
|
||||||
'caption' => 'string|max:150',
|
'caption' => 'string|max:150',
|
||||||
'nullable' => 'string|max:420'
|
'description' => 'nullable|string|max:420'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$monthHash = hash('sha1', date('Y') . date('m'));
|
$monthHash = hash('sha1', date('Y') . date('m'));
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="font-weight-bold text-muted small">Alternative text</label>
|
<label class="font-weight-bold text-muted small">Alternative text</label>
|
||||||
<input type="text" class="form-control" name="description" placeholder="Describe for the visually impaired">
|
<input type="text" class="form-control" name="description" placeholder="Describe for the visually impaired. Up to 420 characters." maxlength="420">
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-outline-primary btn-block">Post</button>
|
<button type="submit" class="btn btn-outline-primary btn-block">Post</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="font-weight-bold text-muted small">Alternative text</label>
|
<label class="font-weight-bold text-muted small">Alternative text</label>
|
||||||
<input type="text" class="form-control" name="description" placeholder="Describe for the visually impaired">
|
<input type="text" class="form-control" name="description" placeholder="Describe for the visually impaired. Up to 420 characters." maxlength="420">
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-outline-primary btn-block">Post</button>
|
<button type="submit" class="btn btn-outline-primary btn-block">Post</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue