{var $product = $_modx->resource}

<h1>{$product.pagetitle}</h1>
<div id="msProduct" class="row">
    <div class="col-md-6">
        {'msGallery' | snippet}
    </div>
    <div class="col-md-6">
        <form class="form-horizontal ms2_form" method="post">
            <input type="hidden" name="id" value="{$product.id}"/>
            <div class="form-group">
                <label class="col-md-2 control-label">{'ms2_product_article' | lexicon}:</label>
                <div class="col-md-10 form-control-static">{$product.article}</div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">{'ms2_product_price' | lexicon}:</label>
                <div class="col-md-10 form-control-static">
                    {$product.price} {'ms2_frontend_currency' | lexicon}
                    {if $product.old_price > 0}
                        <span class="old_price">{$product.old_price} {'ms2_frontend_currency' | lexicon}</span>
                    {/if}
                </div>
            </div>
            <div class="form-group form-inline">
                <label class="col-md-2 control-label" for="product_price">{'ms2_cart_count' | lexicon}:</label>
                <div class="col-md-10">
                    <input type="number" name="count" id="product_price" class="input-sm form-control" value="1"/> {'ms2_frontend_count_unit' | lexicon}
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">{'ms2_product_weight' | lexicon}:</label>
                <div class="col-md-10 form-control-static">
                    {$product.weight} {'ms2_frontend_weight_unit' | lexicon}
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">{'ms2_product_made_in' | lexicon}:</label>
                <div class="col-md-10 form-control-static">
                    {$product.made_in}
                </div>
            </div>

            {'msOptions' | snippet : ['options'=>'color,size']}
            {'msProductOptions' | snippet}

            <div class="form-group">
                <div class="col-md-offset-2 col-md-10">
                    <button type="submit" class="btn btn-default" name="ms2_action" value="cart/add">
                        <i class="glyphicon glyphicon-barcode"></i> {'ms2_frontend_add_to_cart' | lexicon}
                    </button>
                    <a type="button" href="#" data-modal="oneClickForm" data-price="{$product.price} {'ms2_frontend_currency' | lexicon}" class="btn btn-success mvtFormsOneClickForm">Заказать в 1 клик</a>
                </div>
            </div>
        </form>
        {'mvtForms' | snippet : ['form'=>'byOneClickProduct']}

    </div>
</div>