<commit_before><!--TODO: unecessary div added to account for flex bug on padding hack-->
<div>
    <!--Product Image-->
    <div class="c-product-card__img-wrap">
        <a ui-sref="productDetail({productid: productCard.product.ID})">
            <img class="img-responsive c-product-card__img" ng-src="{{productCard.product.xp.image.URL || 'http://placehold.it/300x300'}}"/>
        </a>
    </div>
</div>
<div class="c-product-card__body">
    <!--Product Info-->
    <div class="text-right c-product-card__icons hidden-xs" oc-prevent-click>
        <ordercloud-product-quick-view product="productCard.product" current-order="productCard.currentOrder"></ordercloud-product-quick-view>
        <ordercloud-favorite-product product="productCard.product" current-user="productCard.currentUser"></ordercloud-favorite-product>
    </div>
    <h5 class="c-product-card__name">{{productCard.product.Name || productCard.product.ID}}<br><small class="text-muted c-product-card__id" ng-if="productCard.product.Name">{{productCard.product.ID}}</small>
    </h5>
    <h4 class="text-primary c-product-card__price">{{productCard.product.PriceSchedule.PriceBreaks[0].Price | currency}}</b> <small class="text-muted">x {{productCard.product.PriceSchedule.PriceBreaks[0].Quantity}}</small></h4>
</div>
<div>
    <!--Choose Specs-->
    <div class="form-group" ng-if="productCard.product.SpecCount > 0">
        <button type="button" class="btn btn-block btn-primary" ui-sref="productDetail({productid: productCard.product.ID})">Choose Specs</button>
    </div>
    <!--Add to Cart-->
    <form ng-if="!(productCard.product.SpecCount > 0)" name="OCProductForm" class="c-product-card__add-to-cart-btn" prevent-click>
        <oc-quantity-input product="productCard.product"></oc-quantity-input>
        <div class="form-group">
            <button ng-click="productCard.addToCart()" class="btn btn-sm btn-block btn-primary">Add to Cart</button>
        </div>
    </form>
</div><commit_msg>F51-178 Product List: Disable btn when qty invalid<commit_after><!--TODO: unecessary div added to account for flex bug on padding hack-->
<div>
    <!--Product Image-->
    <div class="c-product-card__img-wrap">
        <a ui-sref="productDetail({productid: productCard.product.ID})">
            <img class="img-responsive c-product-card__img" ng-src="{{productCard.product.xp.image.URL || 'http://placehold.it/300x300'}}"/>
        </a>
    </div>
</div>
<div class="c-product-card__body">
    <!--Product Info-->
    <div class="text-right c-product-card__icons hidden-xs" oc-prevent-click>
        <ordercloud-product-quick-view product="productCard.product" current-order="productCard.currentOrder"></ordercloud-product-quick-view>
        <ordercloud-favorite-product product="productCard.product" current-user="productCard.currentUser"></ordercloud-favorite-product>
    </div>
    <h5 class="c-product-card__name">{{productCard.product.Name || productCard.product.ID}}<br><small class="text-muted c-product-card__id" ng-if="productCard.product.Name">{{productCard.product.ID}}</small>
    </h5>
    <h4 class="text-primary c-product-card__price">{{productCard.product.PriceSchedule.PriceBreaks[0].Price | currency}}</b> <small class="text-muted">x {{productCard.product.PriceSchedule.PriceBreaks[0].Quantity}}</small></h4>
</div>
<div>
    <!--Choose Specs-->
    <div class="form-group" ng-if="productCard.product.SpecCount > 0">
        <button type="button" class="btn btn-block btn-primary" ui-sref="productDetail({productid: productCard.product.ID})">Choose Specs</button>
    </div>
    <!--Add to Cart-->
    <form ng-if="!(productCard.product.SpecCount > 0)" name="OCProductForm" class="c-product-card__add-to-cart-btn" prevent-click>
        <oc-quantity-input product="productCard.product"></oc-quantity-input>
        <div class="form-group">
            <button ng-click="productCard.addToCart()" class="btn btn-sm btn-block btn-primary" ng-disabled="!productCard.product.Quantity">Add to Cart</button>
        </div>
    </form>
</div>
{'fraction_non_alphanumeric': 0.18283304390969982, 'fraction_numerical': 0.008186554204911933, 'mean_word_length': 4.110266159695818, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '677191', 'n_tokens_mistral': 1303, 'n_tokens_neox': 1266, 'n_words': 205}