note.phtml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php $this->partial ('aside_flux'); ?>
  2. <div class="post">
  3. <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Translate::t ('back_to_rss_feeds'); ?></a>
  4. <form method="post" action="<?php echo _url ('entry', 'note', 'id', $this->entry->id ()); ?>">
  5. <legend><?php echo Translate::t ('note'); ?></legend>
  6. <div class="form-group">
  7. <label class="group-name" for="note"><?php echo Translate::t ('add_note'); ?></label>
  8. <div class="group-controls">
  9. <textarea rows="5" cols="80" name="note" id="note"><?php echo $this->entry->notes (); ?></textarea>
  10. </div>
  11. </div>
  12. <div class="form-group">
  13. <label class="group-name" for="public_note"><?php echo Translate::t ('ask_public_article'); ?></label>
  14. <div class="group-controls">
  15. <label class="checkbox" for="public">
  16. <input type="checkbox" name="public" id="public" value="yes"<?php echo $this->entry->isPublic () ? ' checked="checked"' : ''; ?> /> <?php echo Translate::t ('yes'); ?>
  17. </label>
  18. </div>
  19. </div>
  20. <div class="form-group form-actions">
  21. <div class="group-controls">
  22. <button type="submit" class="btn btn-important"><?php echo Translate::t ('save'); ?></button>
  23. <button type="reset" class="btn"><?php echo Translate::t ('cancel'); ?></button>
  24. </div>
  25. </div>
  26. <legend><?php echo Translate::t ('article'); ?></legend>
  27. <div class="form-group">
  28. <label class="group-name"><?php echo Translate::t ('title'); ?></label>
  29. <div class="group-controls">
  30. <span class="control"><a href="<?php echo $this->entry->link (); ?>"><?php echo $this->entry->title (); ?></a></span>
  31. </div>
  32. </div>
  33. <?php
  34. $author = $this->entry->author ();
  35. if ($author) { ?>
  36. <div class="form-group">
  37. <label class="group-name"><?php echo Translate::t ('author'); ?></label>
  38. <div class="group-controls">
  39. <span class="control"><?php echo $author; ?></span>
  40. </div>
  41. </div>
  42. <?php } ?>
  43. <div class="form-group">
  44. <label class="group-name"><?php echo Translate::t ('publication_date'); ?></label>
  45. <div class="group-controls">
  46. <span class="control"><?php echo $this->entry->date (); ?></span>
  47. </div>
  48. </div>
  49. <div class="form-group">
  50. <label class="group-name"><?php echo Translate::t ('article'); ?></label>
  51. <div class="group-controls">
  52. <span class="control"><?php echo $this->entry->content (); ?></span>
  53. </div>
  54. </div>
  55. </form>
  56. </div>