config.tx 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. <br />
  28. <input type="submit" class="coolbutton" value="Commit Changes" />
  29. </form>
  30. <hr />
  31. <p class="title">
  32. Theme cloner:
  33. </p>
  34. Want to write your own theme?
  35. 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>
  36. for information on how tCMS' templates, image sets and CSS work in the theming system.
  37. <hr />
  38. <form class="Submissions" id="themeCloner" method="post" action="/themeclone">
  39. Theme:
  40. <select class="cooltext" name="theme">
  41. : for $themes -> $theme {
  42. <option value="<: $theme :>"><: $theme :></option>
  43. : }
  44. </select>
  45. <input required type="text" class="cooltext" placeholder="newTheme" name="newtheme" />
  46. <input type="submit" class="coolbutton" value="Clone" />
  47. </form>
  48. </div>