config.tx 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. : include "sysbar.tx";
  2. : include "jsalert.tx";
  3. <div id="backoffice">
  4. <p class="title">
  5. General settings:
  6. </p>
  7. This controls your Theme and Data Model used.
  8. The Data Model <em>must</em> be 0-configuration.
  9. If for example, you use mysql it will have to rely on either a local server, valid config file or connection proxy/pooler locally.
  10. <hr />
  11. <form class="Submissions Config" id="mainConfig" method="post" action="/config/save">
  12. Theme:
  13. <select class="cooltext" name="theme">
  14. <option value="" <: if ( $current_theme == '' ) { :>selected<: } :> >default</option>
  15. : for $themes -> $theme {
  16. <option value="<: $theme :>" <: if ( $current_theme == $theme ) { :>selected<: } :> ><: $theme :></option>
  17. : }
  18. </select>
  19. <div>
  20. Data Model:
  21. <select class="cooltext" name="data_model">
  22. : for $data_models -> $dm {
  23. <option value="<: $dm :>" <: if ( $current_data_model == $dm ) { :>selected<: } :> ><: $dm :></option>
  24. : }
  25. </select>
  26. </div>
  27. <div>
  28. Global TOTP Secret:
  29. <input class="cooltext" type="text" name="totp_secret" value="<: $totp_secret :>" />
  30. </div>
  31. <br />
  32. <input type="submit" class="coolbutton" value="Commit Changes" />
  33. </form>
  34. <hr />
  35. <p class="title">
  36. Theme cloner:
  37. </p>
  38. Want to write your own theme?
  39. Clone a theme here then see the <a href="https://tcms.troglodyne.net/index.php?nav=5&post=fileshare/manual/Chapter 03-Customization.post" title="GET UR MIND RITE">styling guide</a>
  40. for information on how tCMS' templates, image sets and CSS work in the theming system.
  41. <hr />
  42. <form class="Submissions" id="themeCloner" method="post" action="/themeclone">
  43. Theme:
  44. <select class="cooltext" name="theme">
  45. : for $themes -> $theme {
  46. <option value="<: $theme :>"><: $theme :></option>
  47. : }
  48. </select>
  49. <input required type="text" class="cooltext" placeholder="newTheme" name="newtheme" />
  50. <input type="submit" class="coolbutton" value="Clone" />
  51. </form>
  52. </div>