index.html 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title>Radicale Web Interface</title>
  8. <link href="css/main.css" type="text/css" media="screen" rel="stylesheet">
  9. <link href="css/icon.png" type="image/png" rel="icon">
  10. <style>.hidden {display: none !important;}</style>
  11. <script src="fn.js"></script>
  12. </head>
  13. <body>
  14. <nav id="logoutview" class="hidden">
  15. <span data-name="user" style="word-wrap:break-word;"></span>
  16. <a href="" class="red" data-name="link" title="Logout">Logout</a>
  17. </nav>
  18. <main>
  19. <section id="loadingscene">
  20. <img src="css/loading.svg" alt="Loading">
  21. <h2>Loading</h2>
  22. <p>Please wait...</p>
  23. <noscript>JavaScript is required</noscript>
  24. </section>
  25. <section id="loginscene" class="container hidden">
  26. <div class="logocontainer">
  27. <img src="css/logo.svg" alt="Radicale">
  28. </div>
  29. <h1>Sign in</h1>
  30. <br>
  31. <form data-name="form">
  32. <input data-name="user" type="text" placeholder="Username">
  33. <input data-name="password" type="password" placeholder="Password">
  34. <button class="green" type="submit">Next</button>
  35. <span class="error" data-name="error"></span>
  36. </form>
  37. </section>
  38. <section id="collectionsscene" class="hidden">
  39. <div class="fabcontainer">
  40. <a href="" class="green" data-name="new" title="Create a new addressbook or calendar">
  41. <img src="css/icons/new.svg" class="icon" alt="➕">
  42. </a>
  43. <a href="" class="blue" data-name="upload" title="Upload an addressbook or calendar">
  44. <img src="css/icons/upload.svg" class="icon" alt="⬆️">
  45. </a>
  46. </div>
  47. <article data-name="collectiontemplate" class="hidden">
  48. <div class="colorbar" data-name="color"></div>
  49. <h3 class="title" data-name="title">Title</h3>
  50. <small>
  51. <span data-name="ADDRESSBOOK">Address book</span>
  52. <span data-name="CALENDAR_JOURNAL_TASKS">Calendar, journal and tasks</span>
  53. <span data-name="CALENDAR_JOURNAL">Calendar and journal</span>
  54. <span data-name="CALENDAR_TASKS">Calendar and tasks</span>
  55. <span data-name="JOURNAL_TASKS">Journal and tasks</span>
  56. <span data-name="CALENDAR">Calendar</span>
  57. <span data-name="JOURNAL">Journal</span>
  58. <span data-name="TASKS">Tasks</span>
  59. <span data-name="WEBCAL">Webcal</span>
  60. </small>
  61. <small data-name="contentcount"></small>
  62. <input type="text" data-name="url" value="" readonly="" onfocus="this.setSelectionRange(0, 99999);">
  63. <p data-name="description" style="word-wrap:break-word;">Description</p>
  64. <ul>
  65. <li>
  66. <a href="" title="Download" class="green" data-name="download">
  67. <img src="css/icons/download.svg" class="icon" alt="🔗">
  68. </a>
  69. </li>
  70. <li>
  71. <a href="" title="Edit" class="blue" data-name="edit">
  72. <img src="css/icons/edit.svg" class="icon" alt="✏️">
  73. </a>
  74. </li>
  75. <li>
  76. <a href="" title="Delete" class="red" data-name="delete">
  77. <img src="css/icons/delete.svg" class="icon" alt="❌">
  78. </a>
  79. </li>
  80. </ul>
  81. </article>
  82. </section>
  83. <section id="editcollectionscene" class="container hidden">
  84. <h1>Edit Collection</h1>
  85. <p>Editing collection <span class="title" data-name="title">title</span>
  86. </p>
  87. <form> Type: <br>
  88. <select data-name="type">
  89. <option value="ADDRESSBOOK">addressbook</option>
  90. <option value="CALENDAR_JOURNAL_TASKS">calendar, journal and tasks</option>
  91. <option value="CALENDAR_JOURNAL">calendar and journal</option>
  92. <option value="CALENDAR_TASKS">calendar and tasks</option>
  93. <option value="JOURNAL_TASKS">journal and tasks</option>
  94. <option value="CALENDAR">calendar</option>
  95. <option value="JOURNAL">journal</option>
  96. <option value="TASKS">tasks</option>
  97. <option value="WEBCAL">webcal</option>
  98. </select>
  99. <label for="displayname">Title:</label>
  100. <input data-name="displayname" type="text">
  101. <label for="description">Description:</label>
  102. <input data-name="description" type="text">
  103. <label for="source">Source:</label>
  104. <input data-name="source" type="url">
  105. <label for="color">Color:</label>
  106. <input data-name="color" type="color">
  107. <br>
  108. <span class="error hidden" data-name="error"></span>
  109. <br>
  110. <button type="submit" class="green" data-name="submit">Save</button>
  111. <button type="button" class="red" data-name="cancel">Cancel</button>
  112. </form>
  113. </section>
  114. <section id="createcollectionscene" class="container hidden">
  115. <h1>Create a new Collection</h1>
  116. <p>Enter the details of your new collection.</p>
  117. <form> Type: <br>
  118. <select data-name="type">
  119. <option value="ADDRESSBOOK">Address book</option>
  120. <option value="CALENDAR_JOURNAL_TASKS">Calendar, journal and tasks</option>
  121. <option value="CALENDAR_JOURNAL">Calendar and journal</option>
  122. <option value="CALENDAR_TASKS">Calendar and tasks</option>
  123. <option value="JOURNAL_TASKS">Journal and tasks</option>
  124. <option value="CALENDAR">Calendar</option>
  125. <option value="JOURNAL">Journal</option>
  126. <option value="TASKS">Tasks</option>
  127. <option value="WEBCAL">Webcal</option>
  128. </select>
  129. <label for="href">HREF:</label>
  130. <input data-name="href" type="text">
  131. <label for="displayname">Title:</label>
  132. <input data-name="displayname" type="text">
  133. <label for="description">Description:</label>
  134. <input data-name="description" type="text">
  135. <label for="source">Source:</label>
  136. <input data-name="source" type="url">
  137. <label for="color">Color:</label>
  138. <input data-name="color" type="color">
  139. <br>
  140. <span class="error" data-name="error"></span>
  141. <br>
  142. <button type="submit" class="green" data-name="submit">Create</button>
  143. <button type="button" class="red" data-name="cancel">Cancel</button>
  144. </form>
  145. </section>
  146. <section id="uploadcollectionscene" class="container hidden">
  147. <h1>Upload Collection</h1>
  148. <ul>
  149. <li data-name="filetemplate" class="hidden"> Uploading <span data-name="name">name</span>
  150. <br>
  151. <img data-name="pending" src="css/loading.svg" alt="Please wait...">
  152. <span class="successmessage" data-name="success">Uploaded Successfully!</span>
  153. <span class="error" data-name="error"></span>
  154. </li>
  155. </ul>
  156. <form>
  157. <button type="button" class="red" data-name="close">Close</button>
  158. </form>
  159. </section>
  160. <section id="deletecollectionscene" class="container hidden">
  161. <h1>Delete Collection</h1>
  162. <p>To delete the collection <span class="title" data-name="title">title</span> please enter the phrase <strong data-name="deleteconfirmationtext"></strong> in the box below:</p>
  163. <input type="text" class="deleteconfirmationtxt" data-name="confirmationtxt" />
  164. <p class="red">WARNING: This action cannot be reversed.</p>
  165. <form>
  166. <button type="button" class="red" data-name="delete">Delete</button>
  167. <button type="button" class="blue" data-name="cancel">Cancel</button>
  168. </form>
  169. <span class="error hidden" data-name="error"></span>
  170. <br>
  171. </section>
  172. </main>
  173. </body>
  174. </html>