Sha256: 5b7a35450e9e4ce8447ce6b798d6e7582ac30b91cb1bbf7c36e59b15c294cdbc

Contents?: true

Size: 1.1 KB

Versions: 68

Compression:

Stored size: 1.1 KB

Contents

<h2>Now list another harmful thought...</h2>

<%
  placeholders = [
    'an example thought: "She thinks that she\'s better than me"',
    'another example: "I\'m a terrible friend"',
    'yet another example: "They\'re never going to listen to me"'
  ]
%>
<% thoughts.each_with_index do |thought, i| %>
  <%=
    form_for(
      thought,
      url: create_path,
      remote: true,
      html: {
        class: "multi-page#{ i == 0 ? "" : " not-displayed" }",
        role: "form",
        onsubmit: "validatePublic(event,'thought_shared_item_true')"
      }
    ) do |f|
  %>
    <div class="form-group">
      <%= f.text_area :content, placeholder: placeholders[i], class: "form-control", rows: 3, required: true %>
    </div>

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

    <% 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 %>

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
think_feel_do_engine-3.14.8 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.14.7 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.14.6 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.14.5 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.14.4 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.14.3 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.14.2 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.14.1 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.14.0 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.13.1 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.13.0 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.12.9 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.12.8 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.12.7 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.12.6 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.12.5 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.12.4 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.12.3 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.12.2 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb
think_feel_do_engine-3.12.1 app/views/think_feel_do_engine/thoughts/new_bulk.html.erb