szurubooru/src/Views/post-upload.phtml

126 lines
3.7 KiB
PHTML
Raw Normal View History

2013-10-07 00:44:17 +02:00
<?php if ($this->context->transport->success === true): ?>
<p>Post created!</p>
<?php else: ?>
<div id="sidebar">
2013-10-19 22:56:56 +02:00
<div class="unit">
2013-10-12 12:38:49 +02:00
<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&rsquo;t safe for work or you&rsquo;re not sure it&rsquo;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&rsquo;re done.</p>
</div>
2013-10-07 00:44:17 +02:00
</div>
<div id="inner-content">
<div id="upload-step1">
2013-10-25 09:40:33 +02:00
<div class="tabs">
<nav>
<ul>
<li class="selected file">
<a href="#">
Upload from file
</a>
</li>
<li class="url">
<a href="#">
Upload from URL
</a>
</li>
</ul>
</nav>
</div>
<div class="tab file">
<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.<br><br>
</div>
</div>
</div>
<div class="tab url">
<div id="url-handler-wrapper">
<div id="url-handler">
<textarea placeholder="You can also paste some URLs." name="urls"></textarea>
</div>
<button type="submit">Submit</button>
2013-10-07 00:44:17 +02:00
</div>
</div>
<div class="clear"></div>
</div>
2013-10-09 00:58:49 +02:00
<div id="upload-step2" data-redirect-url="<?php echo \Chibi\UrlHelper::route('post', 'list') ?>">
<div class="posts">
</div>
2013-10-07 00:44:17 +02:00
2013-10-09 00:58:49 +02:00
<div class="submit-wrapper">
2013-10-13 00:36:10 +02:00
<button id="the-submit" type="submit">Submit</button>
2013-10-09 00:58:49 +02:00
</div>
2013-10-07 00:44:17 +02:00
</div>
<div id="post-template" class="post">
<p class="alert alert-error">Some kind of error</p>
2013-10-07 00:44:17 +02:00
<img class="thumbnail" src="<?php echo \Chibi\UrlHelper::absoluteUrl('/media/img/pixel.gif') ?>" alt="Thumbnail"/>
<div class="form-wrapper">
2013-10-19 16:16:09 +02:00
<div class="ops">
<a class="move-up-trigger">
move up <span>&uarr;</span>
</a>
<a class="move-down-trigger">
move down <span>&darr;</span>
</a>
<a class="remove-trigger">
remove <span>&times;</span>
</a>
</div>
2013-10-07 00:44:17 +02:00
<form action="<?php echo \Chibi\UrlHelper::route('post', 'upload') ?>" method="post" class="aligned">
2013-10-09 00:58:49 +02:00
<div class="file-name">
<label class="left">File:</label>
<strong>filename.jpg</strong>
</div>
<div class="safety">
<label class="left">Safety:</label>
<?php $checked = false ?>
<?php foreach (PostSafety::getAll() as $safety): ?>
<label>
<input type="radio" name="safety" value="<?php echo PostSafety::Safe ?>"<?php if (!$checked) echo ' checked="checked"' ?>/>
<?php echo TextHelper::camelCaseToHumanCase(PostSafety::toString($safety), true) ?>
<?php $checked = true ?>
</label>
<?php endforeach ?>
2013-10-09 00:58:49 +02:00
</div>
2013-10-07 00:44:17 +02:00
2013-10-09 00:58:49 +02:00
<div class="tags">
<label class="left">Tags:</label>
<div class="input-wrapper"><input type="text" name="tags" placeholder="enter some tags&hellip;"/></div>
2013-10-09 00:58:49 +02:00
</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>
2013-10-21 23:50:30 +02:00
<input type="hidden" name="submit" value="1"/>
</form>
</div>
2013-10-09 00:58:49 +02:00
</div>
<div id="upload-no-posts">
<p class="alert alert-warning">Well, that&rsquo;s disappointing&hellip;</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>
2013-10-07 00:44:17 +02:00
</div>
</div>
<?php endif ?>