Sha256: 978b9b59b692edaaaa035d837c3a4cd2b78a9b7ab8908a9ce70af19047699e1a

Contents?: true

Size: 921 Bytes

Versions: 6

Compression:

Stored size: 921 Bytes

Contents

%h1 Listing Data

%table.table
  %thead
    %tr
      %th ID
      %th Weight[kg]
      %th BodyFat[%]
      %th Measuring Time
      %th Created Time
      %th Memo
      %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= d.memo
        %td
          %button{class: ('btn btn-default navbar-btn')}
            %a(class="glyphicon glyphicon-edit"){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 navbar-btn')
                %a(class='glyphicon glyphicon-trash')
                  %a(type='submit' onclick='return confirm("Delete data?")') delete



Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
weight-recorder-0.1.10 lib/views/index.haml
weight-recorder-0.1.9 lib/views/index.haml
weight-recorder-0.1.8 lib/views/index.haml
weight-recorder-0.1.7 lib/views/index.haml
weight-recorder-0.1.6 lib/views/index.haml
weight-recorder-0.1.5 lib/views/index.haml