Sha256: 6acac045e70cd0e2fcb8fc0e6e8a1728070f24acef748c462feb7a19a7280bc1
Contents?: true
Size: 814 Bytes
Versions: 2
Compression:
Stored size: 814 Bytes
Contents
- f.fields_for :metric_summaries do |ms| %div.summary = ms.label "Metric summary title" = ms.text_field :title = ms.label "Group by" = ms.select :group_by_key, eval(@metric.logic.match(/\['(.*?)'\]/)[0]) and = ms.label "Action" = ms.select :action, %w(count sum average median), {}, :class => "action-to-take" on %div.acton = ms.label "Act on" = ms.select :action_on, eval(@metric.logic.match(/\['(.*?)'\]/)[0]) = link_to "Add summary", "#", :class => "add_fields", :'data-id' => @metric.id - if ms.object.new_record? = link_to "Remove", "#", :class => "remove_fields" - else = link_to "Remove", admin_metric_metric_summary_path(@metric, ms.object), :method => :delete, :remote => true, :class => "remove_fields" = ms.hidden_field :id
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
metric_admin-0.0.14 | app/views/admin/metrics/_metric_summaries.html.haml |
metric_admin-0.0.13 | app/views/admin/metrics/_metric_summaries.html.haml |