Sha256: 7bd4309ee3f356092d1f43e15df5b375ae273f6fecd434e424f3032ac500816d

Contents?: true

Size: 1.65 KB

Versions: 3

Compression:

Stored size: 1.65 KB

Contents

%script#sensor-list{type: 'text/template'}
  %table#sensors.table.table-striped
    %tr
      %th
      %th Title
      %th Type
      %th Interval
    <% _.each(sensors, function(sensor) { %>
    %tr
      %td
        :plain
          <input class="sensor-box" type="checkbox" id="<%- sensor.id %>" />
      %td 
        <%- sensor.annotation %>
        %sub <%- sensor.id %>
      %td <%- sensor.type %>
      %td <%- sensor.interval.humanize() %>
    <% }) %>

%script#dynamic-widget-error{type: 'text/template'}
  .alert.alert-error
    .button.close{'data-dismiss' => 'alert'} ×
    <%- error %>

%script#dynamic-widget-plotarea{type: 'text/template'}
  .well
    #chart
      %h3 Choose sensors to plot 
    #dynamic-chart-controls
      .form-inline
        %button#refresh-chart.btn.btn-mini
          %i.icon-refresh
          Refresh chart
        Timespan:
        %select#extend-timespan-val.btn-mini.span1
          = partial "widgets/extend_options"
        %button#extend-timespan.btn.btn-mini
          %i.icon-arrow-left
          Extend
        %button#reset-timespan.btn.btn-mini
          %i.icon-arrow-right
          Reset


%script#dynamic-widget{type: 'text/template'}
  .span10
    #dynamic-plotarea
    #errors
  .span10
    #sensor-controls.form-horizontal
      %p.form-inline
        Chart type 
        %select#chart-type{value: 'area'}
          %option{value: 'area'} Area
          %option{value: 'line'} Line
          %option{value: 'table'} Table
        %button#draw.btn.btn-mini.btn-primary
          %i.icon-play
          Draw
        %button#refresh.btn.btn-mini
          %i.icon-refresh
          Refresh sensor list
    #sensor-list-area
        


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pulse-meter-0.2.11 lib/pulse-meter/visualize/views/sensors.haml
pulse-meter-0.2.10 lib/pulse-meter/visualize/views/sensors.haml
pulse-meter-0.2.9 lib/pulse-meter/visualize/views/sensors.haml