shortcut.phtml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php $this->partial ('aside_configure'); ?>
  2. <div class="post">
  3. <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Translate::t ('back_to_rss_feeds'); ?></a>
  4. <datalist id="keys">
  5. <?php foreach ($this->list_keys as $key) { ?>
  6. <option value="<?php echo $key; ?>">
  7. <?php } ?>
  8. </datalist>
  9. <?php $s = $this->conf->shortcuts (); ?>
  10. <form method="post" action="<?php echo _url ('configure', 'shortcut'); ?>">
  11. <legend><?php echo Translate::t ('shortcuts_management'); ?></legend>
  12. <noscript><p class="alert alert-error"><?php echo Translate::t ('javascript_for_shortcuts'); ?></p></noscript>
  13. <div class="form-group">
  14. <label class="group-name" for="mark_read"><?php echo Translate::t ('mark_read'); ?></label>
  15. <div class="group-controls">
  16. <input type="text" id="mark_read" name="shortcuts[mark_read]" list="keys" value="<?php echo $s['mark_read']; ?>" />
  17. <?php echo Translate::t ('shift_for_all_read'); ?>
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="group-name" for="mark_favorite"><?php echo Translate::t ('mark_favorite'); ?></label>
  22. <div class="group-controls">
  23. <input type="text" id="mark_favorite" name="shortcuts[mark_favorite]" list="keys" value="<?php echo $s['mark_favorite']; ?>" />
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="group-name" for="go_website"><?php echo Translate::t ('see_on_website'); ?></label>
  28. <div class="group-controls">
  29. <input type="text" id="go_website" name="shortcuts[go_website]" list="keys" value="<?php echo $s['go_website']; ?>" />
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="group-name" for="next_entry"><?php echo Translate::t ('next_article'); ?></label>
  34. <div class="group-controls">
  35. <input type="text" id="next_entry" name="shortcuts[next_entry]" list="keys" value="<?php echo $s['next_entry']; ?>" />
  36. <?php echo Translate::t ('shift_for_last'); ?>
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label class="group-name" for="prev_entry"><?php echo Translate::t ('previous_article'); ?></label>
  41. <div class="group-controls">
  42. <input type="text" id="prev_entry" name="shortcuts[prev_entry]" list="keys" value="<?php echo $s['prev_entry']; ?>" />
  43. <?php echo Translate::t ('shift_for_first'); ?>
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="group-name" for="next_page"><?php echo Translate::t ('next_page'); ?></label>
  48. <div class="group-controls">
  49. <input type="text" id="next_page" name="shortcuts[next_page]" list="keys" value="<?php echo $s['next_page']; ?>" />
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="group-name" for="prev_page"><?php echo Translate::t ('previous_page'); ?></label>
  54. <div class="group-controls">
  55. <input type="text" id="prev_page" name="shortcuts[prev_page]" list="keys" value="<?php echo $s['prev_page']; ?>" />
  56. </div>
  57. </div>
  58. <div class="form-group form-actions">
  59. <div class="group-controls">
  60. <button type="submit" class="btn btn-important"><?php echo Translate::t ('save'); ?></button>
  61. <button type="reset" class="btn"><?php echo Translate::t ('cancel'); ?></button>
  62. </div>
  63. </div>
  64. </form>
  65. </div>