89 lines
3 KiB
PHTML
89 lines
3 KiB
PHTML
<?php if ($this->context->transport->success === true): ?>
|
|
<p>Post created!</p>
|
|
<?php else: ?>
|
|
|
|
<div id="sidebar">
|
|
<div class="unit">
|
|
<h1>file upload</h1>
|
|
<p>Use tags to describe uploaded images. Try to specify characters, their look and shows they are from.</p>
|
|
<p>Set proper visibility setting if the image isn’t safe for work or you’re not sure it’s 100% <span class="safety-sfw">safe</span>.</p>
|
|
<p>Only registered users can view <span class="safety-sketchy">sketchy</span> or <span class="safety-nsfw">NSFW</span> content.</p>
|
|
<p>Click submit when you’re done.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="inner-content">
|
|
<div id="upload-step1">
|
|
<input type=file multiple style="display: none"/>
|
|
<div id="file-handler-wrapper">
|
|
<div id="file-handler">
|
|
Drop files here!<br>
|
|
Or just click on this box.
|
|
</div>
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
<div id="upload-step2" data-redirect-url="<?php echo \Chibi\UrlHelper::route('post', 'list') ?>">
|
|
<div class="posts">
|
|
</div>
|
|
|
|
<div class="submit-wrapper">
|
|
<button id="the-submit" type="submit">Submit</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="post-template" class="post">
|
|
<p class="alert alert-error">Some kind of error</p>
|
|
|
|
<img class="thumbnail" src="<?php echo \Chibi\UrlHelper::absoluteUrl('/media/img/pixel.gif') ?>" alt="Thumbnail"/>
|
|
|
|
<div class="form-wrapper">
|
|
<div class="ops">
|
|
<a class="move-up-trigger">
|
|
move up <span>↑</span>
|
|
</a>
|
|
|
|
<a class="move-down-trigger">
|
|
move down <span>↓</span>
|
|
</a>
|
|
|
|
<a class="remove-trigger">
|
|
remove <span>×</span>
|
|
</a>
|
|
</div>
|
|
|
|
<form action="<?php echo \Chibi\UrlHelper::route('post', 'upload') ?>" method="post" class="aligned">
|
|
<div class="file-name">
|
|
<label class="left">File:</label>
|
|
<strong>filename.jpg</strong>
|
|
</div>
|
|
|
|
<div class="safety">
|
|
<label class="left">Safety:</label>
|
|
<label><input type="radio" name="safety" value="<?php echo PostSafety::Safe ?>" checked="checked"/> Safe for work</label>
|
|
<label><input type="radio" name="safety" value="<?php echo PostSafety::Sketchy ?>"/> Sketchy</label>
|
|
<label><input type="radio" name="safety" value="<?php echo PostSafety::Unsafe ?>"/> Not safe for work</label>
|
|
</div>
|
|
|
|
<div class="tags">
|
|
<label class="left">Tags:</label>
|
|
<div class="input-wrapper"><input type="text" name="tags" placeholder="enter some tags…"/></div>
|
|
</div>
|
|
|
|
<div class="source">
|
|
<label class="left">Source:</label>
|
|
<div class="input-wrapper"><input type="text" name="source" placeholder="where did you get this from? (optional)"/></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="upload-no-posts">
|
|
<p class="alert alert-warning">Well, that’s disappointing…</p>
|
|
<p><a href="<?php echo \Chibi\UrlHelper::route('post', 'list') ?>">Back to post list</a> or <a href="<?php echo \Chibi\UrlHelper::route('post', 'upload') ?>">try uploading again</a>.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<?php endif ?>
|