Sha256: 3b5e5eb38d78414fc08fda86e7eb6348e25d07b3d16987dcdded8048e855546f

Contents?: true

Size: 1.4 KB

Versions: 12

Compression:

Stored size: 1.4 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][field['name']] %></small>
        </div>
      <% end %>
    <% end %>
  </div>
  <br/>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
station-0.0.107 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.0.106 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.0.105 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.0.104 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.0.103 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.0.102 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.0.101 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.0.100 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.0.97 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.0.96 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.0.95 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb
station-0.0.93 lib/nexmo_developer/app/views/admin/feedbacks/_steps.html.erb