install.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html>
  3. <head>{include="includes"}</head>
  4. <body onload="document.installform.setlogin.focus();">
  5. <div id="install">
  6. <h1>Shaarli</h1>
  7. It looks like it's the first time you run Shaarli. Please configure it:<br>
  8. <form method="POST" action="#" name="installform" id="installform">
  9. <table>
  10. <tr><td><b>Login:</b></td><td><input type="text" name="setlogin" size="30"></td></tr>
  11. <tr><td><b>Password:</b></td><td><input type="password" name="setpassword" size="30"></td></tr>
  12. <tr>
  13. <td><b>Timezone:</b></td>
  14. <td>
  15. <select id="continent" name="continent">
  16. {loop="$continents"}
  17. {if="$key !== 'selected'"}
  18. <option value="{$value}" {if="$continents.selected === $value"}selected{/if}>
  19. {$value}
  20. </option>
  21. {/if}
  22. {/loop}
  23. </select>
  24. <select id="city" name="city">
  25. {loop="$cities"}
  26. {if="$key !== 'selected'"}
  27. <option value="{$value.city}"
  28. {if="$cities.selected === $value.city"}selected{/if}
  29. data-continent="{$value.continent}">
  30. {$value.city}
  31. </option>
  32. {/if}
  33. {/loop}
  34. </select>
  35. </td>
  36. </tr>
  37. <tr><td><b>Page title:</b></td><td><input type="text" name="title" size="30"></td></tr>
  38. <tr><td valign="top"><b>Update:</b></td><td>
  39. <input type="checkbox" name="updateCheck" id="updateCheck" checked="checked"><label for="updateCheck">&nbsp;Notify me when a new release is ready</label></td>
  40. </tr>
  41. <tr>
  42. <td valign="top">
  43. <b>API:</b>
  44. </td>
  45. <td>
  46. <input type="checkbox" name="enableApi" id="enableApi" checked="checked">
  47. <label for="enableApi">
  48. &nbsp;Enable Shaarli's REST API.
  49. Allow third party software to use Shaarli such as mobile application.
  50. </label>
  51. </td>
  52. </tr>
  53. <tr><td colspan="2"><input type="submit" name="Save" value="Save config" class="bigbutton"></td></tr>
  54. </table>
  55. </form>
  56. </div>
  57. {include="page.footer"}
  58. </body>
  59. </html>