devtool_pages.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {% include 'devtool_header.html' %}
  2. <table>
  3. <tr>
  4. <th>Page Id</th>
  5. <th>Asset Directory</th>
  6. <th>Index File</th>
  7. <th>Actions</th>
  8. </tr>
  9. <tr>
  10. <form action="/editor.php?a=pages&command=add" method="post">
  11. <td>
  12. NEW
  13. </td>
  14. <td>
  15. <input type="text" id="template_path" name="template_path" value="" placeholder="coreg123"/>
  16. </td>
  17. <td>
  18. <input type="text" id="template_filename" name="template_filename" value="" placeholder="index.html" />
  19. </td>
  20. <td>
  21. <input type="submit" value="Save" />
  22. </td>
  23. </form>
  24. </tr>
  25. {% for page in pages %}
  26. <tr>
  27. <td>
  28. {{ page['page_id'] }}
  29. </td>
  30. <td>
  31. {{ page['template_path'] }}
  32. </td>
  33. <td>
  34. <a href="/?action=generic&id={{ page['page_id'] }}">{{ page['template_filename'] }}</a>
  35. </td>
  36. <td>
  37. <a href="/editor.php?a=pages&id={{ page['page_id'] }}&command=edit">Edit</a>
  38. <a href="/editor.php?a=pages&id={{ page['page_id'] }}&command=delete" onclick="return confirm('Are you sure you want to PERMANENTLY DELETE page #{{ page['page_id'] }}? This action cannot be undone.')">Delete</a>
  39. </td>
  40. </tr>
  41. {% endfor %}
  42. </table>
  43. {% include 'devtool_footer.html' %}