Sha256: b019caf41987ea9304688f8c80e44d17be926b2d0fda25479b6c2a235e05b211
Contents?: true
Size: 1.63 KB
Versions: 1
Compression:
Stored size: 1.63 KB
Contents
<h1>Edit Graph</h1> <div class="row"> <div class="span6"> <%= form_for @graph, data: {metric_options: @options} do |f| %> <div class="form-group"> <%= f.label :title %> <%= f.text_field :title %> </div> <div class="form-group"> <%= f.label :graph_type %> <%= f.select :graph_type, Prosperity::Graph::VALID_GRAPH_TYPES %> </div> <h4>Lines</h4> <%= f.fields_for :graph_lines do |l| %> <% if l.object.new_record? %> <h4>Add New Line</h4> <% end %> <div class="graph-line"> <div class="form-group metric-title-select"> <%= l.label :metric %> <%= l.select :metric, @metrics.map{|m| [m.title, m.id]}, include_blank: true %> </div> <div class="form-group metric-option-select"> <%= l.hidden_field :option %> <%= l.label :option %> <%= l.select :option, [] %> </div> <div class="form-group"> <%= l.label :extractor %> <%= l.select :extractor, options_for_extractors %> </div> </div> <% end %> <%= f.submit "Save & View", class: "btn btn-success" %> <% end %> </div> <div class="span8"> <div class="graph well"/> <div class="metric dashboard" data-url="<%= graph_path(@graph) %>"></div> </div> <div> <p> You can embed this graph by embedding the following snippet in your web page. </p> <input disabled value='<iframe height="400px" src="<%= graph_url(@graph) %>" style="border: none;" width="512px"></iframe>' /> </div> </div> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prosperity-0.0.7 | app/views/prosperity/graphs/edit.html.erb |