Sha256: 6dc4bfdc63ad89b1176b8218ea93819fc7a2747671c999c9ba6ee1676a02477d

Contents?: true

Size: 906 Bytes

Versions: 10

Compression:

Stored size: 906 Bytes

Contents

.row{ "ng-controller" => "ShopController" }
  .col-md-4.col-md-offset-4.col-xs-12
    .row.no-padding
      .col-xs-7
        %input.form-control{ type: "text", placeholder: "name", "ng-model" => "item.name" }
      .col-xs-3
        %input.form-control{ type: "number", placeholder: "Qty", min: 0, "ng-model" => "item.qty" }
      .col-xs-2
        %a.pull-right.btn.btn-primary{ "ng-click" => "create()"}
          %i.fa.fa-plus

  .col-xs-12
    %hr

  .col-md-4.col-md-offset-4.col-xs-12{ "ng-repeat" => "si in shopping_items" }
    .row.no-padding
      .col-xs-7
        %input.form-control{ type: "text", "ng-model" => "si.name", "ng-blur" => "update(si)"}
      .col-xs-3
        %input.form-control{ type: "number", placeholder: "Qty", min: 0, "ng-model" => "si.qty", "ng-blur" => "update(si)" }
      .col-xs-2
        %a.btn.btn-primary{ "ng-click" => "delete(si.id)" }
          %i.fa.fa-trash

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ki-0.4.12 spec/examples/couch-lock/views/shop.haml
ki-0.4.11 spec/examples/couch-lock/views/shop.haml
ki-0.4.10 spec/examples/couch-lock/views/shop.haml
ki-0.4.9 spec/examples/couch-lock/views/shop.haml
ki-0.4.8 spec/examples/couch-lock/views/shop.haml
ki-0.4.7 spec/examples/couch-lock/views/shop.haml
ki-0.4.6 spec/examples/couch-lock/views/shop.haml
ki-0.4.5 spec/examples/couch-lock/views/shop.haml
ki-0.4.4 spec/examples/couch-lock/views/shop.haml
ki-0.4.3 spec/examples/couch-lock/views/shop.haml