profile.tx 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. : if ( !$post.addpost ) {
  2. : if ( $tiled ) {
  3. <a href="<: $post.local_href :>" class="tile">
  4. <div class="square circle bigprofile preview" style="background-image:url(<: $post.preview :>)"></div>
  5. <p class="midtitle"><: $post.title :></p>
  6. </a>
  7. : } else {
  8. : include "post_title.tx";
  9. <a href="<: $post.local_href :>" title="<: $post.title :> poasts">
  10. <div style="background-image:url(<: $post.wallpaper :>);" class="banner profile">
  11. <div style="background-image:url(<: $post.preview :>);" class="circle portrait"></div>
  12. : if( $post.data ) {
  13. <div id="postData" class="nameBadge">
  14. <big><: $post.title :></big><br /><br />
  15. <: render_it($post.data) | mark_raw :>
  16. </div>
  17. : }
  18. </div>
  19. </a><br />
  20. : }
  21. : }
  22. : if ( $can_edit ) {
  23. : include "edit_head.tx";
  24. <form class="Submissions" action="/profile" method="POST" enctype="multipart/form-data">
  25. Username *<br /><input required class="cooltext" type="text" name="username" placeholder="AzureDiamond" value="<: $post.user :>" />
  26. Password *<br /><input <: $post.user ? '' : 'required' :> class="cooltext" type="password" name="password" placeholder="hunter2" />
  27. Avatar *<br /><input class="cooltext" type="file" name="preview_file" />
  28. : if ( $post.preview ) {
  29. <input type="hidden" name="preview" value="<: $post.preview :>" />
  30. : }
  31. Wallpaper<br /><input type="file" class="cooltext" name="wallpaper_file" placeholder="PROMO.JPG" />
  32. : if ( $post.wallpaper ) {
  33. <input type="hidden" name="wallpaper" value="<: $post.wallpaper :>" />
  34. : }
  35. Title <br /><input class="cooltext" type="text" name="title" value="<: $post.title :>" />
  36. <input type="hidden" name="callback" value="Trog::Routes::HTML::users" />
  37. : include "acls.tx";
  38. : include "tags.tx";
  39. : include "form_common.tx";
  40. </form>
  41. : include "edit_foot.tx";
  42. : }