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.14.8 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.14.7 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.14.6 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.14.5 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.14.4 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.14.3 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.14.2 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.14.1 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.14.0 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.13.1 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.13.0 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.12.9 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.12.8 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.12.7 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.12.6 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.12.5 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.12.4 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.12.3 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.12.2 app/views/think_feel_do_engine/shared/_rating_selector.html.erb
think_feel_do_engine-3.12.1 app/views/think_feel_do_engine/shared/_rating_selector.html.erb