Sha256: 4181698225dbf487dbfa6098e818211d71b698dc4a54ffbd46d4c5e8f528dc81

Contents?: true

Size: 1.42 KB

Versions: 68

Compression:

Stored size: 1.42 KB

Contents

<p class="lead">
  Let's start by figuring out which thought patterns the harmful thoughts you identified might match.
</p>

<% if thoughts.count > 0 %>
  <% thoughts.each_with_index do |thought, i| %>
    <%=
      form_for(
        thought,
        url: update_path,
        remote: true,
        html: {
          class: "multi-page#{ i == 0 ? "" : " not-displayed" }",
          role: "form",
          onsubmit: "validatePublic(event,'thought_shared_item_true')"
        }
      ) do |f|
    %>
      <%= f.hidden_field :id %>

      <div class="panel panel-default">
        <div class="panel-heading">
          <h3 class="panel-title adjusted-panel-title">One thought you had:</h3>
        </div>
        <div class="panel-body adjusted-list-group-item">
          <%= thought.content %>
        </div>
      </div>

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

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

      <%= content_tag(:button, t(:next), type: "submit", class: "btn btn-primary pull-right") %>
    <% end %>
  <% end %>
<% else %>
  <p>You haven't listed any negative thoughts - if this inaccurate, please revisit THINK #1</p>

  <%= content_tag(:a, t(:next), href: navigator_next_content_path, type: "submit", class: "btn btn-primary pull-right") %>
<% end %>

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
think_feel_do_engine-3.12.0 app/views/think_feel_do_engine/thoughts/edit_bulk.html.erb
think_feel_do_engine-3.11.3 app/views/think_feel_do_engine/thoughts/edit_bulk.html.erb
think_feel_do_engine-3.11.0 app/views/think_feel_do_engine/thoughts/edit_bulk.html.erb
think_feel_do_engine-3.10.10 app/views/think_feel_do_engine/thoughts/edit_bulk.html.erb
think_feel_do_engine-3.10.9 app/views/think_feel_do_engine/thoughts/edit_bulk.html.erb
think_feel_do_engine-3.10.8 app/views/think_feel_do_engine/thoughts/edit_bulk.html.erb
think_feel_do_engine-3.10.7 app/views/think_feel_do_engine/thoughts/edit_bulk.html.erb
think_feel_do_engine-3.10.6 app/views/think_feel_do_engine/thoughts/edit_bulk.html.erb