<div class="modal fade"
     id="modal-create-option">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">

                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title"><b><?=_lang("Create new option")?></b></h4>
            </div>
            <div class="modal-body">

                <div class="row margin">

                    <div class="form-group">
                        <label><?=_lang("Option")?></label>
                        <input type="text" class="form-control" id="option_name" placeholder="<?=_lang("Enter...")?>">
                    </div>


                    <?php

                        $currency = $this->mCurrencyModel->getCurrency(DEFAULT_CURRENCY);

                    ?>

                    <?php if (ConfigManager::getValue('ORDER_COMMISSION_ENABLED') == TRUE): ?>

                        <div class="form-group">
                            <label><?= _lang("Original Price") ?> <?= DEFAULT_CURRENCY ?>
                                , <?= $currency['symbol'] ?></label>
                            <input type="number" class="form-control" id="variantOpt_price"
                                   placeholder="<?= Translate::sprint("Enter price...") ?>">
                        </div>

                        <div class="form-group">
                            <label><?= _lang("Price with commission") ?></label> /
                            <label><?= _lang("Price") ?>
                                + <?= ConfigManager::getValue('ORDER_COMMISSION_VALUE') ?>
                                %</label>
                            <input type="number" class="form-control"
                                   id="variantOpt_priceCommission"
                                   placeholder="<?= Translate::sprint("Price with commission...") ?>"
                                   disabled>
                        </div>

                        <input type="hidden" class="form-control" id="variantOpt_priceInput">
                        <input type="hidden" class="form-control" id="variantOpt_commission"
                               value="<?= ConfigManager::getValue('ORDER_COMMISSION_VALUE') ?>">

                    <?php else: ?>

                        <div class="form-group">
                            <label><?= _lang("Price") ?> <?= DEFAULT_CURRENCY ?>
                                , <?= $currency['symbol'] ?></label>
                            <input type="number" class="form-control" id="variantOpt_price"
                                   placeholder="<?= Translate::sprint("Enter price") ?>">
                        </div>

                    <?php endif; ?>



                </div>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default pull-left"
                        data-dismiss="modal"><?= Translate::sprint("Cancel", "Cancel") ?></button>
                <button type="button" id="create"
                        class="btn btn-flat btn-primary"><?= Translate::sprint("Add") ?></button>
            </div>
        </div>

        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>




<div class="modal fade"
     id="modal-update-option">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">

                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title"><b><?=_lang("Update option")?></b></h4>
            </div>
            <div class="modal-body">

                <div class="row margin">

                    <div class="form-group">
                        <label><?=_lang("Option")?></label>
                        <input type="text" class="form-control" id="option_name" placeholder="<?=_lang("Enter...")?>">
                    </div>


                    <?php

                    $currency = $this->mCurrencyModel->getCurrency(DEFAULT_CURRENCY);

                    ?>

                    <?php if (ConfigManager::getValue('ORDER_COMMISSION_ENABLED') == TRUE): ?>

                        <div class="form-group">
                            <label><?= _lang("Original Price") ?> <?= DEFAULT_CURRENCY ?>
                                , <?= $currency['symbol'] ?></label>
                            <input type="number" class="form-control" id="variantOpt_price"
                                   placeholder="<?= Translate::sprint("Enter price...") ?>">
                        </div>

                        <div class="form-group">
                            <label><?= _lang("Price with commission") ?></label> /
                            <label><?= _lang("Price") ?>
                                + <?= ConfigManager::getValue('ORDER_COMMISSION_VALUE') ?>
                                %</label>
                            <input type="number" class="form-control"
                                   id="variantOpt_priceCommission"
                                   placeholder="<?= Translate::sprint("Price with commission...") ?>"
                                   disabled>
                        </div>

                        <input type="hidden" class="form-control" id="variantOpt_priceInput">
                        <input type="hidden" class="form-control" id="variantOpt_commission"
                               value="<?= ConfigManager::getValue('ORDER_COMMISSION_VALUE') ?>">

                    <?php else: ?>

                        <div class="form-group">
                            <label><?= _lang("Price") ?> <?= DEFAULT_CURRENCY ?>
                                , <?= $currency['symbol'] ?></label>
                            <input type="number" class="form-control" id="variantOpt_price"
                                   placeholder="<?= Translate::sprint("Enter price") ?>">
                        </div>

                    <?php endif; ?>

                </div>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default pull-left"
                        data-dismiss="modal"><?= Translate::sprint("Cancel", "Cancel") ?></button>
                <button type="button" id="update"
                        class="btn btn-flat btn-primary"><?= Translate::sprint("Update") ?></button>
            </div>
        </div>

        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>