series.tx 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. :if ( !$post.addpost ) {
  2. :if ( $tiled ) {
  3. <a href="<: $post.local_href :>" class="tile">
  4. : if ($post.is_video) {
  5. <video preload="none" class="responsive" controls poster="<: $post.preview :>" >
  6. <source src="<: $post.href :>" type="<: $post.content_type :>" />
  7. Your browser does not support the video tag.
  8. </video>
  9. : } else {
  10. <div class="responsive preview" style="background-image:url(<: $post.preview :>)"></div>
  11. : }
  12. <p class="midtitle"><: $post.title :></p>
  13. </a>
  14. : } else {
  15. : include "post_title.tx";
  16. : if ( !$post.video_href && !$post.is_image && !$post.is_video && !$post.is_profile && $post.preview ) {
  17. <div style="background-image:url(<: $post.preview :>);" class="responsive preview"></div>
  18. : }
  19. : if( $post.data ) {
  20. <div id="postData">
  21. <: render_it($post.data) | mark_raw :>
  22. </div>
  23. : }
  24. : }
  25. : }
  26. : if ( $can_edit ) {
  27. : include "edit_head.tx";
  28. <form class="Submissions" action="/post/save" method="POST" enctype="multipart/form-data">
  29. Title *<br /><input required class="cooltext" type="text" name="title" placeholder="Iowa Man Destroys Moon" value="<: $post.title :>" />
  30. URL *<br /><input required class="cooltext" type="text" name="local_href" placeholder="/someurl" value="<: $post.local_href :>" />
  31. ACL name *<br /><input required class="cooltext" type="text" name="aclname" value="<: $post.aclname :>" />
  32. Content Template *<br />
  33. <select required class="cooltext" name="child_form">
  34. : for $forms -> $form {
  35. <option value="<: $form :>" <: if ( $post.child_form == $form ) { :>selected<: } :> ><: $form :></option>
  36. : }
  37. </select>
  38. <input type="hidden" name="callback" value="Trog::Routes::HTML::series" />
  39. : include "preview.tx";
  40. : include "acls.tx";
  41. : include "tags.tx";
  42. : include "form_common.tx";
  43. </form>
  44. : include "edit_foot.tx";
  45. : }