pixelfed/resources/views/timeline/partial/new-form.blade.php

81 lines
4.2 KiB
PHP
Raw Normal View History

<div class="card card-md-rounded-0">
2018-10-23 01:56:47 +00:00
<div class="card-header bg-white font-weight-bold d-inline-flex justify-content-between">
2018-08-10 04:24:42 +00:00
<div>{{__('Create New Post')}}</div>
2018-10-23 01:56:47 +00:00
<div>
<span class="badge badge-success mr-1">NEW</span>
<a href="/i/compose">Experimental UI</a>
</div>
2018-08-10 04:24:42 +00:00
</div>
<div class="card-body" id="statusForm">
2018-08-10 04:24:42 +00:00
<form method="post" action="{{route('timeline.personal')}}" enctype="multipart/form-data">
@csrf
2018-06-14 02:57:16 +00:00
<input type="hidden" name="filter_name" value="">
<input type="hidden" name="filter_class" value="">
<div class="form-group">
2018-08-10 04:24:42 +00:00
<div class="custom-file">
2018-10-23 01:56:47 +00:00
<input type="file" class="custom-file-input" id="fileInput" name="photo[]" accept="{{config('pixelfed.media_types')}}" multiple="">
2018-08-10 04:24:42 +00:00
<label class="custom-file-label" for="fileInput">Upload Image(s)</label>
</div>
<small class="form-text text-muted">
2018-06-14 02:57:16 +00:00
Max Size: @maxFileSize(). Supported formats: jpeg, png, gif, bmp. Limited to {{config('pixelfed.max_album_length')}} photos per post.
</small>
</div>
<div class="form-group">
<textarea class="form-control" name="caption" placeholder="Add optional caption here" autocomplete="off" data-limit="{{config('pixelfed.max_caption_length')}}" rows="1"></textarea>
2018-08-10 04:24:42 +00:00
<p class="form-text text-muted small text-right">
<span class="caption-counter">0</span>
<span>/</span>
<span>{{config('pixelfed.max_caption_length')}}</span>
</p>
</div>
2018-06-14 02:57:16 +00:00
<div class="form-group">
2018-08-10 04:24:42 +00:00
<button class="btn btn-outline-primary btn-sm px-3 py-1 font-weight-bold" type="button" data-toggle="collapse" data-target="#collapsePreview" aria-expanded="false" aria-controls="collapsePreview">
Options &nbsp; <i class="fas fa-chevron-down"></i>
2018-06-14 02:57:16 +00:00
</button>
<div class="collapse" id="collapsePreview">
<div class="form-group pt-3">
2018-09-09 03:23:06 +00:00
<label class="font-weight-bold text-muted small">Visibility</label>
<div class="switch switch-sm">
<select class="form-control" name="visibility">
<option value="public" selected="">Public</option>
<option value="unlisted">Unlisted (hidden from public timelines)</option>
<option value="private">Followers Only</option>
</select>
</div>
<small class="form-text text-muted">
Set the visibility of this post.
</small>
</div>
<div class="form-group">
2018-06-14 02:57:16 +00:00
<label class="font-weight-bold text-muted small">CW/NSFW</label>
<div class="switch switch-sm">
<input type="checkbox" class="switch" id="cw-switch" name="cw">
<label for="cw-switch" class="small font-weight-bold">(Default off)</label>
</div>
<small class="form-text text-muted">
Please mark all NSFW and controversial content, as per our content policy.
</small>
</div>
<div class="form-group d-none form-preview">
<label class="font-weight-bold text-muted small">Photo Preview</label>
<figure class="filterContainer">
<img class="filterPreview img-fluid">
</figure>
<small class="form-text text-muted font-weight-bold">
No filter selected.
</small>
</div>
<div class="form-group d-none form-filters">
<label for="filterSelectDropdown" class="font-weight-bold text-muted small">Select Filter</label>
<select class="form-control" id="filterSelectDropdown">
<option value="none" selected="">No Filter</option>
</select>
</div>
2018-06-09 22:29:36 +00:00
</div>
2018-06-14 02:57:16 +00:00
</div>
2018-08-10 04:24:42 +00:00
<button type="submit" class="btn btn-outline-primary btn-block font-weight-bold">Create Post</button>
</form>
</div>
2018-06-14 02:57:16 +00:00
</div>