Sha256: 697cef44f83d338950f5ccf7d9c0e50dd430014204948ec42e146668ea8fdd96

Contents?: true

Size: 1.59 KB

Versions: 1

Compression:

Stored size: 1.59 KB

Contents

{{#unless cartItem.hasParent}}
  <dt>
    <ul>
      <li class="name" {{ action "toggleChildren" }}>{{ cartItem.name }}</li>
      <li class="others">
        <div class='price'>{{t currency.unit}}{{ cartItem.priceString }}</div>
        <div class="quantity">
          {{#if hasParent }}
            <span class="quantity-only">{{ cartItem.quantity }}</span>
          {{else}}
            <span class="decrease"><a href="#" {{ action "decrease" }}>-</a></span>
            <span class="quantity"> {{ cartItem.quantity }} </span>
            <span class="increase"><a href="#" {{ action "increase" }}>+</a></span>
          {{/if}}
        </div>
        <div class="subtotal r-money">{{t currency.unit}}{{ cartItem.subtotalString }}</div>
        <div class="delete">
          {{#unless cartItem.hasParent }}
            <a href="#" {{ action "deleteRecord" }}>{{t buttons.delete}}</a>
          {{/unless}}
        </div>
      </li>
      <div class="r-clear"></div>
    </ul>
  </dt>
  {{#if isChildrenHidden}}
    {{#if cartItem.hasChildren}}
      <dd>
        {{#each cartItem.children}}
          <ul>
            <li class="name">{{ name }}</li>
            <li class="others">
              <div class="price">¥{{ priceString }}</div>
              <div class="quantity">
                <span class="quantity-only">{{ quantity }}</span>
              </div>
              <div class="subtotal r-money">¥{{ subtotalString }}</div>
              <div class="delete"></div>
            </li>
            <div class="r-clear"></div>
          </ul>
        {{/each}}
      </dd>
    {{/if}}
  {{/if}}
{{/unless}}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rightnow_oms-0.1.6 app/assets/javascripts/rightnow_oms/app/templates/cart_items/show_in_detail.handlebars