think_feel_do_engine 3.10.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (613) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +54 -0
  4. data/Rakefile +49 -0
  5. data/app/assets/images/changing_actions.gif +0 -0
  6. data/app/assets/images/evaluating_thoughts.gif +0 -0
  7. data/app/assets/images/favicon.ico +0 -0
  8. data/app/assets/images/think_feel_do_engine/athletic_man.png +0 -0
  9. data/app/assets/images/think_feel_do_engine/favicon.ico +0 -0
  10. data/app/assets/images/think_feel_do_engine/head_with_gears.jpg +0 -0
  11. data/app/assets/images/think_feel_do_engine/professional_woman.png +0 -0
  12. data/app/assets/images/think_feel_do_engine/woman_with_wrench.png +0 -0
  13. data/app/assets/javascripts/think_feel_do_engine.js +32 -0
  14. data/app/assets/javascripts/think_feel_do_engine/activities/activity_tracker.js +386 -0
  15. data/app/assets/javascripts/think_feel_do_engine/activities/dailyBreakdown.js +407 -0
  16. data/app/assets/javascripts/think_feel_do_engine/activities/forms.js +81 -0
  17. data/app/assets/javascripts/think_feel_do_engine/activities/your_activities.js +28 -0
  18. data/app/assets/javascripts/think_feel_do_engine/assessments.js +14 -0
  19. data/app/assets/javascripts/think_feel_do_engine/coach/messages/new.js +13 -0
  20. data/app/assets/javascripts/think_feel_do_engine/coach/patient_dashboards/index.js +16 -0
  21. data/app/assets/javascripts/think_feel_do_engine/dateWrapper.js +7 -0
  22. data/app/assets/javascripts/think_feel_do_engine/devise/passwords/edit.js.erb +24 -0
  23. data/app/assets/javascripts/think_feel_do_engine/event_capture/init.js +68 -0
  24. data/app/assets/javascripts/think_feel_do_engine/feel/emotion_mood_viz.js +31 -0
  25. data/app/assets/javascripts/think_feel_do_engine/feel/emotions.js +450 -0
  26. data/app/assets/javascripts/think_feel_do_engine/feel/timeago.js +214 -0
  27. data/app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb +22 -0
  28. data/app/assets/javascripts/think_feel_do_engine/forms/multi_page_thought.js.erb +41 -0
  29. data/app/assets/javascripts/think_feel_do_engine/forms/suggested_prompt.js +22 -0
  30. data/app/assets/javascripts/think_feel_do_engine/markdown_editor.js +13 -0
  31. data/app/assets/javascripts/think_feel_do_engine/media_access_events.js +35 -0
  32. data/app/assets/javascripts/think_feel_do_engine/messages.js +8 -0
  33. data/app/assets/javascripts/think_feel_do_engine/participants.js +12 -0
  34. data/app/assets/javascripts/think_feel_do_engine/responsive-table.js +75 -0
  35. data/app/assets/javascripts/think_feel_do_engine/scrollindicator.js +92 -0
  36. data/app/assets/javascripts/think_feel_do_engine/shared/detect_timeout.js +42 -0
  37. data/app/assets/javascripts/think_feel_do_engine/slideshows.js +14 -0
  38. data/app/assets/javascripts/think_feel_do_engine/stepped_care.js +53 -0
  39. data/app/assets/javascripts/think_feel_do_engine/task_status.js +19 -0
  40. data/app/assets/javascripts/think_feel_do_engine/thought_patterns/index.js.erb +17 -0
  41. data/app/assets/javascripts/think_feel_do_engine/thoughts/edit_bulk.js +12 -0
  42. data/app/assets/javascripts/think_feel_do_engine/thoughts/scThoughtTrackerMenuViz.js +346 -0
  43. data/app/assets/javascripts/think_feel_do_engine/thoughts/thought_viz.js +53 -0
  44. data/app/assets/javascripts/think_feel_do_engine/users.js +10 -0
  45. data/app/assets/javascripts/think_feel_do_engine/validate_social_sharing.js +60 -0
  46. data/app/assets/stylesheets/think_feel_do_engine.css +12 -0
  47. data/app/assets/stylesheets/think_feel_do_engine/activities.css.scss +15 -0
  48. data/app/assets/stylesheets/think_feel_do_engine/base.css.scss +691 -0
  49. data/app/assets/stylesheets/think_feel_do_engine/dataTables-overrides.css.scss +27 -0
  50. data/app/assets/stylesheets/think_feel_do_engine/mobile.css.scss +3 -0
  51. data/app/assets/stylesheets/think_feel_do_engine/print.css.scss +1 -0
  52. data/app/controllers/think_feel_do_engine/application_controller.rb +77 -0
  53. data/app/controllers/think_feel_do_engine/bit_maker/content_modules_controller.rb +115 -0
  54. data/app/controllers/think_feel_do_engine/bit_maker/content_providers_controller.rb +117 -0
  55. data/app/controllers/think_feel_do_engine/bit_maker/slides_controller.rb +168 -0
  56. data/app/controllers/think_feel_do_engine/bit_maker/slideshow_anchors_controller.rb +61 -0
  57. data/app/controllers/think_feel_do_engine/bit_maker/slideshows_controller.rb +93 -0
  58. data/app/controllers/think_feel_do_engine/coach/group_dashboard_controller.rb +18 -0
  59. data/app/controllers/think_feel_do_engine/coach/memberships_controller.rb +38 -0
  60. data/app/controllers/think_feel_do_engine/coach/messages_controller.rb +91 -0
  61. data/app/controllers/think_feel_do_engine/coach/participant_activities_visualizations_controller.rb +24 -0
  62. data/app/controllers/think_feel_do_engine/coach/participant_thoughts_visualizations_controller.rb +15 -0
  63. data/app/controllers/think_feel_do_engine/coach/patient_dashboards_controller.rb +70 -0
  64. data/app/controllers/think_feel_do_engine/coach/phq_assessments_controller.rb +94 -0
  65. data/app/controllers/think_feel_do_engine/coach/received_messages_controller.rb +45 -0
  66. data/app/controllers/think_feel_do_engine/coach/sent_messages_controller.rb +26 -0
  67. data/app/controllers/think_feel_do_engine/coach/site_messages_controller.rb +49 -0
  68. data/app/controllers/think_feel_do_engine/coach_dashboard_controller.rb +11 -0
  69. data/app/controllers/think_feel_do_engine/concerns/browser_detective.rb +26 -0
  70. data/app/controllers/think_feel_do_engine/concerns/navigator_enabled.rb +17 -0
  71. data/app/controllers/think_feel_do_engine/keep_alive_controller.rb +27 -0
  72. data/app/controllers/think_feel_do_engine/lesson_slides_controller.rb +98 -0
  73. data/app/controllers/think_feel_do_engine/lessons_controller.rb +128 -0
  74. data/app/controllers/think_feel_do_engine/manage/groups_controller.rb +29 -0
  75. data/app/controllers/think_feel_do_engine/manage/tasks_controller.rb +68 -0
  76. data/app/controllers/think_feel_do_engine/memberships_controller.rb +55 -0
  77. data/app/controllers/think_feel_do_engine/navigator_controller.rb +109 -0
  78. data/app/controllers/think_feel_do_engine/participant_data_controller.rb +83 -0
  79. data/app/controllers/think_feel_do_engine/participants/activities_controller.rb +62 -0
  80. data/app/controllers/think_feel_do_engine/participants/assessments_controller.rb +84 -0
  81. data/app/controllers/think_feel_do_engine/participants/lessons_controller.rb +28 -0
  82. data/app/controllers/think_feel_do_engine/participants/media_access_events_controller.rb +42 -0
  83. data/app/controllers/think_feel_do_engine/participants/passwords_controller.rb +33 -0
  84. data/app/controllers/think_feel_do_engine/participants/public_slides_controller.rb +11 -0
  85. data/app/controllers/think_feel_do_engine/participants/sessions_controller.rb +16 -0
  86. data/app/controllers/think_feel_do_engine/participants/task_status_controller.rb +29 -0
  87. data/app/controllers/think_feel_do_engine/participants/thoughts_controller.rb +28 -0
  88. data/app/controllers/think_feel_do_engine/password_entropy_bits_controller.rb +12 -0
  89. data/app/controllers/think_feel_do_engine/privacy_policies_controller.rb +15 -0
  90. data/app/controllers/think_feel_do_engine/quick_sign_ins_controller.rb +18 -0
  91. data/app/controllers/think_feel_do_engine/users/passwords_controller.rb +16 -0
  92. data/app/controllers/think_feel_do_engine/users/registrations_controller.rb +16 -0
  93. data/app/controllers/think_feel_do_engine/users/sessions_controller.rb +36 -0
  94. data/app/helpers/think_feel_do_engine/activities_helper.rb +53 -0
  95. data/app/helpers/think_feel_do_engine/application_helper.rb +24 -0
  96. data/app/helpers/think_feel_do_engine/brand_helper.rb +36 -0
  97. data/app/helpers/think_feel_do_engine/coach/activity_color_code_helper.rb +52 -0
  98. data/app/helpers/think_feel_do_engine/coach/dashboard_and_phq_table_helper.rb +93 -0
  99. data/app/helpers/think_feel_do_engine/coach/group_dashboard_helper.rb +156 -0
  100. data/app/helpers/think_feel_do_engine/coach/messages_helper.rb +35 -0
  101. data/app/helpers/think_feel_do_engine/coach/moods_and_phq_viz_helper.rb +23 -0
  102. data/app/helpers/think_feel_do_engine/coach/patient_dashboard_helper.rb +58 -0
  103. data/app/helpers/think_feel_do_engine/emotions_helper.rb +15 -0
  104. data/app/helpers/think_feel_do_engine/phq_assessment_helper.rb +14 -0
  105. data/app/helpers/think_feel_do_engine/presenters_helper.rb +8 -0
  106. data/app/helpers/think_feel_do_engine/slides_helper.rb +43 -0
  107. data/app/helpers/think_feel_do_engine/tasks_helper.rb +110 -0
  108. data/app/mailers/think_feel_do_engine/lesson_notification_mailer.rb +15 -0
  109. data/app/mailers/think_feel_do_engine/message_notifications.rb +21 -0
  110. data/app/mailers/think_feel_do_engine/site_message_mailer.rb +11 -0
  111. data/app/models/ability.rb +91 -0
  112. data/app/models/activity.rb +362 -0
  113. data/app/models/activity_type.rb +8 -0
  114. data/app/models/arm.rb +47 -0
  115. data/app/models/arm_validator.rb +11 -0
  116. data/app/models/available_content_module.rb +95 -0
  117. data/app/models/awake_period.rb +40 -0
  118. data/app/models/bit_core/slide_observer.rb +9 -0
  119. data/app/models/coach_assignment.rb +9 -0
  120. data/app/models/content_modules.rb +27 -0
  121. data/app/models/content_modules/lesson_module.rb +88 -0
  122. data/app/models/content_provider_decorator.rb +115 -0
  123. data/app/models/content_provider_policy.rb +6 -0
  124. data/app/models/content_providers/accomplished_activity_index_provider.rb +21 -0
  125. data/app/models/content_providers/activity_index_provider.rb +25 -0
  126. data/app/models/content_providers/augmented_thoughts_table_provider.rb +18 -0
  127. data/app/models/content_providers/awake_period_form.rb +67 -0
  128. data/app/models/content_providers/create_activity.rb +42 -0
  129. data/app/models/content_providers/edit_past_feel_provider.rb +8 -0
  130. data/app/models/content_providers/evaluate_thoughts_provider.rb +15 -0
  131. data/app/models/content_providers/fun_activity_checklist.rb +43 -0
  132. data/app/models/content_providers/harmful_thoughts_edit_form_provider.rb +31 -0
  133. data/app/models/content_providers/helpful_thoughts_index_provider.rb +31 -0
  134. data/app/models/content_providers/important_activity_checklist.rb +44 -0
  135. data/app/models/content_providers/index_past_feel_provider.rb +24 -0
  136. data/app/models/content_providers/input_new_activity_form.rb +28 -0
  137. data/app/models/content_providers/learn_lessons_index_provider.rb +55 -0
  138. data/app/models/content_providers/messages_index_provider.rb +64 -0
  139. data/app/models/content_providers/module_index_provider.rb +41 -0
  140. data/app/models/content_providers/new_complete_thought_form_provider.rb +26 -0
  141. data/app/models/content_providers/new_current_emotion_provider.rb +30 -0
  142. data/app/models/content_providers/new_current_feel_provider.rb +26 -0
  143. data/app/models/content_providers/new_harmful_thought_form_provider.rb +27 -0
  144. data/app/models/content_providers/new_message_form_provider.rb +61 -0
  145. data/app/models/content_providers/new_past_feel_provider.rb +26 -0
  146. data/app/models/content_providers/new_thought_form_provider.rb +26 -0
  147. data/app/models/content_providers/new_thoughts_form_provider.rb +26 -0
  148. data/app/models/content_providers/past_activity_form.rb +55 -0
  149. data/app/models/content_providers/past_activity_review_form.rb +36 -0
  150. data/app/models/content_providers/past_due_activities_viz.rb +40 -0
  151. data/app/models/content_providers/pleasurable_activity_index_provider.rb +20 -0
  152. data/app/models/content_providers/previous_planned_activities_provider.rb +35 -0
  153. data/app/models/content_providers/random_slide_provider.rb +14 -0
  154. data/app/models/content_providers/show_message_provider.rb +78 -0
  155. data/app/models/content_providers/thought_patterns_index_provider.rb +21 -0
  156. data/app/models/content_providers/thoughts_distortion_viz_provider.rb +22 -0
  157. data/app/models/content_providers/thoughts_table_provider.rb +17 -0
  158. data/app/models/content_providers/unhelpful_thoughts_list_provider.rb +67 -0
  159. data/app/models/content_providers/unhelpful_thoughts_reflection_provider.rb +26 -0
  160. data/app/models/content_providers/unplanned_activity_form.rb +35 -0
  161. data/app/models/content_providers/your_activities_provider.rb +94 -0
  162. data/app/models/delivered_message.rb +59 -0
  163. data/app/models/emotion.rb +30 -0
  164. data/app/models/emotional_rating.rb +45 -0
  165. data/app/models/engagement.rb +7 -0
  166. data/app/models/group.rb +144 -0
  167. data/app/models/media_access_event.rb +24 -0
  168. data/app/models/membership.rb +199 -0
  169. data/app/models/message.rb +58 -0
  170. data/app/models/message_sms_notification.rb +45 -0
  171. data/app/models/mood.rb +31 -0
  172. data/app/models/participant.rb +355 -0
  173. data/app/models/participant_login_event.rb +6 -0
  174. data/app/models/participant_token.rb +32 -0
  175. data/app/models/phq_assessment.rb +55 -0
  176. data/app/models/phq_stepping.rb +325 -0
  177. data/app/models/phq_stepping_assessment.rb +96 -0
  178. data/app/models/planned_activity.rb +5 -0
  179. data/app/models/roles/clinician.rb +4 -0
  180. data/app/models/roles/content_author.rb +4 -0
  181. data/app/models/roles/researcher.rb +4 -0
  182. data/app/models/site_message.rb +6 -0
  183. data/app/models/slideshow_anchor.rb +16 -0
  184. data/app/models/task.rb +102 -0
  185. data/app/models/task_status.rb +94 -0
  186. data/app/models/think_feel_do_engine/addressable.rb +28 -0
  187. data/app/models/think_feel_do_engine/concerns/validate_password.rb +65 -0
  188. data/app/models/think_feel_do_engine/password_validator.rb +55 -0
  189. data/app/models/think_feel_do_engine/reports/emotional_rating.rb +23 -0
  190. data/app/models/think_feel_do_engine/reports/event.rb +26 -0
  191. data/app/models/think_feel_do_engine/reports/lesson_module.rb +47 -0
  192. data/app/models/think_feel_do_engine/reports/lesson_slide_view.rb +94 -0
  193. data/app/models/think_feel_do_engine/reports/lesson_viewing.rb +64 -0
  194. data/app/models/think_feel_do_engine/reports/login.rb +22 -0
  195. data/app/models/think_feel_do_engine/reports/messaging.rb +109 -0
  196. data/app/models/think_feel_do_engine/reports/module_page_view.rb +57 -0
  197. data/app/models/think_feel_do_engine/reports/module_session.rb +130 -0
  198. data/app/models/think_feel_do_engine/reports/patient_activity.rb +22 -0
  199. data/app/models/think_feel_do_engine/reports/patient_thought.rb +22 -0
  200. data/app/models/think_feel_do_engine/reports/phq_assessment.rb +32 -0
  201. data/app/models/think_feel_do_engine/reports/reporter.rb +45 -0
  202. data/app/models/think_feel_do_engine/reports/site_session.rb +63 -0
  203. data/app/models/think_feel_do_engine/reports/task_completion.rb +30 -0
  204. data/app/models/think_feel_do_engine/reports/tool_access.rb +51 -0
  205. data/app/models/think_feel_do_engine/reports/tool_module.rb +29 -0
  206. data/app/models/think_feel_do_engine/reports/user_agent.rb +33 -0
  207. data/app/models/think_feel_do_engine/reports/video_session.rb +65 -0
  208. data/app/models/think_feel_do_engine/reports/wai_assessment.rb +35 -0
  209. data/app/models/thought.rb +80 -0
  210. data/app/models/thought_pattern.rb +6 -0
  211. data/app/models/tool_nav_item.rb +65 -0
  212. data/app/models/tools/home.rb +5 -0
  213. data/app/models/tools/learn.rb +5 -0
  214. data/app/models/tools/messages.rb +5 -0
  215. data/app/models/tools/think.rb +5 -0
  216. data/app/models/unplanned_activities.rb +47 -0
  217. data/app/models/user.rb +55 -0
  218. data/app/models/user_role.rb +18 -0
  219. data/app/models/values/accomplishment.rb +23 -0
  220. data/app/models/values/emotional_rating.rb +23 -0
  221. data/app/models/values/mood.rb +22 -0
  222. data/app/models/values/pleasure.rb +23 -0
  223. data/app/models/wai_assessment.rb +30 -0
  224. data/app/presenters/think_feel_do_engine/harmful_thought_viz_presenter.rb +30 -0
  225. data/app/presenters/think_feel_do_engine/lesson_event/completion_data_presenter.rb +41 -0
  226. data/app/presenters/think_feel_do_engine/media_access_event_presenter.rb +54 -0
  227. data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  228. data/app/views/devise/passwords/edit.html.erb +35 -0
  229. data/app/views/devise/passwords/new.html.erb +17 -0
  230. data/app/views/devise/sessions/new.html.erb +50 -0
  231. data/app/views/devise/shared/_links.erb +25 -0
  232. data/app/views/layouts/phq_assessment_mailer.html.erb +87 -0
  233. data/app/views/slides/show.html.erb +2 -0
  234. data/app/views/think_feel_do_engine/activities/_activity.html.erb +18 -0
  235. data/app/views/think_feel_do_engine/activities/_activity_coach_view.html.erb +6 -0
  236. data/app/views/think_feel_do_engine/activities/_activity_coach_view_future.html.erb +13 -0
  237. data/app/views/think_feel_do_engine/activities/_activity_coach_view_past.html.erb +21 -0
  238. data/app/views/think_feel_do_engine/activities/_activity_form_fields.html.erb +21 -0
  239. data/app/views/think_feel_do_engine/activities/_build_activity.html.erb +107 -0
  240. data/app/views/think_feel_do_engine/activities/_daily_summary.html.erb +121 -0
  241. data/app/views/think_feel_do_engine/activities/_intensity_selector.html.erb +25 -0
  242. data/app/views/think_feel_do_engine/activities/_mutable_activity.html.erb +14 -0
  243. data/app/views/think_feel_do_engine/activities/_past_due_activities_index_viz.html.erb +25 -0
  244. data/app/views/think_feel_do_engine/activities/_past_due_rows.erb +7 -0
  245. data/app/views/think_feel_do_engine/activities/_past_due_table.erb +39 -0
  246. data/app/views/think_feel_do_engine/activities/_previously_planned.html.erb +9 -0
  247. data/app/views/think_feel_do_engine/activities/accomplished_index.html.erb +84 -0
  248. data/app/views/think_feel_do_engine/activities/create_activity.html.erb +5 -0
  249. data/app/views/think_feel_do_engine/activities/fun_activity_checklist.html.erb +5 -0
  250. data/app/views/think_feel_do_engine/activities/important_activity_checklist.html.erb +5 -0
  251. data/app/views/think_feel_do_engine/activities/index.html.erb +81 -0
  252. data/app/views/think_feel_do_engine/activities/input_new_activity_form.html.erb +64 -0
  253. data/app/views/think_feel_do_engine/activities/past_activity_form.html.erb +75 -0
  254. data/app/views/think_feel_do_engine/activities/past_activity_review.html.erb +104 -0
  255. data/app/views/think_feel_do_engine/activities/pleasurable_index.html.erb +84 -0
  256. data/app/views/think_feel_do_engine/activities/previously_planned_fullpage.html.erb +12 -0
  257. data/app/views/think_feel_do_engine/activities/unplanned_activity_form.html.erb +21 -0
  258. data/app/views/think_feel_do_engine/activities/visualization.html.erb +120 -0
  259. data/app/views/think_feel_do_engine/assigned_tasks/show.html.erb +1 -0
  260. data/app/views/think_feel_do_engine/awake_periods/incomplete.html.erb +13 -0
  261. data/app/views/think_feel_do_engine/awake_periods/new.html.erb +34 -0
  262. data/app/views/think_feel_do_engine/bit_maker/content_modules/_form.html.erb +24 -0
  263. data/app/views/think_feel_do_engine/bit_maker/content_modules/edit.html.erb +9 -0
  264. data/app/views/think_feel_do_engine/bit_maker/content_modules/index.html.erb +38 -0
  265. data/app/views/think_feel_do_engine/bit_maker/content_modules/new.html.erb +9 -0
  266. data/app/views/think_feel_do_engine/bit_maker/content_modules/show.html.erb +27 -0
  267. data/app/views/think_feel_do_engine/bit_maker/content_providers/_form.html.erb +48 -0
  268. data/app/views/think_feel_do_engine/bit_maker/content_providers/edit.html.erb +12 -0
  269. data/app/views/think_feel_do_engine/bit_maker/content_providers/index.html.erb +36 -0
  270. data/app/views/think_feel_do_engine/bit_maker/content_providers/new.html.erb +12 -0
  271. data/app/views/think_feel_do_engine/bit_maker/content_providers/show.html.erb +42 -0
  272. data/app/views/think_feel_do_engine/bit_maker/slides/_fields.html.erb +212 -0
  273. data/app/views/think_feel_do_engine/bit_maker/slides/_slide.html.erb +23 -0
  274. data/app/views/think_feel_do_engine/bit_maker/slides/edit.html.erb +9 -0
  275. data/app/views/think_feel_do_engine/bit_maker/slides/index.html.erb +6 -0
  276. data/app/views/think_feel_do_engine/bit_maker/slides/new.html.erb +6 -0
  277. data/app/views/think_feel_do_engine/bit_maker/slideshow_anchors/create.js.erb +2 -0
  278. data/app/views/think_feel_do_engine/bit_maker/slideshow_anchors/destroy.js.erb +2 -0
  279. data/app/views/think_feel_do_engine/bit_maker/slideshows/_fields.html +4 -0
  280. data/app/views/think_feel_do_engine/bit_maker/slideshows/_slide_panel.html.erb +12 -0
  281. data/app/views/think_feel_do_engine/bit_maker/slideshows/_toc_panel.html.erb +5 -0
  282. data/app/views/think_feel_do_engine/bit_maker/slideshows/edit.html.erb +7 -0
  283. data/app/views/think_feel_do_engine/bit_maker/slideshows/index.html.erb +42 -0
  284. data/app/views/think_feel_do_engine/bit_maker/slideshows/new.html.erb +6 -0
  285. data/app/views/think_feel_do_engine/bit_maker/slideshows/show.html.erb +31 -0
  286. data/app/views/think_feel_do_engine/coach/group_dashboard/_activities_future.html.erb +69 -0
  287. data/app/views/think_feel_do_engine/coach/group_dashboard/_activities_past.html.erb +75 -0
  288. data/app/views/think_feel_do_engine/coach/group_dashboard/_comments.html.erb +63 -0
  289. data/app/views/think_feel_do_engine/coach/group_dashboard/_goals.html.erb +71 -0
  290. data/app/views/think_feel_do_engine/coach/group_dashboard/_learning_lesson_row.html.erb +5 -0
  291. data/app/views/think_feel_do_engine/coach/group_dashboard/_lesson_completion_breakdown.html.erb +33 -0
  292. data/app/views/think_feel_do_engine/coach/group_dashboard/_lessons.html.erb +21 -0
  293. data/app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb +63 -0
  294. data/app/views/think_feel_do_engine/coach/group_dashboard/_logins.html.erb +24 -0
  295. data/app/views/think_feel_do_engine/coach/group_dashboard/_on_my_mind_statements.html.erb +66 -0
  296. data/app/views/think_feel_do_engine/coach/group_dashboard/_summary.html.erb +30 -0
  297. data/app/views/think_feel_do_engine/coach/group_dashboard/_summary_social.html.erb +24 -0
  298. data/app/views/think_feel_do_engine/coach/group_dashboard/_thoughts.html.erb +67 -0
  299. data/app/views/think_feel_do_engine/coach/group_dashboard/index.html.erb +50 -0
  300. data/app/views/think_feel_do_engine/coach/messages/index.html.erb +50 -0
  301. data/app/views/think_feel_do_engine/coach/messages/new.html.erb +32 -0
  302. data/app/views/think_feel_do_engine/coach/patient_dashboards/_active_patient.html.erb +104 -0
  303. data/app/views/think_feel_do_engine/coach/patient_dashboards/_details.html.erb +54 -0
  304. data/app/views/think_feel_do_engine/coach/patient_dashboards/_header.html.erb +5 -0
  305. data/app/views/think_feel_do_engine/coach/patient_dashboards/_inactive_patient.html.erb +34 -0
  306. data/app/views/think_feel_do_engine/coach/patient_dashboards/_mood_emotion_viz.html.erb +6 -0
  307. data/app/views/think_feel_do_engine/coach/patient_dashboards/_not_stepped_table.html.erb +36 -0
  308. data/app/views/think_feel_do_engine/coach/patient_dashboards/_phq_summary.html.erb +61 -0
  309. data/app/views/think_feel_do_engine/coach/patient_dashboards/_stepped_table.html.erb +35 -0
  310. data/app/views/think_feel_do_engine/coach/patient_dashboards/_table_of_contents.html.erb +20 -0
  311. data/app/views/think_feel_do_engine/coach/patient_dashboards/_test_summary.html.erb +39 -0
  312. data/app/views/think_feel_do_engine/coach/patient_dashboards/_vizs.html.erb +73 -0
  313. data/app/views/think_feel_do_engine/coach/patient_dashboards/index.html.erb +20 -0
  314. data/app/views/think_feel_do_engine/coach/patient_dashboards/show.html.erb +23 -0
  315. data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_audio_access_table.html.erb +49 -0
  316. data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_feelings_table.html.erb +48 -0
  317. data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_future_activities_table.html.erb +66 -0
  318. data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_lessons_table.html.erb +56 -0
  319. data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_logins_table.html.erb +47 -0
  320. data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_messages_table.html.erb +46 -0
  321. data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_mood_table.html.erb +46 -0
  322. data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_past_activities_table.html.erb +70 -0
  323. data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_info.html.erb +39 -0
  324. data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb +51 -0
  325. data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_phq9_data.html.erb +47 -0
  326. data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_summary_totals.html.erb +49 -0
  327. data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_tasks_table.html.erb +47 -0
  328. data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_thoughts_table.html.erb +49 -0
  329. data/app/views/think_feel_do_engine/coach/phq_assessments/_form.html.erb +42 -0
  330. data/app/views/think_feel_do_engine/coach/phq_assessments/edit.html.erb +3 -0
  331. data/app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb +43 -0
  332. data/app/views/think_feel_do_engine/coach/phq_assessments/new.html.erb +3 -0
  333. data/app/views/think_feel_do_engine/coach/received_messages/_received_message.html.erb +5 -0
  334. data/app/views/think_feel_do_engine/coach/site_messages/_form.html.erb +38 -0
  335. data/app/views/think_feel_do_engine/coach/site_messages/index.html.erb +30 -0
  336. data/app/views/think_feel_do_engine/coach/site_messages/new.html.erb +3 -0
  337. data/app/views/think_feel_do_engine/coach/site_messages/show.html.erb +16 -0
  338. data/app/views/think_feel_do_engine/emotions/_emotion_coach_view.html.erb +8 -0
  339. data/app/views/think_feel_do_engine/emotions/_form.html.erb +28 -0
  340. data/app/views/think_feel_do_engine/emotions/index.html.erb +75 -0
  341. data/app/views/think_feel_do_engine/emotions/new_current.html.erb +30 -0
  342. data/app/views/think_feel_do_engine/learn/_completion_data.html.erb +28 -0
  343. data/app/views/think_feel_do_engine/learn/lessons_index.html.erb +72 -0
  344. data/app/views/think_feel_do_engine/lesson_notification_mailer/lesson_notification_email.html.erb +82 -0
  345. data/app/views/think_feel_do_engine/lesson_notification_mailer/lesson_notification_email.text.erb +10 -0
  346. data/app/views/think_feel_do_engine/lesson_slides/_audio.html.erb +1 -0
  347. data/app/views/think_feel_do_engine/lesson_slides/_video.html.erb +4 -0
  348. data/app/views/think_feel_do_engine/lesson_slides/edit.html.erb +7 -0
  349. data/app/views/think_feel_do_engine/lesson_slides/new.html.erb +6 -0
  350. data/app/views/think_feel_do_engine/lesson_slides/show.html.erb +21 -0
  351. data/app/views/think_feel_do_engine/lessons/_form.html.erb +8 -0
  352. data/app/views/think_feel_do_engine/lessons/_lesson.html.erb +6 -0
  353. data/app/views/think_feel_do_engine/lessons/all_content.html.erb +12 -0
  354. data/app/views/think_feel_do_engine/lessons/edit.html.erb +8 -0
  355. data/app/views/think_feel_do_engine/lessons/index.html.erb +36 -0
  356. data/app/views/think_feel_do_engine/lessons/new.html.erb +8 -0
  357. data/app/views/think_feel_do_engine/lessons/show.html.erb +30 -0
  358. data/app/views/think_feel_do_engine/login_events/_login_event.html.erb +6 -0
  359. data/app/views/think_feel_do_engine/manage/groups/_assigned_task_cell.html.erb +16 -0
  360. data/app/views/think_feel_do_engine/manage/groups/edit_tasks.html.erb +83 -0
  361. data/app/views/think_feel_do_engine/manage/groups/index.html.erb +19 -0
  362. data/app/views/think_feel_do_engine/manage/tasks/index.html.erb +24 -0
  363. data/app/views/think_feel_do_engine/media_access_events/_access_data.html.erb +24 -0
  364. data/app/views/think_feel_do_engine/memberships/update.js.erb +4 -0
  365. data/app/views/think_feel_do_engine/message_notifications/new_for_coach.html.erb +93 -0
  366. data/app/views/think_feel_do_engine/message_notifications/new_for_coach.text.erb +3 -0
  367. data/app/views/think_feel_do_engine/message_notifications/new_for_participant.html.erb +93 -0
  368. data/app/views/think_feel_do_engine/message_notifications/new_for_participant.text.erb +3 -0
  369. data/app/views/think_feel_do_engine/messages/_message.html.erb +7 -0
  370. data/app/views/think_feel_do_engine/messages/_message_info.html.erb +9 -0
  371. data/app/views/think_feel_do_engine/messages/index.html.erb +54 -0
  372. data/app/views/think_feel_do_engine/messages/new.html.erb +34 -0
  373. data/app/views/think_feel_do_engine/messages/not_found.html.erb +3 -0
  374. data/app/views/think_feel_do_engine/messages/show.html.erb +27 -0
  375. data/app/views/think_feel_do_engine/moods/_mood.html.erb +7 -0
  376. data/app/views/think_feel_do_engine/moods/new_current.html.erb +18 -0
  377. data/app/views/think_feel_do_engine/moods/new_past_mood.html.erb +28 -0
  378. data/app/views/think_feel_do_engine/navigator/_before_content.html.erb +5 -0
  379. data/app/views/think_feel_do_engine/navigator/show_content.html.erb +14 -0
  380. data/app/views/think_feel_do_engine/participant_data/create.js.erb +1 -0
  381. data/app/views/think_feel_do_engine/participant_data/update.js.erb +1 -0
  382. data/app/views/think_feel_do_engine/participants/activities/create.js.erb +5 -0
  383. data/app/views/think_feel_do_engine/participants/assessments/new_phq_assessment.html.erb +77 -0
  384. data/app/views/think_feel_do_engine/participants/assessments/new_wai_assessment.html.erb +51 -0
  385. data/app/views/think_feel_do_engine/participants/assessments/success.html +1 -0
  386. data/app/views/think_feel_do_engine/participants/content_modules/index.html.erb +36 -0
  387. data/app/views/think_feel_do_engine/participants/lessons/_printable.html.erb +15 -0
  388. data/app/views/think_feel_do_engine/participants/lessons/show.html.erb +1 -0
  389. data/app/views/think_feel_do_engine/participants/messages/_inbox_header.html.erb +1 -0
  390. data/app/views/think_feel_do_engine/participants/public_slides/show.html.erb +8 -0
  391. data/app/views/think_feel_do_engine/participants/received_messages/_received_message.html.erb +1 -0
  392. data/app/views/think_feel_do_engine/participants/thoughts/create.js.erb +24 -0
  393. data/app/views/think_feel_do_engine/phq_assessments/_phq_assessment.html.erb +15 -0
  394. data/app/views/think_feel_do_engine/privacy_policies/show.html.erb +17 -0
  395. data/app/views/think_feel_do_engine/shared/_alerts.html.erb +17 -0
  396. data/app/views/think_feel_do_engine/shared/_authentication.html.erb +5 -0
  397. data/app/views/think_feel_do_engine/shared/_email_head.html.erb +771 -0
  398. data/app/views/think_feel_do_engine/shared/_footer.html.erb +21 -0
  399. data/app/views/think_feel_do_engine/shared/_head.html.erb +14 -0
  400. data/app/views/think_feel_do_engine/shared/_home.html.erb +4 -0
  401. data/app/views/think_feel_do_engine/shared/_jplayer.html.erb +48 -0
  402. data/app/views/think_feel_do_engine/shared/_rating_selector.html.erb +16 -0
  403. data/app/views/think_feel_do_engine/shared/participant/_hamburger_nav_items.html.erb +19 -0
  404. data/app/views/think_feel_do_engine/shared/participant/_nav_items.html.erb +49 -0
  405. data/app/views/think_feel_do_engine/shared/participant/_navbar.html.erb +38 -0
  406. data/app/views/think_feel_do_engine/shared/user/_navbar.html.erb +25 -0
  407. data/app/views/think_feel_do_engine/site_message_mailer/general.html.erb +8 -0
  408. data/app/views/think_feel_do_engine/site_message_mailer/general.text.erb +3 -0
  409. data/app/views/think_feel_do_engine/slides/_audio.html.erb +4 -0
  410. data/app/views/think_feel_do_engine/slides/_slide.html.erb +18 -0
  411. data/app/views/think_feel_do_engine/slides/_table_of_contents.html.erb +24 -0
  412. data/app/views/think_feel_do_engine/slides/_video.html.erb +34 -0
  413. data/app/views/think_feel_do_engine/slides/homepage.html.erb +29 -0
  414. data/app/views/think_feel_do_engine/slides/show.html.erb +11 -0
  415. data/app/views/think_feel_do_engine/slides/sort.js.erb +1 -0
  416. data/app/views/think_feel_do_engine/slides/sort_with_reload.js.erb +1 -0
  417. data/app/views/think_feel_do_engine/task_statuses/_task_status.html.erb +8 -0
  418. data/app/views/think_feel_do_engine/thought_patterns/evaluating.html.erb +2 -0
  419. data/app/views/think_feel_do_engine/thought_patterns/index.html.erb +8 -0
  420. data/app/views/think_feel_do_engine/thoughts/_form.html.erb +11 -0
  421. data/app/views/think_feel_do_engine/thoughts/_harmful_thought.html.erb +4 -0
  422. data/app/views/think_feel_do_engine/thoughts/_mutable_thought.html.erb +23 -0
  423. data/app/views/think_feel_do_engine/thoughts/_thought.html.erb +10 -0
  424. data/app/views/think_feel_do_engine/thoughts/_thought_effects.html.erb +1 -0
  425. data/app/views/think_feel_do_engine/thoughts/_thought_patterns.html.erb +7 -0
  426. data/app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb +28 -0
  427. data/app/views/think_feel_do_engine/thoughts/edit_bulk.html.erb +43 -0
  428. data/app/views/think_feel_do_engine/thoughts/index.html.erb +24 -0
  429. data/app/views/think_feel_do_engine/thoughts/new.html.erb +5 -0
  430. data/app/views/think_feel_do_engine/thoughts/new_bulk.html.erb +36 -0
  431. data/app/views/think_feel_do_engine/thoughts/new_complete.html.erb +28 -0
  432. data/app/views/think_feel_do_engine/thoughts/new_harmful.html.erb +14 -0
  433. data/app/views/think_feel_do_engine/thoughts/thoughts_table.html.erb +60 -0
  434. data/app/views/think_feel_do_engine/thoughts/unhelpful_thoughts_form.html.erb +103 -0
  435. data/config/brakeman.ignore +206 -0
  436. data/config/brakeman.yml +5 -0
  437. data/config/initializers/datetime_formats.rb +32 -0
  438. data/config/initializers/devise.rb +272 -0
  439. data/config/initializers/event_capture.rb +43 -0
  440. data/config/initializers/think_feel_do_engine.rb +4 -0
  441. data/config/locales/devise.en.yml +60 -0
  442. data/config/locales/en.yml +4 -0
  443. data/config/locales/rails_admin.en.yml +5 -0
  444. data/config/routes.rb +107 -0
  445. data/db/migrate/20140221174027_devise_create_users.rb +41 -0
  446. data/db/migrate/20140221182135_devise_create_participants.rb +28 -0
  447. data/db/migrate/20140221184614_create_groups.rb +29 -0
  448. data/db/migrate/20140221190256_create_memberships.rb +39 -0
  449. data/db/migrate/20140221201915_create_user_roles.rb +23 -0
  450. data/db/migrate/20140221204356_create_activity_types.rb +27 -0
  451. data/db/migrate/20140221211420_create_activities.rb +46 -0
  452. data/db/migrate/20140221214020_create_awake_periods.rb +29 -0
  453. data/db/migrate/20140223151355_create_slideshows.rb +12 -0
  454. data/db/migrate/20140223151505_create_slides.rb +33 -0
  455. data/db/migrate/20140224024338_create_content_modules.rb +12 -0
  456. data/db/migrate/20140224031252_create_content_providers.rb +34 -0
  457. data/db/migrate/20140224194936_require_titles_on_slides.rb +8 -0
  458. data/db/migrate/20140226174312_add_is_title_visible_to_slides.rb +8 -0
  459. data/db/migrate/20140226234059_drop_time_requirement_on_activities.rb +9 -0
  460. data/db/migrate/20140228042747_add_type_to_slides.rb +9 -0
  461. data/db/migrate/20140304020641_create_participant_statuses.rb +16 -0
  462. data/db/migrate/20140305134049_create_thoughts.rb +40 -0
  463. data/db/migrate/20140305204811_drop_extracted_bit_player_tables.rb +9 -0
  464. data/db/migrate/20140305220121_create_bit_player_content_modules.bit_player.rb +12 -0
  465. data/db/migrate/20140305220122_create_bit_player_content_providers.bit_player.rb +34 -0
  466. data/db/migrate/20140305233152_create_bit_player_participant_statuses.bit_player.rb +16 -0
  467. data/db/migrate/20140305235536_create_bit_player_slideshows.bit_player.rb +10 -0
  468. data/db/migrate/20140306000610_create_bit_player_slides.bit_player.rb +47 -0
  469. data/db/migrate/20140306161346_create_messages.rb +13 -0
  470. data/db/migrate/20140306161532_create_delivered_messages.rb +29 -0
  471. data/db/migrate/20140306175954_create_coach_assignments.rb +12 -0
  472. data/db/migrate/20140311172344_create_mood.rb +9 -0
  473. data/db/migrate/20140311182036_create_emotions.rb +10 -0
  474. data/db/migrate/20140311194313_add_column_activation_level_and_intensity_to_emotion.rb +9 -0
  475. data/db/migrate/20140313025147_create_thought_patterns.rb +10 -0
  476. data/db/migrate/20140313192408_add_pattern_id_to_thoughts.rb +22 -0
  477. data/db/migrate/20140313205806_add_name_to_emotions.rb +6 -0
  478. data/db/migrate/20140314203044_change_column_name_activation_level_to_valence.rb +8 -0
  479. data/db/migrate/20140318163703_create_group_slideshow_joins.rb +12 -0
  480. data/db/migrate/20140320183600_add_start_date_to_memberships.rb +5 -0
  481. data/db/migrate/20140326144359_create_phq_assessments.rb +39 -0
  482. data/db/migrate/20140326205140_create_participant_tokens.rb +32 -0
  483. data/db/migrate/20140331165739_add_end_date_to_memberships.rb +5 -0
  484. data/db/migrate/20140402151311_create_tasks.rb +11 -0
  485. data/db/migrate/20140402170153_add_creator_id_to_tasks.rb +5 -0
  486. data/db/migrate/20140407134214_create_task_statuses.rb +11 -0
  487. data/db/migrate/20140407150122_add_release_day_to_task_remove_is_completed_at_from_task.rb +6 -0
  488. data/db/migrate/20140407202026_create_bit_player_tools.bit_player.rb +14 -0
  489. data/db/migrate/20140407202027_change_module_context_to_tool.bit_player.rb +31 -0
  490. data/db/migrate/20140411184738_add_recurring_to_tasks.rb +5 -0
  491. data/db/migrate/20140411195557_add_question_and_explanation_to_thought_pattern.rb +6 -0
  492. data/db/migrate/20140411195804_add_challenging_thought_and_as_if_to_thought.rb +6 -0
  493. data/db/migrate/20140415165729_add_start_day_to_task_statuses.rb +5 -0
  494. data/db/migrate/20140418190852_remove_fk_groups_users_constraint.rb +21 -0
  495. data/db/migrate/20140421192355_change_start_date_on_membership_from_date_time_to_date.rb +9 -0
  496. data/db/migrate/20140501170217_add_is_admin_to_users.rb +5 -0
  497. data/db/migrate/20140501190812_add_participant_login_event.rb +9 -0
  498. data/db/migrate/20140502222145_add_is_admin_to_all_current_users.rb +15 -0
  499. data/db/migrate/20140505145843_add_study_id_to_participants.rb +5 -0
  500. data/db/migrate/20140523154605_delete_group_slideshow_join.rb +16 -0
  501. data/db/migrate/20140609181801_create_engagements.rb +10 -0
  502. data/db/migrate/20140620171824_create_bit_core_tools.bit_core.rb +29 -0
  503. data/db/migrate/20140620171825_create_bit_core_content_modules.bit_core.rb +41 -0
  504. data/db/migrate/20140620171826_create_bit_core_content_providers.bit_core.rb +43 -0
  505. data/db/migrate/20140620171827_create_bit_core_slideshows.bit_core.rb +10 -0
  506. data/db/migrate/20140620171828_create_bit_core_slides.bit_core.rb +44 -0
  507. data/db/migrate/20140620181933_add_options_to_slides.bit_core.rb +6 -0
  508. data/db/migrate/20140621023345_convert_slides_slideshows_to_bit_core.bit_player.rb +39 -0
  509. data/db/migrate/20140621024853_update_tasks_with_bit_core.rb +7 -0
  510. data/db/migrate/20140621024854_add_config_fields_to_providers.bit_core.rb +10 -0
  511. data/db/migrate/20140621031203_convert_tools_modules_presenters_to_bit_core.bit_player.rb +53 -0
  512. data/db/migrate/20140623182430_remove_valence_from_emotions.rb +5 -0
  513. data/db/migrate/20140624163655_rename_column_participant_id_on_emotions_to_creator_id.rb +5 -0
  514. data/db/migrate/20140624165438_create_emotional_ratings.rb +10 -0
  515. data/db/migrate/20140624165626_remove_rating_from_emotion_remove_intensity_from_emotion.rb +6 -0
  516. data/db/migrate/20140625133411_add_type_to_content_modules.bit_core.rb +6 -0
  517. data/db/migrate/20140625140629_convert_lesson_modules.rb +12 -0
  518. data/db/migrate/20140625140630_add_recommendations_to_thought_patterns.rb +5 -0
  519. data/db/migrate/20140702192100_create_content_provider_policies.rb +10 -0
  520. data/db/migrate/20140703203931_add_termination_day_to_tasks.rb +5 -0
  521. data/db/migrate/20140710122908_create_slideshow_anchors.rb +10 -0
  522. data/db/migrate/20140715170155_add_inactive_log_out_to_participant_login_event.rb +5 -0
  523. data/db/migrate/20140721190945_normalize_emotions.rb +18 -0
  524. data/db/migrate/20140722163946_add_thought_patterns.rb +83 -0
  525. data/db/migrate/20140722172101_add_missing_fk_constraints.rb +187 -0
  526. data/db/migrate/20140722195542_add_emotion_ids_to_orphaned_emotional_ratings.rb +12 -0
  527. data/db/migrate/20140725164219_add_is_monitored_to_activity.rb +5 -0
  528. data/db/migrate/20140725185012_add_participant_onload_log_out_to_login_event.rb +5 -0
  529. data/db/migrate/20140729151610_add_signed_out_at_to_participant_login_events.rb +5 -0
  530. data/db/migrate/20140729171907_remove_participant_on_load_log_out_from_login_event.rb +5 -0
  531. data/db/migrate/20140730202349_update_thought_patterns.rb +94 -0
  532. data/db/migrate/20140815190945_add_phq_edit_columns.rb +13 -0
  533. data/db/migrate/20140818202120_add_has_didactic_content_to_tasks.rb +5 -0
  534. data/db/migrate/20140821184357_add_is_scheduled_to_activities.rb +5 -0
  535. data/db/migrate/20140902204337_create_event_capture_events.event_capture.rb +14 -0
  536. data/db/migrate/20140903134021_add_participant_id_to_events.rb +23 -0
  537. data/db/migrate/20141027181511_add_phone_number_to_participant.rb +5 -0
  538. data/db/migrate/20141027181539_add_contact_status_to_participant.rb +5 -0
  539. data/db/migrate/20141110190545_create_site_messages.rb +29 -0
  540. data/db/migrate/20141121152018_create_arms.rb +8 -0
  541. data/db/migrate/20141121201238_add_arm_id_to_groups.rb +5 -0
  542. data/db/migrate/20141125194600_add_null_false_to_arms.rb +6 -0
  543. data/db/migrate/20141125202627_add_null_false_to_columns_and_associate_arm_group_join_arm_ids_to_groups.rb +5 -0
  544. data/db/migrate/20141201154255_add_arm_id_to_bit_core_tools.rb +9 -0
  545. data/db/migrate/20141201165610_change_column_bit_core_tools_arm_id_to_null.rb +5 -0
  546. data/db/migrate/20141202133320_remove_position_unique_constraint_from_tool.rb +21 -0
  547. data/db/migrate/20141202173321_add_arm_id_to_bit_core_slideshows.rb +5 -0
  548. data/db/migrate/20141202173458_change_column_bit_core_slideshows_to_null_false.rb +38 -0
  549. data/db/migrate/20141211140747_add_is_admin_.textClipping +0 -0
  550. data/db/migrate/20141211140747_add_is_admin_to_participants.rb +5 -0
  551. data/db/migrate/20141214203919_add_has_woz_to_arm.rb +5 -0
  552. data/db/migrate/20141222222717_change_default_contact_preference.rb +5 -0
  553. data/db/migrate/20150107183443_add_is_positive_to_emotion.rb +6 -0
  554. data/db/migrate/20150107192208_remove_is_positive_from_emotion.rb +5 -0
  555. data/db/migrate/20150107192402_add_is_positive_to_emotional_rating.rb +5 -0
  556. data/db/migrate/20150127204928_add_is_complete_to_membership.rb +5 -0
  557. data/db/migrate/20150127204950_add_is_stepped_to_membership.rb +5 -0
  558. data/db/migrate/20150128151059_change_is_stepped_membership_to_not_allow_null.rb +5 -0
  559. data/db/migrate/20150128151231_change_is_complete_membership_to_not_allow_null.rb +5 -0
  560. data/db/migrate/20150128151515_data_migration_add_values_for_is_stepped_and_is_complete.rb +11 -0
  561. data/db/migrate/20150128192928_destroy_invalid_task_statuses.rb +14 -0
  562. data/db/migrate/20150129160122_add_description_to_tools.rb +5 -0
  563. data/db/migrate/20150130160818_add_type_to_tools.bit_core.rb +6 -0
  564. data/db/migrate/20150130161629_convert_messages_tool_type.rb +7 -0
  565. data/db/migrate/20150130173324_convert_home_tool_type.rb +7 -0
  566. data/db/migrate/20150130185412_convert_learn_tool_type.rb +7 -0
  567. data/db/migrate/20150131200718_add_is_viz_to_content_modules.bit_core.rb +6 -0
  568. data/db/migrate/20150131201021_add_is_viz_flag_to_modules.rb +9 -0
  569. data/db/migrate/20150202203359_update_tool_type_columns.rb +23 -0
  570. data/db/migrate/20150202215540_fix_module_viz_columns.rb +9 -0
  571. data/db/migrate/20150202232642_prevent_null_membership_dates.rb +6 -0
  572. data/db/migrate/20150206221439_create_wai_assessments.rb +52 -0
  573. data/db/migrate/20150209195004_create_think_feel_do_engine_media_access_events.rb +12 -0
  574. data/db/migrate/20150209212556_add_stepped_on_column_to_memberships.rb +10 -0
  575. data/db/migrate/20150209213422_remove_is_stepped_column_from_memberships.rb +5 -0
  576. data/db/migrate/20150210142824_destroy_invalid_messages.rb +5 -0
  577. data/db/migrate/20150210153608_add_slide_reference_to_media_access_events.rb +8 -0
  578. data/db/migrate/20150210161100_add_missing_constraints.rb +43 -0
  579. data/db/migrate/20150210163220_add_fk_constraints_to_media_access_events.rb +21 -0
  580. data/db/migrate/20150210164226_add_slide_fk_contstraint_to_media_access_events.rb +21 -0
  581. data/db/migrate/20150210165021_add_tool_constraint.bit_core.rb +26 -0
  582. data/db/migrate/20150218184531_add_has_table_of_contents_to_slideshows.rb +9 -0
  583. data/db/migrate/20150225221700_add_is_reviewed_to_activities.rb +5 -0
  584. data/db/migrate/20150226210641_remove_is_monitored_from_activities.rb +5 -0
  585. data/db/migrate/20150227221640_remove_is_complete_from_activities.rb +5 -0
  586. data/db/migrate/20150302155709_remove_is_scheduled_from_activities.rb +5 -0
  587. data/db/migrate/20150307182155_create_available_content_modules_view.rb +46 -0
  588. data/db/migrate/20150310171015_update_available_content_modules_view.rb +48 -0
  589. data/db/migrate/20150410174157_add_can_message_after_membership_complete_to_arms.rb +5 -0
  590. data/db/migrate/20150410175659_populate_arm_message_flag.rb +7 -0
  591. data/db/migrate/20150810204045_nullify_empty_thoughts_columns.rb +15 -0
  592. data/db/migrate/20150903210028_add_relase_day_not_null_constraint_to_trask.rb +5 -0
  593. data/db/migrate/20151104152804_update_think_tool_type_to_tools_think.rb +9 -0
  594. data/lib/tasks/lesson_notifications.rake +66 -0
  595. data/lib/tasks/seed.rake +30 -0
  596. data/lib/tasks/think_feel_do_engine_tasks.rake +4 -0
  597. data/lib/think_feel_do_engine.rb +16 -0
  598. data/lib/think_feel_do_engine/engine.rb +16 -0
  599. data/lib/think_feel_do_engine/version.rb +4 -0
  600. data/vendor/assets/images/jplayer.blue.monday.jpg +0 -0
  601. data/vendor/assets/images/jplayer.blue.monday.seeking.gif +0 -0
  602. data/vendor/assets/images/jplayer.blue.monday.video.play.png +0 -0
  603. data/vendor/assets/javascripts/bootstrap-markdown.js +1347 -0
  604. data/vendor/assets/javascripts/bootstrap-timepicker.js +1097 -0
  605. data/vendor/assets/javascripts/d3.min.js +5 -0
  606. data/vendor/assets/javascripts/froogaloop.min.js +4 -0
  607. data/vendor/assets/javascripts/jplayer.2.9.2.min.js +1 -0
  608. data/vendor/assets/javascripts/moment.min.js +6 -0
  609. data/vendor/assets/javascripts/snap.js +568 -0
  610. data/vendor/assets/stylesheets/bootstrap-timepicker.min.css +10 -0
  611. data/vendor/assets/stylesheets/jplayer.blue.monday.css.scss +630 -0
  612. data/vendor/assets/stylesheets/snap.css.scss +80 -0
  613. metadata +949 -0
@@ -0,0 +1,28 @@
1
+ <p class="lead">Over the past 24 hours, what emotions did you experience?</p>
2
+
3
+ <%= form_for mood, url: create_path, method: "post", html: { role: "form" } do |f| %>
4
+ <div class="form-group">
5
+ <%= f.label :rating, "Did you feel bad, good, or neither yesterday?" %>
6
+ </div>
7
+ <div class="form-group">
8
+ <div class="radio-inline">
9
+ <label>
10
+ <%= f.radio_button :rating, 0 %> Bad
11
+ </label>
12
+ </div>
13
+ <div class="radio-inline">
14
+ <label>
15
+ <%= f.radio_button :rating, 10 %> Good
16
+ </label>
17
+ </div>
18
+ <div class="radio-inline">
19
+ <label>
20
+ <%= f.radio_button :rating, 5 %> Neither
21
+ </label>
22
+ </div>
23
+ </div>
24
+
25
+ <div class="form-group">
26
+ <%= f.submit t(:next), class: "btn btn-default" %>
27
+ </div>
28
+ <% end %>
@@ -0,0 +1,5 @@
1
+ <% if current_provider_skippable?(@navigator) %>
2
+ <div class="btn-toolbar">
3
+ <%= link_to "Skip", navigator_next_provider_path, class: "btn btn-default next-button" %>
4
+ </div>
5
+ <% end %>
@@ -0,0 +1,14 @@
1
+ <%= render "before_content" rescue nil %>
2
+
3
+ <%= @navigator.render_current_content(self) %>
4
+
5
+ <% if @navigator.show_nav_link? %>
6
+ <div class='btn-toolbar'>
7
+ <%= content_tag(:a, t(:back), href: navigator_previous_content_path, type: "submit", class: "btn btn-default pull-left") if @navigator.previous_content? %>
8
+ <% if @navigator.current_module.is_a?(ContentModules::LessonModule) && !@navigator.current_content_provider.exists?(@navigator.content_position + 1) %>
9
+ <%= content_tag(:a, t(:finish), href: navigator_next_content_path, type: "submit", class: "btn btn-primary pull-right") %>
10
+ <% else %>
11
+ <%= content_tag(:a, t(:next), href: navigator_next_content_path, type: "submit", class: "btn btn-primary pull-right") %>
12
+ <% end %>
13
+ </div>
14
+ <% end %>
@@ -0,0 +1 @@
1
+ $('#alerts').html("<%= escape_javascript(render partial: 'think_feel_do_engine/shared/alerts', locals: { alert: alert, notice: notice }) %>");
@@ -0,0 +1 @@
1
+ $('#alerts').append("<%= escape_javascript(render partial: 'think_feel_do_engine/shared/alerts', locals: { alert: alert, notice: notice }) %>");
@@ -0,0 +1,5 @@
1
+ $("#activity-<%= @activity.id %>")
2
+ .replaceWith("<%= escape_javascript(render partial: 'think_feel_do_engine/activities/mutable_activity', object: @activity) %>");
3
+ $("#activity-<%= @activity.id %>")
4
+ .addClass("success");
5
+ setTimeout(function() { $("#activity-<%= @activity.id %>").removeClass("success"); }, 150);
@@ -0,0 +1,77 @@
1
+ <h1>PHQ-9</h1>
2
+
3
+ <p>Over the last week, how many days have you been bothered by any of the following problems? Read each item carefully, and select your response.</p>
4
+
5
+ <%= form_for [:participants, @assessment], as: :assessment, url: participants_assessments_path, html: { class: "phq9-form" } do |f| %>
6
+ <ol>
7
+ <li class="radio-question-group">
8
+ <strong>Little interest or pleasure in doing things</strong><br>
9
+ <%= f.radio_button :q1, 0 %> 0 - 1 days<br>
10
+ <%= f.radio_button :q1, 1 %> 2 - 3 days<br>
11
+ <%= f.radio_button :q1, 2 %> 4 - 5 days<br>
12
+ <%= f.radio_button :q1, 3 %> 6 - 7 days
13
+ </li>
14
+ <li class="radio-question-group">
15
+ <strong>Feeling down, depressed, or hopeless</strong><br>
16
+ <%= f.radio_button :q2, 0 %> 0 - 1 days<br>
17
+ <%= f.radio_button :q2, 1 %> 2 - 3 days<br>
18
+ <%= f.radio_button :q2, 2 %> 4 - 5 days<br>
19
+ <%= f.radio_button :q2, 3 %> 6 - 7 days
20
+ </li>
21
+ <li class="radio-question-group">
22
+ <strong>Trouble falling or staying asleep, or sleeping too much</strong><br>
23
+ <%= f.radio_button :q3, 0 %> 0 - 1 days<br>
24
+ <%= f.radio_button :q3, 1 %> 2 - 3 days<br>
25
+ <%= f.radio_button :q3, 2 %> 4 - 5 days<br>
26
+ <%= f.radio_button :q3, 3 %> 6 - 7 days
27
+ </li>
28
+ <li class="radio-question-group">
29
+ <strong>Feeling tired or having little energy</strong><br>
30
+ <%= f.radio_button :q4, 0 %> 0 - 1 days<br>
31
+ <%= f.radio_button :q4, 1 %> 2 - 3 days<br>
32
+ <%= f.radio_button :q4, 2 %> 4 - 5 days<br>
33
+ <%= f.radio_button :q4, 3 %> 6 - 7 days
34
+ </li>
35
+ <li class="radio-question-group">
36
+ <strong>Poor appetite or overeating</strong><br>
37
+ <%= f.radio_button :q5, 0 %> 0 - 1 days<br>
38
+ <%= f.radio_button :q5, 1 %> 2 - 3 days<br>
39
+ <%= f.radio_button :q5, 2 %> 4 - 5 days<br>
40
+ <%= f.radio_button :q5, 3 %> 6 - 7 days
41
+ </li>
42
+ <li class="radio-question-group">
43
+ <strong>Feeling bad about yourself, feeling that you are a failure, or feeling that you have let yourself or your family down</strong><br>
44
+ <%= f.radio_button :q6, 0 %> 0 - 1 days<br>
45
+ <%= f.radio_button :q6, 1 %> 2 - 3 days<br>
46
+ <%= f.radio_button :q6, 2 %> 4 - 5 days<br>
47
+ <%= f.radio_button :q6, 3 %> 6 - 7 days
48
+ </li>
49
+ <li class="radio-question-group">
50
+ <strong>Trouble concentrating on things such as reading the newspaper or watching television</strong><br>
51
+ <%= f.radio_button :q7, 0 %> 0 - 1 days<br>
52
+ <%= f.radio_button :q7, 1 %> 2 - 3 days<br>
53
+ <%= f.radio_button :q7, 2 %> 4 - 5 days<br>
54
+ <%= f.radio_button :q7, 3 %> 6 - 7 days
55
+ </li>
56
+ <li class="radio-question-group">
57
+ <strong>Moving or speaking so slowly that other people could have noticed. Or being so fidgety or restless that you have been moving around a lot more than usual</strong><br>
58
+ <%= f.radio_button :q8, 0 %> 0 - 1 days<br>
59
+ <%= f.radio_button :q8, 1 %> 2 - 3 days<br>
60
+ <%= f.radio_button :q8, 2 %> 4 - 5 days<br>
61
+ <%= f.radio_button :q8, 3 %> 6 - 7 days
62
+ </li>
63
+ <li class="radio-question-group">
64
+ <strong>Thinking that you would be better off dead or that you want to hurt yourself in some way</strong><br>
65
+ <%= f.radio_button :q9, 0 %> 0 - 1 days<br>
66
+ <%= f.radio_button :q9, 1 %> 2 - 3 days<br>
67
+ <%= f.radio_button :q9, 2 %> 4 - 5 days<br>
68
+ <%= f.radio_button :q9, 3 %> 6 - 7 days
69
+ </li>
70
+ </ol>
71
+ <input name="assessment[token]" type="hidden" value="<%= @token %>" />
72
+ <%= f.submit "submit", class: "btn btn-default" %>
73
+ <% end %>
74
+ <script type="text/javascript">
75
+ $("body").addClass("phq_body");
76
+ attach_assessment_event();
77
+ </script>
@@ -0,0 +1,51 @@
1
+ <h1>Working Alliance Inventory</h1>
2
+
3
+ <p>Below is a list of statements and questions about experiences people might have with their coach or therapist. Some
4
+ items refer directly to your coach or therapist with an underlined space - as you read the sentences, mentally insert
5
+ the name of your coach or therapist in place of ______ in the text. Think about your experience in treatment, and
6
+ decide which category best describes your own experience.</p>
7
+
8
+ <p><strong>Your answers to these questions are for research only and will NOT be seen by your coach or
9
+ therapist.</strong></p>
10
+
11
+ <p>Please take your time to consider each question carefully.</p>
12
+
13
+ <%= form_for [:participants, @assessment], as: :assessment, url: participants_assessments_path do |f| %>
14
+ <ol>
15
+ <% [{ text: "As a result of these sessions I am clearer as to how I might be able to change.", reversed: false },
16
+ { text: "What I am doing in therapy gives me new ways of looking at my problem.", reversed: true },
17
+ { text: "I believe___likes me.", reversed: false },
18
+ { text: "___and I collaborate on setting goals for my therapy.", reversed: false },
19
+ { text: "___and I respect each other.", reversed: true },
20
+ { text: "___and I are working towards mutually agreed upon goals.", reversed: true },
21
+ { text: "I feel that___appreciates me.", reversed: false },
22
+ { text: "_____ and I agree on what is important for me to work on.", reversed: true },
23
+ { text: "I feel _____ cares about me even when I do things that he/she does not approve of.", reversed: false },
24
+ { text: "I feel that the things I do in therapy will help me to accomplish the changes that I want.", reversed: true },
25
+ { text: "_____ and I have established a good understanding of the kind of changes that would be good for me.", reversed: true },
26
+ { text: "I believe the way we are working with my problem is correct.", reversed: false }].each_with_index do |question, i| %>
27
+ <li class="radio-question-group">
28
+ <strong><%= question[:text] %></strong><br>
29
+ <% q = "q#{ i + 1 }" %>
30
+ <% if question[:reversed] %>
31
+ <%= f.radio_button q, 5 %> Always<br>
32
+ <%= f.radio_button q, 4 %> Very Often<br>
33
+ <%= f.radio_button q, 3 %> Fairly Often<br>
34
+ <%= f.radio_button q, 2 %> Sometimes<br>
35
+ <%= f.radio_button q, 1 %> Seldom
36
+ <% else %>
37
+ <%= f.radio_button q, 1 %> Seldom<br>
38
+ <%= f.radio_button q, 2 %> Sometimes<br>
39
+ <%= f.radio_button q, 3 %> Fairly Often<br>
40
+ <%= f.radio_button q, 4 %> Very Often<br>
41
+ <%= f.radio_button q, 5 %> Always
42
+ <% end %>
43
+ </li>
44
+ <% end %>
45
+ </ol>
46
+
47
+ <input name="assessment[token]" type="hidden" value="<%= @token %>"/>
48
+
49
+ <%= f.submit "submit", class: "btn btn-default" %>
50
+ <% end %>
51
+ <script type="text/javascript">attach_assessment_event();</script>
@@ -0,0 +1 @@
1
+ <p class="lead">Thank you for completing the questions</p>
@@ -0,0 +1,36 @@
1
+ <% if (description = content_modules.first.try(:bit_core_tool).try(:description)) %>
2
+ <% content_for(:tool_description) { sanitize(description).gsub(/\n/, "<br><br>").html_safe } %>
3
+ <% end %>
4
+
5
+ <% content_for :left do %>
6
+ <div class="list-group left">
7
+ <% didactic_modules.each do |m| %>
8
+ <%= task_status_link(available_module: m, icon: fa_icon("book"), membership: membership) %>
9
+ <% end %>
10
+ </div>
11
+ <% end %>
12
+
13
+ <% content_for :right do %>
14
+ <div class="list-group right">
15
+ <% non_didactic_modules.each do |m| %>
16
+ <%= task_status_link(available_module: m, icon: fa_icon("pencil"), membership: membership) %>
17
+ <% end %>
18
+ </div>
19
+ <% end %>
20
+
21
+ <% content_modules.is_viz.each do |available_module| %>
22
+ <br>
23
+ <%= available_module
24
+ .content_providers
25
+ .order(:position)
26
+ .first
27
+ .render_current(
28
+ Struct.new(:view_context, :app_context, :position, :participant)
29
+ .new(self, nil, nil, current_participant),
30
+ navigator_location_path(
31
+ module_id: available_module.id
32
+ )
33
+ )
34
+ .html_safe
35
+ %>
36
+ <% end %>
@@ -0,0 +1,15 @@
1
+ <% slide = slide || @slide %>
2
+ <div class="tool-content">
3
+ <% if slide.is_title_visible %>
4
+ <div class="slide">
5
+ <h1><%= slide.title %></h1>
6
+ </div>
7
+ <% end %>
8
+
9
+ <% case slide.class.to_s %>
10
+ <% when 'BitCore::VideoSlide' || 'BitCore::AudioSlide' %>
11
+ <%= slide.options['url'].to_s %>
12
+ [ Not shown - multimedia file] <br><br>
13
+ <% end %>
14
+ <%= slide.render_body %>
15
+ </div>
@@ -0,0 +1 @@
1
+ <%= render partial: "think_feel_do_engine/lessons/lesson", locals: { lesson: @lesson } %>
@@ -0,0 +1 @@
1
+ <h2 id="inbox-header">Inbox (<%= received_messages.unread.count %>)</h2>
@@ -0,0 +1,8 @@
1
+ <%= render "think_feel_do_engine/slides/slide", slide: @slide %>
2
+
3
+ <% next_slide = @slideshow.slides.find_by_position(@slide.position + 1) %>
4
+ <% if next_slide %>
5
+ <%= link_to t(:next), think_feel_do_engine.participants_public_slideshow_slide_path(slideshow_id: @slideshow.id, id: next_slide.id), class: "btn btn-primary" %>
6
+ <% else %>
7
+ <%= link_to "Done", main_app.root_path, class: "btn btn-primary pull-right" %>
8
+ <% end %>
@@ -0,0 +1 @@
1
+ <li><%= link_to received_message.subject, coach_group_received_message_path(@group, received_message), class: (received_message.is_read ? 'text-muted' : '') %></li>
@@ -0,0 +1,24 @@
1
+ $("#thought-<%= @thought.id %>")
2
+ .replaceWith("<%= escape_javascript(render partial: 'think_feel_do_engine/thoughts/mutable_thought', object: @thought) %>");
3
+ $("#thought-<%= @thought.id %>")
4
+ .addClass("success");
5
+ setTimeout(
6
+ function() {
7
+ var tableVars, editedRow;
8
+
9
+ $("#thought-<%= @thought.id %>").removeClass("success");
10
+ tableVars = $("#thought-<%= @thought.id %>").parents("table");
11
+ editedRow = $("#thought-<%= @thought.id %>").parents("tr");
12
+
13
+ $("#thought-<%= @thought.id %>").parents("table").ngResponsiveTables({
14
+ smallPaddingCharNo: parseInt(tableVars.attr("data-sPCN")),
15
+ mediumPaddingCharNo: parseInt(tableVars.attr("data-mPCN")),
16
+ largePaddingCharNo: parseInt(tableVars.attr("data-lPCN")),
17
+ shiftedIndex: parseInt(tableVars.attr("data-sI")),
18
+ headerAdjust: (tableVars.attr("data-hA") == "true"),
19
+ headers: tableVars.attr("data-headers").split()
20
+ });
21
+
22
+ editedRow.removeClass("form-table");
23
+ },
24
+ 150);
@@ -0,0 +1,15 @@
1
+ <tr class="<%= 'danger' if phq_assessment.suicidal? %>">
2
+ <td>Released <%= phq_assessment.release_date.to_s(:user_date) %></td>
3
+ <td>Created <%= phq_assessment.created_at.to_s(:user_date) %></td>
4
+ <td><%= phq_assessment.score %></td>
5
+ <td><%= "*" unless phq_assessment.completed? %></td>
6
+ <td><%= phq_assessment.q1 %></td>
7
+ <td><%= phq_assessment.q2 %></td>
8
+ <td><%= phq_assessment.q3 %></td>
9
+ <td><%= phq_assessment.q4 %></td>
10
+ <td><%= phq_assessment.q5 %></td>
11
+ <td><%= phq_assessment.q6 %></td>
12
+ <td><%= phq_assessment.q7 %></td>
13
+ <td><%= phq_assessment.q8 %></td>
14
+ <td><%= phq_warning(phq_assessment.q9) %></td>
15
+ </tr>
@@ -0,0 +1,17 @@
1
+ <div id="PrivacyPolicyDiv">
2
+ <h1>Privacy Policy</h1>
3
+
4
+ <p>We are committed to respect your privacy and to keep your personal information confidential.</p>
5
+
6
+ <p>When choosing to take part in this study, you are giving us the permission to use your personal health information that includes health information in your medical records and information that can identify you. For example, personal health information may include your name, address, phone number or social security number. Disclosure of identity may be inherent to participating in an online social network. Every effort will be made to keep your identity private, unless you chose to reveal it to the network.<p>
7
+
8
+ <p>Your health information we may collect will include all information in medical records that you actively consent to our usage.</p>
9
+
10
+ <p>You are also giving permission to the following groups of people to give information about you (described above) to the researchers for this study: All current and previous health care providers, including but not limited to Northwestern Medical Faculty Foundation (NMFF), Northwestern Memorial Hospital (NMH).</p>
11
+
12
+ <p>Once we have the health information listed above, we may share some of this information with the following people. Please note that any research information shared with people outside of Northwestern University will not contain your name, address, telephone or social security number or any other direct personal identifier unless disclosure of the direct identifier is required by law[except that such information may be viewed by the Study sponsor and its partners or contractors at the Principal Investigator's office.</p>
13
+
14
+ <p>Authorized members of the Northwestern University workforce, who may need to see your information, such as administrative staff members from the Office of Research, and members of the Institutional Review Board (a committee which is responsible for the ethical oversight of the study), other University research centers and University contractors who are also working on the study, study monitors and auditors who make sure that the study is being done properly, government agencies and public health authorities, such as the Food and Drug Administration (FDA) and the Department of Health and Human Services (DHHS).</p>
15
+
16
+ <p>Those persons who get your health information may not be required by Federal privacy laws (such as the Privacy Rule) to protect it. Some of those persons may be able to share your information with others without your separate permission. The results of this study may also be used for research, publications, or presentations at scientific meetings. If your individual results are discussed, your identity will be protected.</p>
17
+ </div>
@@ -0,0 +1,17 @@
1
+ <% if alert %>
2
+ <div class="alert alert-danger alert-dismissible" role="alert">
3
+ <button type="button" class="close" data-dismiss="alert">
4
+ <span aria-hidden="true">&times;</span>
5
+ <span class="sr-only">Close</span>
6
+ </button>
7
+ <%= alert %>
8
+ </div>
9
+ <% elsif notice %>
10
+ <div class="alert alert-success alert-dismissible" role="alert">
11
+ <button type="button" class="close" data-dismiss="alert">
12
+ <span aria-hidden="true">&times;</span>
13
+ <span class="sr-only">Close</span>
14
+ </button>
15
+ <%= notice %>
16
+ </div>
17
+ <% end %>
@@ -0,0 +1,5 @@
1
+ <div id="auth_nav">
2
+ <% if current_participant %>
3
+ <%= link_to fa_icon("sign-out", text: "Sign Out"), destroy_participant_session_path, method: :delete %>
4
+ <% end %>
5
+ </div>
@@ -0,0 +1,771 @@
1
+ <title>SteppedCareReboot - Notification</title>
2
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
3
+ <meta name="viewport" content="width=device-width"/>
4
+ <style>
5
+ /**********************************************
6
+ * Ink v1.0.5 - Copyright 2013 ZURB Inc *
7
+ **********************************************/
8
+
9
+ /* Client-specific Styles & Reset */
10
+
11
+ #outlook a {
12
+ padding:0;
13
+ }
14
+
15
+ body{
16
+ width:100% !important;
17
+ min-width: 100%;
18
+ -webkit-text-size-adjust:100%;
19
+ -ms-text-size-adjust:100%;
20
+ margin:0;
21
+ padding:0;
22
+ }
23
+
24
+ .ExternalClass {
25
+ width:100%;
26
+ }
27
+
28
+ .ExternalClass,
29
+ .ExternalClass p,
30
+ .ExternalClass span,
31
+ .ExternalClass font,
32
+ .ExternalClass td,
33
+ .ExternalClass div {
34
+ line-height: 100%;
35
+ }
36
+
37
+ #backgroundTable {
38
+ margin:0;
39
+ padding:0;
40
+ width:100% !important;
41
+ line-height: 100% !important;
42
+ }
43
+
44
+ img {
45
+ outline:none;
46
+ text-decoration:none;
47
+ -ms-interpolation-mode: bicubic;
48
+ width: auto;
49
+ max-width: 100%;
50
+ float: left;
51
+ clear: both;
52
+ display: block;
53
+ }
54
+
55
+ center {
56
+ width: 100%;
57
+ min-width: 580px;
58
+ }
59
+
60
+ a img {
61
+ border: none;
62
+ }
63
+
64
+ p {
65
+ margin: 0 0 0 10px;
66
+ }
67
+
68
+ table {
69
+ border-spacing: 0;
70
+ border-collapse: collapse;
71
+ }
72
+
73
+ td {
74
+ word-break: break-word;
75
+ -webkit-hyphens: auto;
76
+ -moz-hyphens: auto;
77
+ hyphens: auto;
78
+ border-collapse: collapse !important;
79
+ }
80
+
81
+ table, tr, td {
82
+ padding: 0;
83
+ vertical-align: top;
84
+ text-align: left;
85
+ }
86
+
87
+ hr {
88
+ color: #d9d9d9;
89
+ background-color: #d9d9d9;
90
+ height: 1px;
91
+ border: none;
92
+ }
93
+
94
+ /* Responsive Grid */
95
+
96
+ table.body {
97
+ height: 100%;
98
+ width: 100%;
99
+ }
100
+
101
+ table.container {
102
+ width: 580px;
103
+ margin: 0 auto;
104
+ text-align: inherit;
105
+ }
106
+
107
+ table.row {
108
+ padding: 0px;
109
+ width: 100%;
110
+ position: relative;
111
+ }
112
+
113
+ table.container table.row {
114
+ display: block;
115
+ }
116
+
117
+ td.wrapper {
118
+ padding: 10px 20px 0px 0px;
119
+ position: relative;
120
+ }
121
+
122
+ table.columns,
123
+ table.column {
124
+ margin: 0 auto;
125
+ }
126
+
127
+ table.columns td,
128
+ table.column td {
129
+ padding: 0px 0px 10px;
130
+ }
131
+
132
+ table.columns td.sub-columns,
133
+ table.column td.sub-columns,
134
+ table.columns td.sub-column,
135
+ table.column td.sub-column {
136
+ padding-right: 10px;
137
+ }
138
+
139
+ td.sub-column, td.sub-columns {
140
+ min-width: 0px;
141
+ }
142
+
143
+ table.row td.last,
144
+ table.container td.last {
145
+ padding-right: 0px;
146
+ }
147
+
148
+ table.one { width: 30px; }
149
+ table.two { width: 80px; }
150
+ table.three { width: 130px; }
151
+ table.four { width: 180px; }
152
+ table.five { width: 230px; }
153
+ table.six { width: 280px; }
154
+ table.seven { width: 330px; }
155
+ table.eight { width: 380px; }
156
+ table.nine { width: 430px; }
157
+ table.ten { width: 480px; }
158
+ table.eleven { width: 530px; }
159
+ table.twelve { width: 580px; }
160
+
161
+ table.one center { min-width: 30px; }
162
+ table.two center { min-width: 80px; }
163
+ table.three center { min-width: 130px; }
164
+ table.four center { min-width: 180px; }
165
+ table.five center { min-width: 230px; }
166
+ table.six center { min-width: 280px; }
167
+ table.seven center { min-width: 330px; }
168
+ table.eight center { min-width: 380px; }
169
+ table.nine center { min-width: 430px; }
170
+ table.ten center { min-width: 480px; }
171
+ table.eleven center { min-width: 530px; }
172
+ table.twelve center { min-width: 580px; }
173
+
174
+ table.one .panel center { min-width: 10px; }
175
+ table.two .panel center { min-width: 60px; }
176
+ table.three .panel center { min-width: 110px; }
177
+ table.four .panel center { min-width: 160px; }
178
+ table.five .panel center { min-width: 210px; }
179
+ table.six .panel center { min-width: 260px; }
180
+ table.seven .panel center { min-width: 310px; }
181
+ table.eight .panel center { min-width: 360px; }
182
+ table.nine .panel center { min-width: 410px; }
183
+ table.ten .panel center { min-width: 460px; }
184
+ table.eleven .panel center { min-width: 510px; }
185
+ table.twelve .panel center { min-width: 560px; }
186
+
187
+ .body .columns td.one,
188
+ .body .column td.one { width: 8.333333%; }
189
+ .body .columns td.two,
190
+ .body .column td.two { width: 16.666666%; }
191
+ .body .columns td.three,
192
+ .body .column td.three { width: 25%; }
193
+ .body .columns td.four,
194
+ .body .column td.four { width: 33.333333%; }
195
+ .body .columns td.five,
196
+ .body .column td.five { width: 41.666666%; }
197
+ .body .columns td.six,
198
+ .body .column td.six { width: 50%; }
199
+ .body .columns td.seven,
200
+ .body .column td.seven { width: 58.333333%; }
201
+ .body .columns td.eight,
202
+ .body .column td.eight { width: 66.666666%; }
203
+ .body .columns td.nine,
204
+ .body .column td.nine { width: 75%; }
205
+ .body .columns td.ten,
206
+ .body .column td.ten { width: 83.333333%; }
207
+ .body .columns td.eleven,
208
+ .body .column td.eleven { width: 91.666666%; }
209
+ .body .columns td.twelve,
210
+ .body .column td.twelve { width: 100%; }
211
+
212
+ td.offset-by-one { padding-left: 50px; }
213
+ td.offset-by-two { padding-left: 100px; }
214
+ td.offset-by-three { padding-left: 150px; }
215
+ td.offset-by-four { padding-left: 200px; }
216
+ td.offset-by-five { padding-left: 250px; }
217
+ td.offset-by-six { padding-left: 300px; }
218
+ td.offset-by-seven { padding-left: 350px; }
219
+ td.offset-by-eight { padding-left: 400px; }
220
+ td.offset-by-nine { padding-left: 450px; }
221
+ td.offset-by-ten { padding-left: 500px; }
222
+ td.offset-by-eleven { padding-left: 550px; }
223
+
224
+ td.expander {
225
+ visibility: hidden;
226
+ width: 0px;
227
+ padding: 0 !important;
228
+ }
229
+
230
+ table.columns .text-pad,
231
+ table.column .text-pad {
232
+ padding-left: 10px;
233
+ padding-right: 10px;
234
+ }
235
+
236
+ table.columns .left-text-pad,
237
+ table.columns .text-pad-left,
238
+ table.column .left-text-pad,
239
+ table.column .text-pad-left {
240
+ padding-left: 10px;
241
+ }
242
+
243
+ table.columns .right-text-pad,
244
+ table.columns .text-pad-right,
245
+ table.column .right-text-pad,
246
+ table.column .text-pad-right {
247
+ padding-right: 10px;
248
+ }
249
+
250
+ /* Block Grid */
251
+
252
+ .block-grid {
253
+ width: 100%;
254
+ max-width: 580px;
255
+ }
256
+
257
+ .block-grid td {
258
+ display: inline-block;
259
+ padding:10px;
260
+ }
261
+
262
+ .two-up td {
263
+ width:270px;
264
+ }
265
+
266
+ .three-up td {
267
+ width:173px;
268
+ }
269
+
270
+ .four-up td {
271
+ width:125px;
272
+ }
273
+
274
+ .five-up td {
275
+ width:96px;
276
+ }
277
+
278
+ .six-up td {
279
+ width:76px;
280
+ }
281
+
282
+ .seven-up td {
283
+ width:62px;
284
+ }
285
+
286
+ .eight-up td {
287
+ width:52px;
288
+ }
289
+
290
+ /* Alignment & Visibility Classes */
291
+
292
+ table.center, td.center {
293
+ text-align: center;
294
+ }
295
+
296
+ h1.center,
297
+ h2.center,
298
+ h3.center,
299
+ h4.center,
300
+ h5.center,
301
+ h6.center {
302
+ text-align: center;
303
+ }
304
+
305
+ span.center {
306
+ display: block;
307
+ width: 100%;
308
+ text-align: center;
309
+ }
310
+
311
+ img.center {
312
+ margin: 0 auto;
313
+ float: none;
314
+ }
315
+
316
+ .show-for-small,
317
+ .hide-for-desktop {
318
+ display: none;
319
+ }
320
+
321
+ /* Typography */
322
+
323
+ body, table.body, h1, h2, h3, h4, h5, h6, p, td {
324
+ color: #222222;
325
+ font-family: "Helvetica", "Arial", sans-serif;
326
+ font-weight: normal;
327
+ padding:0;
328
+ margin: 0;
329
+ text-align: left;
330
+ line-height: 1.3;
331
+ }
332
+
333
+ h1, h2, h3, h4, h5, h6 {
334
+ word-break: normal;
335
+ }
336
+
337
+ h1 {font-size: 40px;}
338
+ h2 {font-size: 36px;}
339
+ h3 {font-size: 32px;}
340
+ h4 {font-size: 28px;}
341
+ h5 {font-size: 24px;}
342
+ h6 {font-size: 20px;}
343
+ body, table.body, p, td {font-size: 14px;line-height:19px;}
344
+
345
+ p.lead, p.lede, p.leed {
346
+ font-size: 18px;
347
+ line-height:21px;
348
+ }
349
+
350
+ p {
351
+ margin-bottom: 10px;
352
+ }
353
+
354
+ small {
355
+ font-size: 10px;
356
+ }
357
+
358
+ a {
359
+ color: #2ba6cb;
360
+ text-decoration: none;
361
+ }
362
+
363
+ a:hover {
364
+ color: #2795b6 !important;
365
+ }
366
+
367
+ a:active {
368
+ color: #2795b6 !important;
369
+ }
370
+
371
+ a:visited {
372
+ color: #2ba6cb !important;
373
+ }
374
+
375
+ h1 a,
376
+ h2 a,
377
+ h3 a,
378
+ h4 a,
379
+ h5 a,
380
+ h6 a {
381
+ color: #2ba6cb;
382
+ }
383
+
384
+ h1 a:active,
385
+ h2 a:active,
386
+ h3 a:active,
387
+ h4 a:active,
388
+ h5 a:active,
389
+ h6 a:active {
390
+ color: #2ba6cb !important;
391
+ }
392
+
393
+ h1 a:visited,
394
+ h2 a:visited,
395
+ h3 a:visited,
396
+ h4 a:visited,
397
+ h5 a:visited,
398
+ h6 a:visited {
399
+ color: #2ba6cb !important;
400
+ }
401
+
402
+ /* Panels */
403
+
404
+ .panel {
405
+ background: #f2f2f2;
406
+ border: 1px solid #d9d9d9;
407
+ padding: 10px !important;
408
+ }
409
+
410
+ .sub-grid table {
411
+ width: 100%;
412
+ }
413
+
414
+ .sub-grid td.sub-columns {
415
+ padding-bottom: 0;
416
+ }
417
+
418
+ /* Buttons */
419
+
420
+ table.button,
421
+ table.tiny-button,
422
+ table.small-button,
423
+ table.medium-button,
424
+ table.large-button {
425
+ width: 100%;
426
+ overflow: hidden;
427
+ }
428
+
429
+ table.button td,
430
+ table.tiny-button td,
431
+ table.small-button td,
432
+ table.medium-button td,
433
+ table.large-button td {
434
+ display: block;
435
+ width: auto !important;
436
+ text-align: center;
437
+ background: #2ba6cb;
438
+ border: 1px solid #2284a1;
439
+ color: #ffffff;
440
+ padding: 8px 0;
441
+ }
442
+
443
+ table.tiny-button td {
444
+ padding: 5px 0 4px;
445
+ }
446
+
447
+ table.small-button td {
448
+ padding: 8px 0 7px;
449
+ }
450
+
451
+ table.medium-button td {
452
+ padding: 12px 0 10px;
453
+ }
454
+
455
+ table.large-button td {
456
+ padding: 21px 0 18px;
457
+ }
458
+
459
+ table.button td a,
460
+ table.tiny-button td a,
461
+ table.small-button td a,
462
+ table.medium-button td a,
463
+ table.large-button td a {
464
+ font-weight: bold;
465
+ text-decoration: none;
466
+ font-family: Helvetica, Arial, sans-serif;
467
+ color: #ffffff;
468
+ font-size: 16px;
469
+ }
470
+
471
+ table.tiny-button td a {
472
+ font-size: 12px;
473
+ font-weight: normal;
474
+ }
475
+
476
+ table.small-button td a {
477
+ font-size: 16px;
478
+ }
479
+
480
+ table.medium-button td a {
481
+ font-size: 20px;
482
+ }
483
+
484
+ table.large-button td a {
485
+ font-size: 24px;
486
+ }
487
+
488
+ table.button:hover td,
489
+ table.button:visited td,
490
+ table.button:active td {
491
+ background: #2795b6 !important;
492
+ }
493
+
494
+ table.button:hover td a,
495
+ table.button:visited td a,
496
+ table.button:active td a {
497
+ color: #fff !important;
498
+ }
499
+
500
+ table.button:hover td,
501
+ table.tiny-button:hover td,
502
+ table.small-button:hover td,
503
+ table.medium-button:hover td,
504
+ table.large-button:hover td {
505
+ background: #2795b6 !important;
506
+ }
507
+
508
+ table.button:hover td a,
509
+ table.button:active td a,
510
+ table.button td a:visited,
511
+ table.tiny-button:hover td a,
512
+ table.tiny-button:active td a,
513
+ table.tiny-button td a:visited,
514
+ table.small-button:hover td a,
515
+ table.small-button:active td a,
516
+ table.small-button td a:visited,
517
+ table.medium-button:hover td a,
518
+ table.medium-button:active td a,
519
+ table.medium-button td a:visited,
520
+ table.large-button:hover td a,
521
+ table.large-button:active td a,
522
+ table.large-button td a:visited {
523
+ color: #ffffff !important;
524
+ }
525
+
526
+ table.secondary td {
527
+ background: #e9e9e9;
528
+ border-color: #d0d0d0;
529
+ color: #555;
530
+ }
531
+
532
+ table.secondary td a {
533
+ color: #555;
534
+ }
535
+
536
+ table.secondary:hover td {
537
+ background: #d0d0d0 !important;
538
+ color: #555;
539
+ }
540
+
541
+ table.secondary:hover td a,
542
+ table.secondary td a:visited,
543
+ table.secondary:active td a {
544
+ color: #555 !important;
545
+ }
546
+
547
+ table.success td {
548
+ background: #5da423;
549
+ border-color: #457a1a;
550
+ }
551
+
552
+ table.success:hover td {
553
+ background: #457a1a !important;
554
+ }
555
+
556
+ table.alert td {
557
+ background: #c60f13;
558
+ border-color: #970b0e;
559
+ }
560
+
561
+ table.alert:hover td {
562
+ background: #970b0e !important;
563
+ }
564
+
565
+ table.radius td {
566
+ -webkit-border-radius: 3px;
567
+ -moz-border-radius: 3px;
568
+ border-radius: 3px;
569
+ }
570
+
571
+ table.round td {
572
+ -webkit-border-radius: 500px;
573
+ -moz-border-radius: 500px;
574
+ border-radius: 500px;
575
+ }
576
+
577
+ /* Outlook First */
578
+
579
+ body.outlook p {
580
+ display: inline !important;
581
+ }
582
+
583
+ /* Media Queries */
584
+
585
+ @media only screen and (max-width: 600px) {
586
+
587
+ table[class="body"] img {
588
+ width: auto !important;
589
+ height: auto !important;
590
+ }
591
+
592
+ table[class="body"] center {
593
+ min-width: 0 !important;
594
+ }
595
+
596
+ table[class="body"] .container {
597
+ width: 95% !important;
598
+ }
599
+
600
+ table[class="body"] .row {
601
+ width: 100% !important;
602
+ display: block !important;
603
+ }
604
+
605
+ table[class="body"] .wrapper {
606
+ display: block !important;
607
+ padding-right: 0 !important;
608
+ }
609
+
610
+ table[class="body"] .columns,
611
+ table[class="body"] .column {
612
+ table-layout: fixed !important;
613
+ float: none !important;
614
+ width: 100% !important;
615
+ padding-right: 0px !important;
616
+ padding-left: 0px !important;
617
+ display: block !important;
618
+ }
619
+
620
+ table[class="body"] .wrapper.first .columns,
621
+ table[class="body"] .wrapper.first .column {
622
+ display: table !important;
623
+ }
624
+
625
+ table[class="body"] table.columns td,
626
+ table[class="body"] table.column td {
627
+ width: 100% !important;
628
+ }
629
+
630
+ table[class="body"] .columns td.one,
631
+ table[class="body"] .column td.one { width: 8.333333% !important; }
632
+ table[class="body"] .columns td.two,
633
+ table[class="body"] .column td.two { width: 16.666666% !important; }
634
+ table[class="body"] .columns td.three,
635
+ table[class="body"] .column td.three { width: 25% !important; }
636
+ table[class="body"] .columns td.four,
637
+ table[class="body"] .column td.four { width: 33.333333% !important; }
638
+ table[class="body"] .columns td.five,
639
+ table[class="body"] .column td.five { width: 41.666666% !important; }
640
+ table[class="body"] .columns td.six,
641
+ table[class="body"] .column td.six { width: 50% !important; }
642
+ table[class="body"] .columns td.seven,
643
+ table[class="body"] .column td.seven { width: 58.333333% !important; }
644
+ table[class="body"] .columns td.eight,
645
+ table[class="body"] .column td.eight { width: 66.666666% !important; }
646
+ table[class="body"] .columns td.nine,
647
+ table[class="body"] .column td.nine { width: 75% !important; }
648
+ table[class="body"] .columns td.ten,
649
+ table[class="body"] .column td.ten { width: 83.333333% !important; }
650
+ table[class="body"] .columns td.eleven,
651
+ table[class="body"] .column td.eleven { width: 91.666666% !important; }
652
+ table[class="body"] .columns td.twelve,
653
+ table[class="body"] .column td.twelve { width: 100% !important; }
654
+
655
+ table[class="body"] td.offset-by-one,
656
+ table[class="body"] td.offset-by-two,
657
+ table[class="body"] td.offset-by-three,
658
+ table[class="body"] td.offset-by-four,
659
+ table[class="body"] td.offset-by-five,
660
+ table[class="body"] td.offset-by-six,
661
+ table[class="body"] td.offset-by-seven,
662
+ table[class="body"] td.offset-by-eight,
663
+ table[class="body"] td.offset-by-nine,
664
+ table[class="body"] td.offset-by-ten,
665
+ table[class="body"] td.offset-by-eleven {
666
+ padding-left: 0 !important;
667
+ }
668
+
669
+ table[class="body"] table.columns td.expander {
670
+ width: 1px !important;
671
+ }
672
+
673
+ table[class="body"] .right-text-pad,
674
+ table[class="body"] .text-pad-right {
675
+ padding-left: 10px !important;
676
+ }
677
+
678
+ table[class="body"] .left-text-pad,
679
+ table[class="body"] .text-pad-left {
680
+ padding-right: 10px !important;
681
+ }
682
+
683
+ table[class="body"] .hide-for-small,
684
+ table[class="body"] .show-for-desktop {
685
+ display: none !important;
686
+ }
687
+
688
+ table[class="body"] .show-for-small,
689
+ table[class="body"] .hide-for-desktop {
690
+ display: inherit !important;
691
+ }
692
+ }
693
+
694
+ </style>
695
+ <style>
696
+
697
+ table.facebook td {
698
+ background: #3b5998;
699
+ border-color: #2d4473;
700
+ }
701
+
702
+ table.facebook:hover td {
703
+ background: #2d4473 !important;
704
+ }
705
+
706
+ table.twitter td {
707
+ background: #00acee;
708
+ border-color: #0087bb;
709
+ }
710
+
711
+ table.twitter:hover td {
712
+ background: #0087bb !important;
713
+ }
714
+
715
+ table.google-plus td {
716
+ background-color: #DB4A39;
717
+ border-color: #CC0000;
718
+ }
719
+
720
+ table.google-plus:hover td {
721
+ background: #CC0000 !important;
722
+ }
723
+
724
+ .template-label {
725
+ color: #ffffff;
726
+ font-weight: bold;
727
+ font-size: 11px;
728
+ }
729
+
730
+ .callout .panel {
731
+ background: #ECF8FF;
732
+ border-color: #b9e5ff;
733
+ }
734
+
735
+ .header {
736
+ background: #999999;
737
+ }
738
+
739
+ .footer .wrapper {
740
+ background: #ebebeb;
741
+ }
742
+
743
+ .footer h5 {
744
+ padding-bottom: 10px;
745
+ }
746
+
747
+ table.columns .text-pad {
748
+ padding-left: 10px;
749
+ padding-right: 10px;
750
+ }
751
+
752
+ table.columns .left-text-pad {
753
+ padding-left: 10px;
754
+ }
755
+
756
+ table.columns .right-text-pad {
757
+ padding-right: 10px;
758
+ }
759
+
760
+ @media only screen and (max-width: 600px) {
761
+
762
+ table[class="body"] .right-text-pad {
763
+ padding-left: 10px !important;
764
+ }
765
+
766
+ table[class="body"] .left-text-pad {
767
+ padding-right: 10px !important;
768
+ }
769
+ }
770
+
771
+ </style>