dashboard.html 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. {% extends "layout.html" %}
  2. {% block title %}Home{% endblock %}
  3. {% block description %}User Dashboard{% endblock %}
  4. {% block head %}
  5. <style>
  6. </style>
  7. {% endblock %}
  8. {% block content %}
  9. <div class="backed col-sm-12 col-md-12 col-lg-12">
  10. <p>
  11. <h3>{{user.email}} <a href="/organization/{{organization.key}}">{{organization.name}}</a></h3>
  12. </p>
  13. <a class="button" href="/project/add">➕ add project</a>
  14. <a class="button" href="/board/add">➕ add board</a>
  15. <a class="button" href="/service_item/add">➕ add products & services</a>
  16. <a class="button" href="/entity/add">➕ add entity</a>
  17. <a class="button center" href="/note/add/Organization/{{organization.key}}">➕ Add Note</a>
  18. <a class="button center" href="/file/add/Organization/{{organization.key}}">➕ Attach File</a>
  19. <div class="tabbed">
  20. <input type="radio" id="tab1" name="css-tabs" checked>
  21. <input type="radio" id="tab2" name="css-tabs">
  22. <input type="radio" id="tab3" name="css-tabs">
  23. <input type="radio" id="tab4" name="css-tabs">
  24. <input type="radio" id="tab5" name="css-tabs">
  25. <ul class="tabs">
  26. <li class="tab"><label for="tab1">Projects</label></li>
  27. <li class="tab"><label for="tab2">Boards</label></li>
  28. <li class="tab"><label for="tab3">Services & Products</label></li>
  29. <li class="tab"><label for="tab4">Contacts & Entitys</label></li>
  30. <li class="tab"><label for="tab5">Documents</label></li>
  31. </ul>
  32. <div class="tab-content">
  33. {% if projects.len() > 0 %}
  34. <h3>Your Projects</h3>
  35. <div class="row">
  36. {% for project in projects %}
  37. <div class="white-backed bump col-sm-12 col-md-4 col-lg-3">
  38. <a href="/project/{{project.key}}">
  39. <p><b>{{project.name}}</b></p>
  40. <hr />
  41. <p>{{project.description}}</p>
  42. </a>
  43. </div>
  44. {% endfor %}
  45. </div>
  46. {% else %}
  47. <div class="row white-backed ">
  48. <div class="col-sm-12 col-md-12 col-lg-12">
  49. <h3>Create Your First Project</h3>
  50. <h4>Keep track of the different projects you have across your marketing, sales, R&D, business development, and
  51. executive teams.</h4>
  52. <h5>Create tasks, schedules, and milestones. Keep organized notes, documentation and files relevant to the
  53. project in one easily accessible place.</h5>
  54. </div>
  55. <div class="col-sm-12 col-md-6 col-lg-6">
  56. <a class="button" href="/project/add">➕ add project</a>
  57. </div>
  58. <div class="col-sm-12 col-md-6 col-lg-6">
  59. <a class="button" style="text-decoration: underline;" href="/akaunting">Import From Akaunting</a>
  60. </div>
  61. </div>
  62. {% endif %}
  63. </div>
  64. <div class="tab-content">
  65. {% if user_boards.len() > 0 %}
  66. <h3>Your Boards</h3>
  67. <div class="row">
  68. {% for board in user_boards %}
  69. <div class="white-backed bump col-sm-12 col-md-4 col-lg-3">
  70. <a href="/board/{{board.key}}">
  71. <p><b>{{board.name}}</b></p>
  72. <hr />
  73. <p>{{board.description}}</p>
  74. </a>
  75. </div>
  76. {% endfor %}
  77. </div>
  78. {% else %}
  79. <div class="row white-backed ">
  80. <div class="col-sm-12 col-md-12 col-lg-12">
  81. <h3>Create Your First Board</h3>
  82. <h4>Track and filter tasks with boards to help you manage tasks across lots of projects and teams.</h4>
  83. <h5>Customize columns and filters to view what's happening exactly how you need</h5>
  84. </div>
  85. <div class="col-sm-12 col-md-12 col-lg-12">
  86. <a class="button" href="/board/add">➕ add board</a>
  87. </div>
  88. </div>
  89. {% endif %}
  90. </div>
  91. <div class="tab-content">
  92. {% if service_items.len() > 0 %}
  93. <h3>Services and Products</h3>
  94. <div class="row">
  95. {% for service_item in service_items %}
  96. <div class="white-backed bump col-sm-12 col-md-4 col-lg-3">
  97. <a href="/service_item/{{service_item.key}}">
  98. <p><b>{{service_item.name}}</b></p>
  99. <hr />
  100. <p>{{service_item.description}}</p>
  101. </a>
  102. </div>
  103. {% endfor %}
  104. </div>
  105. {% else %}
  106. <div class="row white-backed">
  107. <div class="col-sm-12 col-md-12 col-lg-12">
  108. <h3>Import your items and services from akaunting or add some</h3>
  109. <h4>Link your projects and tasks to items and services to help organize and visualize your operations even
  110. better.</h4>
  111. </div>
  112. <div class="col-sm-12 col-md-6 col-lg-6">
  113. <a class="button" href="/service_item/add">Add some products/services</a>
  114. </div>
  115. <div class="col-sm-12 col-md-6 col-lg-6">
  116. <a class="button" style="text-decoration: underline;" href="/akaunting">Import From Akaunting</a>
  117. </div>
  118. </div>
  119. {% endif %}
  120. </div>
  121. <div class="tab-content">
  122. <div class="row justified ">
  123. <div class="col-sm-12 {% if contacts.len() > 0 %}col-md-6 col-lg-6}{%else%}col-md-12 col-lg-12{%endif%}">
  124. {% if entitys.len() > 0 %}
  125. <h3>Entitys</h3>
  126. <div class="row">
  127. {% for entity in entitys %}
  128. <div class="white-backed bump col-sm-12 col-md-4 col-lg-3">
  129. <a href="/entity/{{entity.key}}">
  130. <p><b>{{entity.name}}</b></p>
  131. <hr />
  132. </a>
  133. </div>
  134. {% endfor %}
  135. </div>
  136. {%else%}
  137. <div class="row white-backed">
  138. <div class="col-sm-12 col-md-12 col-lg-12">
  139. <h3>Import your customers and suppliers from akaunting or add some</h3>
  140. <h4>Link different entities to tasks, projects, items and services to help organize and automate your
  141. operations to the fullest.</h4>
  142. </div>
  143. <div class="col-sm-12 col-md-6 col-lg-6">
  144. <a class="button" href="/entity/add">Add New Entity</a>
  145. </div>
  146. <div class="col-sm-12 col-md-6 col-lg-6">
  147. <a class="button" style="text-decoration: underline;" href="/akaunting">Import From Akaunting</a>
  148. </div>
  149. </div>
  150. {% endif %}
  151. </div>
  152. <div class="col-sm-12 col-md-6 col-lg-6">
  153. {% if contacts.len() > 0 %}
  154. <h3>Global Rolodex</h3>
  155. <div class="row">
  156. {% for contact in contacts %}
  157. <div class="white-backed bump col-sm-12 col-md-4 col-lg-3">
  158. <a href="/contact/{{contact.key}}">
  159. <p><b>{{contact.first_name}} {{contact.last_name}}</b></p>
  160. <hr />
  161. </a>
  162. </div>
  163. {% endfor %}
  164. </div>
  165. {% endif %}
  166. </div>
  167. </div>
  168. </div>
  169. <div class="tab-content">
  170. <div class="row justified ">
  171. <div class="col-sm-12 col-md-6 col-lg-6">
  172. {% if notes.len() > 0 %}
  173. <h3>Notes & Docs</h3>
  174. <div class="row">
  175. {% for note in notes %}
  176. <div class="white-backed bump col-sm-12 col-md-4 col-lg-3">
  177. <a href="/note/{{note.key}}">
  178. <p><b>{{note.title}}</b></p>
  179. <hr />
  180. </a>
  181. </div>
  182. {% endfor %}
  183. </div>
  184. {%else%}
  185. <div class="row white-backed">
  186. <div class="col-sm-12 col-md-12 col-lg-12">
  187. <h3>Add Your First Note</h3>
  188. <h4>Create a note at the Organization level: internal documentation, onboarding, style guides and employee
  189. guide lines can be created and accessible by all teams across all projects</h4>
  190. </div>
  191. <div class="col-sm-12 col-md-12 col-lg-12">
  192. <a class="button center" href="/note/add/Organization/{{organization.key}}">➕ Add Note</a>
  193. </div>
  194. </div>
  195. {% endif %}
  196. </div>
  197. <div class="col-sm-12 col-md-6 col-lg-6">
  198. {% if files.len() > 0 %}
  199. <h3>Files</h3>
  200. <div class="row">
  201. {% for file in files %}
  202. <div class="white-backed bump col-sm-12 col-md-4 col-lg-3">
  203. <a href="/file/{{file.key}}">
  204. <p><b>🖇️ {{file.name}} {{file.description}}</b></p>
  205. <hr />
  206. </a>
  207. </div>
  208. {% endfor %}
  209. </div>
  210. {%else%}
  211. <div class="row white-backed">
  212. <div class="col-sm-12 col-md-12 col-lg-12">
  213. <h3>Attach Your First File</h3>
  214. <h4>Attach a file to be visible for the organization. Easily share and access files you store here.</h4>
  215. </div>
  216. <div class="col-sm-12 col-md-12 col-lg-12">
  217. <a class="button center" href="/file/add/Organization/{{organization.key}}">➕ Attach File</a>
  218. </div>
  219. </div>
  220. {% endif %}
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. {% endblock %}