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 >
2013-10-31 13:14:09 +01:00
< p > Set proper visibility setting if the image isn’ t safe for work or you’ re not sure it’ s 100% < span class = "safety-safe" > safe< / span > .< / p >
< p > Only registered users can view < span class = "safety-sketchy" > sketchy< / span > or < span class = "safety-unsafe" > NSFW< / span > content.< / p >
2013-10-12 12:38:49 +02:00
< p > Click submit when you’ 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 >
2013-10-25 14:55:18 +02:00
Or just click on this box.
2013-10-25 09:40:33 +02:00
< / div >
< / div >
< / div >
< div class = "tab url" >
< div id = "url-handler-wrapper" >
< div id = "url-handler" >
2013-10-25 14:55:18 +02:00
< div class = "input-wrapper" > < textarea placeholder = "Paste some URLs here, one per line." name = "urls" > < / textarea > < / div >
2013-10-25 09:40:33 +02:00
< / div >
2013-10-25 09:56:55 +02:00
< button type = "submit" > Add< / 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' ) ?> " >
2013-10-25 14:55:18 +02:00
< hr >
2013-10-09 00:58:49 +02:00
< 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" >
2013-10-19 20:58:51 +02:00
< p class = "alert alert-error" > Some kind of error< / p >
2013-10-07 00:44:17 +02:00
2013-10-19 20:58:51 +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 > ↑ < / span >
< / a >
< a class = "move-down-trigger" >
move down < span > ↓ < / span >
< / a >
< a class = "remove-trigger" >
remove < span > × < / span >
< / a >
< / div >
2013-10-07 00:44:17 +02:00
2013-10-19 20:58:51 +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 >
2013-10-21 23:27:47 +02:00
<?php $checked = false ?>
<?php foreach ( PostSafety :: getAll () as $safety ) : ?>
< label >
2013-10-25 13:20:57 +02:00
< input type = "radio" name = "safety" value = " <?php echo $safety ?> " <?php if ( ! $checked ) echo ' checked="checked"' ?> />
2013-10-21 23:27:47 +02:00
<?php echo TextHelper :: camelCaseToHumanCase ( PostSafety :: toString ( $safety ), true ) ?>
<?php $checked = true ?>
< / label >
<?php endforeach ?>
2013-10-30 16:51:22 +01:00
< input type = "hidden" name = "anonymous" value = "0" / >
< label >
< input type = "checkbox" name = "anonymous" value = "1" / >
Upload anonymously
< / label >
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 >
2013-10-19 20:58:51 +02:00
< div class = "input-wrapper" > < input type = "text" name = "tags" placeholder = "enter some tags…" / > < / div >
2013-10-09 00:58:49 +02:00
< / div >
2013-10-19 20:58:51 +02:00
< 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" / >
2013-10-19 20:58:51 +02:00
< / form >
< / div >
2013-10-09 00:58:49 +02:00
< / div >
2013-10-07 00:44:17 +02:00
< / div >
<?php endif ?>