Sha256: 9b3564557bfa8d0503f736f8eafc359e8988f612a42c97b20f53fcd85f04e9a5

Contents?: true

Size: 1.26 KB

Versions: 68

Compression:

Stored size: 1.26 KB

Contents

<h2>Add a New Harmful Thought</h2>

<%= form_for thought, url: create_path, method: "post", html: { role: "form", onsubmit: "validatePublic(event,'thought_shared_item_true')" } do |f| %>
  <%= render 'think_feel_do_engine/thoughts/harmful_thought', f: f %>

  <%= render 'think_feel_do_engine/thoughts/thought_effects', f: f, thought: thought %>

  <%= render 'think_feel_do_engine/thoughts/thought_patterns', f: f %>

  <div class="form-group">
    <%= f.label :challenging_thought, "Challenging Thought" %>
    <%= f.text_field :challenging_thought, placeholder: "example: The present doesn't always predict the future", class: "form-control suggested" %>
  </div>

  <div class="form-group">
    <%= f.label :act_as_if, "As If Action" %>
    <%= f.text_field :act_as_if, placeholder: "example: Try my hardest anyway and see if I can improve", class: "form-control suggested" %>
  </div>

  <% if current_participant.active_group.arm.social? %>
    <span class="new-shareable-form-after-form-groups" data-item-type="thought" data-action-type=""></span>
  <% end %>

  <div class="btn-group pull-right">
    <%= link_to 'Cancel', "/navigator/contexts/THINK", class: 'btn btn-default' %>
    <%= content_tag(:button, t(:next), type: "submit", class: "btn btn-primary") %>
  </div>
<% end %>

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.22.8 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.22.7 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.22.6 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.22.5 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.22.4 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.22.2 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.22.1 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.22.0 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.21.2 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.21.1 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.21.0 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.20.1 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.19.9 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.19.8 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.19.7 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.19.6 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.19.5 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.19.4 app/views/think_feel_do_engine/thoughts/new_complete.html.erb
think_feel_do_engine-3.19.3 app/views/think_feel_do_engine/thoughts/new_complete.html.erb