think_feel_do_engine 3.11.3 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/content_providers/experiences/new_provider.rb +7 -1
- data/app/views/think_feel_do_engine/experiences/index_provider.html.erb +20 -4
- data/app/views/think_feel_do_engine/experiences/new_provider.html.erb +34 -3
- data/db/migrate/20160209225643_add_emotions_thoughts_body_feelings_to_experience.rb +7 -0
- data/lib/think_feel_do_engine/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 168393840c2fef0447215d3de3a95e560ef72fd3
|
4
|
+
data.tar.gz: 576c8c0552e7569ae3fbe39db6d45efcb5bb3766
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 499a25b1234896ddac1018bed287c31580401a6f7ce3cbd4450d7904aa1c45b2f71cc1a8a4af6ae3e2168d8eef3b173d599300d7e248c6fa7f2096b0a5cdb766
|
7
|
+
data.tar.gz: 60d03bcaaf66c131b52c696be7df908565f128601724765cfc9b46a04d682de6b0c5a73896ac4f7c0bbe9ed518c7ba0cf3e1b047cbe9d589d33cd4e2165a858e
|
@@ -3,7 +3,13 @@ module ContentProviders
|
|
3
3
|
# Allows participants to record a positive experiences/events
|
4
4
|
class NewProvider < BitCore::ContentProvider
|
5
5
|
def data_attributes
|
6
|
-
[
|
6
|
+
[
|
7
|
+
:body_feelings,
|
8
|
+
:challenging_amplification,
|
9
|
+
:description,
|
10
|
+
:emotions,
|
11
|
+
:thoughts
|
12
|
+
]
|
7
13
|
end
|
8
14
|
|
9
15
|
def data_class_name
|
@@ -10,10 +10,26 @@
|
|
10
10
|
<h4 class="list-group-item-heading">
|
11
11
|
<%= experience.description %>
|
12
12
|
</h4>
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<% if experience.emotions.present? %>
|
14
|
+
<p class="list-group-item-text">
|
15
|
+
Your emotions during the experience: <%= experience.emotions %>
|
16
|
+
</p>
|
17
|
+
<% end %>
|
18
|
+
<% if experience.thoughts.present? %>
|
19
|
+
<p class="list-group-item-text">
|
20
|
+
Your thoughts during the experience: <%= experience.thoughts %>
|
21
|
+
</p>
|
22
|
+
<% end %>
|
23
|
+
<% if experience.body_feelings.present? %>
|
24
|
+
<p class="list-group-item-text">
|
25
|
+
How your body felt: <%= experience.body_feelings %>
|
26
|
+
</p>
|
27
|
+
<% end %>
|
28
|
+
<% if experience.challenging_amplification.present? %>
|
29
|
+
<p class="list-group-item-text">
|
30
|
+
How you amplifed/savored this experience: <%= experience.challenging_amplification %>
|
31
|
+
</p>
|
32
|
+
<% end %>
|
17
33
|
</li>
|
18
34
|
<% end %>
|
19
35
|
</ul>
|
@@ -5,9 +5,6 @@
|
|
5
5
|
<%= f.label :description, "Describe something good that happened in the past day.", class: "control-label" %>
|
6
6
|
<%= f.text_area :description, class: "form-control" %>
|
7
7
|
|
8
|
-
<%= f.label :challenging_amplification, "Did you do anything to amplify or savor it? You can also think of an opportunity to do something right now!", class: "control-label" %>
|
9
|
-
<%= f.text_area :challenging_amplification, class: "form-control" %>
|
10
|
-
|
11
8
|
<a data-toggle="collapse" href="#collapse-experience-examples">see some examples</a>
|
12
9
|
|
13
10
|
<div class="collapse" id="collapse-experience-examples">
|
@@ -26,5 +23,39 @@
|
|
26
23
|
</div>
|
27
24
|
</div>
|
28
25
|
|
26
|
+
<div class="form-group">
|
27
|
+
<%= f.label :emotions, "What feelings did you have while it was happening?", class: "control-label" %>
|
28
|
+
<%= f.text_field :emotions, class: "form-control" %>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div class="form-group">
|
32
|
+
<%= f.label :thoughts, "What thoughts did you have while it was happening?", class: "control-label" %>
|
33
|
+
<%= f.text_field :thoughts, class: "form-control" %>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div class="form-group">
|
37
|
+
<%= f.label :body_feelings, "How did your body feel?", class: "control-label" %>
|
38
|
+
<%= f.text_field :body_feelings, class: "form-control" %>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div class="form-group">
|
42
|
+
<%= f.label :challenging_amplification, "Did you do anything to amplify or savor it? You can also think of an opportunity to do something right now!", class: "control-label" %>
|
43
|
+
<%= f.text_area :challenging_amplification, class: "form-control" %>
|
44
|
+
|
45
|
+
<a data-toggle="collapse" href="#collapse-amplify-examples">see some examples for amplifying positive events</a>
|
46
|
+
|
47
|
+
<div class="collapse" id="collapse-amplify-examples">
|
48
|
+
<div class="well">
|
49
|
+
<ul>
|
50
|
+
<li>Telling a friend or loved one</li>
|
51
|
+
<li>Writing about it in a journal or online</li>
|
52
|
+
<li>Celebrating (cheering, pumping your fist, smiling)</li>
|
53
|
+
<li>Taking a minute to savor it</li>
|
54
|
+
<li>Stopping to appreciate it and make sure you don't get distracted</li>
|
55
|
+
</ul>
|
56
|
+
</div>
|
57
|
+
</div>
|
58
|
+
</div>
|
59
|
+
|
29
60
|
<%= f.submit t(:next), class: "btn btn-primary" %>
|
30
61
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: think_feel_do_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Carty-Fickes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -917,6 +917,7 @@ files:
|
|
917
917
|
- db/migrate/20151104152804_update_think_tool_type_to_tools_think.rb
|
918
918
|
- db/migrate/20160203222002_create_gratitude_recordings.rb
|
919
919
|
- db/migrate/20160205212840_create_experiences.rb
|
920
|
+
- db/migrate/20160209225643_add_emotions_thoughts_body_feelings_to_experience.rb
|
920
921
|
- lib/tasks/lesson_notifications.rake
|
921
922
|
- lib/tasks/seed.rake
|
922
923
|
- lib/tasks/think_feel_do_engine_tasks.rake
|