Sha256: 6ec9eb06bc50e8e39fe0ec18adaac19e534b7269f7a16eaa67f5e6bfc7347617

Contents?: true

Size: 562 Bytes

Versions: 68

Compression:

Stored size: 562 Bytes

Contents

<%= form.label name, label, for: "#{ name }_#{ object.id }" %><br>

<div class="form-group">
  <select id="<%= prefix %>_<%= name %>" name="<%= prefix %>[<%= name %>]" class="form-control">
    <% (0..10).each do |value| %>
      <option value="<%= value %>">
        <% if value == 0 || value == 5 || value == 10 %>
          <% suffix = (value == 0)? min_text : ((value == 5)? mid_text : max_text) %>
          <%= value.to_s + " (" + suffix + ")" %>
        <% else %>
          <%= value %>
        <% end %>
      </option>
    <% end %>
  </select>
</div>

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/shared/_rating_selector.html.erb
think_feel_do_engine-3.11.3 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.11.0 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.10.10 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.10.9 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.10.8 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.10.7 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.10.6 app/views/think_feel_do_engine/shared/_rating_selector.html.erb