Sha256: d6ca188c37aa2011297f86fce0fd7d7d63c3a1956498aaf9d36a25c75ee0f13c

Contents?: true

Size: 1.41 KB

Versions: 82

Compression:

Stored size: 1.41 KB

Contents

<h4><%= feedback.config.title %></h4>
<div>
  <small>Paths:</small><br/>
  <% feedback.config.paths.each_with_index do |path, path_index| %>
    <% if feedback.path == path_index %>
      <b><%= feedback.config.paths[path_index]['question'] %></b>
    <% else %>
      <span><%= feedback.config.paths[path_index]['question'] %><span>
    <% end %>
    <br/>
 <% end %>
 <br/>
</div>
<% feedback.config.paths[feedback.path]['steps'].each_with_index do |step, step_index| %>
  <div>
    <small>Step <%= step_index %></small><br/>
    <% if step['type'] == 'textarea' %>
      <b><%= step['label'] || step['title'] %></b>
      <br/>
      <span><%= feedback.steps[step_index] %></span>
    <% elsif step['type'] == 'radiogroup' %>
      <% step['questions'].each_with_index do |question, question_index| %>
        <div>
          <% if question_index == feedback.steps[step_index] %>
            <b><%= question %></b>
          <% else %>
            <%= question %>
          <% end %>
        </div>
      <% end %>
    <% elsif step['type'] == 'plain' %>
      <b><%= step['title'] %></b>
    <% elsif step['type'] == 'fieldset' %>
      <b><%= step['title'] %></b>
      <% step['fields'].each_with_index do |field, field_index| %>
        <div>
          <b><%= field['label'] %>:</b>
          <small><%= feedback.steps[step_index].try(:[], field['name']) %></small>
        </div>
      <% end %>
    <% end %>
  </div>
  <br/>
<% end %>

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
station-0.5.16 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.5.15 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.5.14 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.5.13 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.5.12 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.5.11 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.5.10 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.5.9 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.5.8 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.5.7 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.5.6 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.5.5 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.5.4 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.5.3 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.5.2 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.5.1 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.5.0 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.4.9 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.4.8 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.4.7 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb