% if thoughts.count >= 1 %> <% thoughts.each_with_index do |thought, index| %>
...and that this relates to this harmful thought pattern: <%= thought.pattern_title %>
...and did not choose a related thought pattern.
<% end %> <%= content_tag(:button, t(:next), type: "button", class: "next-page btn btn-primary pull-right") %>For the harmful thought <%= thought.pattern_title %> the following might be useful:
<%= thought.pattern_recommendations.try(:html_safe) %>
<% end %> <%= f.label :challenging_thought, "Now you try it. Write a challenging thought below:", for: "challenge#{index}" %> <%= f.text_area :challenging_thought, id: "challenge#{index}", class: "form-control", required: true, rows: 3 %> <%= f.hidden_field :id %> <%= content_tag(:button, t(:next), type: "submit", class: "challenging btn btn-primary pull-right") %> <% end %>Because what you THINK, FEEL, Do are related, a challenging thought can change how you act.
<%= image_tag("changing_actions.gif", width: "100%") %>After you come up with a challenging thought, you can also come up with an "As If" action which means what you would do based on the challenging thought you came up with.
<%= content_tag(:button, t(:next), type: "button", class: "next-page btn btn-primary pull-right") %>Please return to section 1 of "Think" to input more thoughts for reflection
<% end %>