Sha256: 1dfbbcd22f5d4f57a21100f365028088fb6e8ed33bcf678ba3d13df3adbf00a0

Contents?: true

Size: 787 Bytes

Versions: 2

Compression:

Stored size: 787 Bytes

Contents

%h1 Listing Data

%table.table
  %thead
    %tr
      %th ID
      %th Weight[kg]
      %th BodyFat[%]
      %th Measuring Time
      %th Created Time
      %th(colspan=2) Action
  %tbody
    - @data.each do |d|
      %tr
        %td= d.id
        %td= d.weight
        %td= d.bodyfat
        %td= d.date
        %td= d.created_at.strftime('%Y/%m/%d %H:%M')
        %td
          %a{href: uri("/data/#{d.id}/edit")} Edit
        %td
          %form.form-inline(method='post'){action: uri("/data/#{d.id}")}
            %input(name='_method' type='hidden' value='delete')
            .form-group
              %button(class='btn btn-default')
                %a(class='glyphicon glyphicon-minus-sign')
                  %a(type='submit' onclick='return confirm("Delete data?")') Delete



Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
weight-recorder-0.1.3 lib/views/index.haml
weight-recorder-0.1.2 lib/views/index.haml