Sha256: 20f45b8ce9523152028008def77af070d41a7e6a83268e311fcaf8660f75625d
Contents?: true
Size: 1.25 KB
Versions: 13
Compression:
Stored size: 1.25 KB
Contents
- f.fields_for :metric_summaries do |ms| %div.summary %div.summary-row %div.form-field = ms.label "Summary Title" = ms.text_field :title %div.form-field = ms.label "Group By" = ms.select :group_by_key, eval(@metric.logic.match(/\['(.*?)'\]/)[0]), :prompt => 'select one...' and %div.form-field = ms.label "Action to Take" = ms.select :action, %w( count sum average median), {}, { :class => "action-to-take" } on %div.form-field %div.acton %div.form-field = ms.label "Acting On" = ms.select :action_on, eval(@metric.logic.match(/\['(.*?)'\]/)[0]), :include_blank => true %div.form-field = link_to "Add", "#", :style=> "position: relative; top: -5px;", :class => "btn btn-default add_fields", :'data-id' => @metric.id or - if ms.object.new_record? = link_to "Remove", "#", :style=> "position: relative; top: -5px;",:class => "btn btn-default remove_fields" - else = link_to "Remove", admin_metric_metric_summary_path(@metric, ms.object), :method => :delete, :remote => true, :style=> "position: relative; top: -5px;",:class => "btn btn-default remove_fields" = ms.hidden_field :id
Version data entries
13 entries across 13 versions & 1 rubygems