Sha256: 340b7e2c896edc9b91775e5c7e040f284576fac3983ffe0f8e4ff2e47a88cddf

Contents?: true

Size: 659 Bytes

Versions: 2

Compression:

Stored size: 659 Bytes

Contents

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

<%= render_graph @metric, start_time: start_time, option: option, period: period %>

<%= 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

2 entries across 2 versions & 1 rubygems

Version Path
prosperity-0.0.11 app/views/prosperity/metrics/show.html.erb
prosperity-0.0.10 app/views/prosperity/metrics/show.html.erb