file.tx 1.0 KB

12345678910111213141516
  1. <form class="Submissions" action="/post/save" method="POST" enctype="multipart/form-data">
  2. Title *<br /><input required class="cooltext" type="text" name="title" placeholder="Iowa Man Destroys Moon" value="<: $post.title :>" />
  3. File *<br /><input <: $post.href ? '' : 'required' :> class="cooltext" type="file" name="file" />
  4. : if ( $post.href ) {
  5. <input type="hidden" name="href" value="<: $post.href :>" />
  6. : }
  7. <!-- Need to validate file or add an upload link that kicks off WS streaming of the file at some point? TAB -->
  8. <br /> TODO: Add "alternative" links, which scrape the appropriate icon for the alt link from the favicon<br />
  9. : include "preview.tx";
  10. : include "acls.tx";
  11. : include "tags.tx";
  12. Comments<br /><textarea class="cooltext" name="data" placeholder="Potzrebie"><: $post.data :></textarea>
  13. <input type="hidden" name="app" value="file" />
  14. <input type="hidden" name="to" value="<: $route :>" />
  15. <input class="coolbutton" type="submit" value="Publish" text="Publish" />
  16. </form>