Sha256: 81b29e19c9c93ede4a9f8c964e92c1aac64ba745dceab6da5eaca253fe3381eb

Contents?: true

Size: 640 Bytes

Versions: 7

Compression:

Stored size: 640 Bytes

Contents

<h1>
  <%= @metric.title %>
</h1>

<div class="metric" data-url="<%= metric_path(params) %>"></div>

<%= form_tag(metric_path(params[:id]), method: 'get') do %>
  <h2>Settings</h2>
  <div class='well'>
    <h3>Option</h3>

    <%= select_tag :option, options_for_select(@metric.options.keys, option) %>

    <h3>Period</h3>
    <% Prosperity::Periods::ALL.each do |key, period_object| %>
      <%= radio_button_tag "period", key, key == period %>
      <%= label_tag "period_#{key}", key.titleize %>
    <% end %>

    <%= render 'prosperity/shared/date_range' %>
    <%= submit_tag "Update", class: 'btn btn-primary' %>
  </div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
prosperity-0.0.8 app/views/prosperity/metrics/show.html.erb
prosperity-0.0.7 app/views/prosperity/metrics/show.html.erb
prosperity-0.0.6 app/views/prosperity/metrics/show.html.erb
prosperity-0.0.5 app/views/prosperity/metrics/show.html.erb
prosperity-0.0.4 app/views/prosperity/metrics/show.html.erb
prosperity-0.0.3 app/views/prosperity/metrics/show.html.erb
prosperity-0.0.2 app/views/prosperity/metrics/show.html.erb