KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
2.9KB

  1. ${ trigger.call("before_page_fields") }
  2. <p>
  3. <label for="title">${ "Title" | translate }</label>
  4. <input class="text" type="text" name="title" value="${ page.title | escape }" id="title" />
  5. </p>
  6. <p>
  7. <label for="body">${ "Body" | translate }</label>
  8. <textarea class="wide preview_me" rows="12" name="body" id="body" cols="50">${ page.body | escape }</textarea>
  9. </p>
  10. ${ trigger.call("after_page_fields") }
  11. <div class="buttons">
  12. <button type="submit" class="yay right" accesskey="s">
  13. {% if route.action == "write_page" %}
  14. <img src="$theme_url/images/icons/success.png" alt="success" />${ "Publish" | translate }
  15. {% else %}
  16. <img src="$theme_url/images/icons/success.png" alt="success" />${ "Save" | translate }
  17. {% endif %}
  18. </button>
  19. </div>
  20. <div class="clear"></div>
  21. <noscript><br /></noscript>
  22. <div id="more_options" class="more_options js_disabled">
  23. <p>
  24. <label for="show_in_list">${ "Show in pages list?" | translate }</label>
  25. <input type="checkbox" name="show_in_list" id="show_in_list" tabindex="3"{% if page.show_in_list or route.action == "write_page" %} checked="checked"{% endif %} />&nbsp;
  26. </p>
  27. <p>
  28. <label for="slug">${ "Slug" | translate }</label>
  29. <input class="text" type="text" name="slug" value="${ page.slug | escape }" id="slug" />
  30. </p>
  31. <p>
  32. <label for="parent_id">${ "Parent" | translate }</label>
  33. <select name="parent_id" id="parent_id">
  34. <option value="0">----------</option>
  35. {% for item in theme.pages_list(0, page.id) %}
  36. <option value="$item.page.id"${ page.parent_id | option_selected(item.page.id) }>${ "&mdash;" | repeat(item.page.depth - 1) } ${ item.page.title | escape }</option>
  37. {% endfor %}
  38. </select>
  39. </p>
  40. {% if route.action == "write_page" %}
  41. ${ trigger.call("new_page_options") }
  42. {% else %}
  43. ${ trigger.call("edit_page_options", page) }
  44. {% endif %}
  45. <div class="clear"></div>
  46. </div>
  47. </div>