<div id="add-bid" class="row">
    <form>
        <div class="col-lg-4">
            <div class="form-group">
                <label for="idCommercialLead">{{ 'bids.labels.COMEMRCIAL_LEADS' | translate }}</label>
                <select class="form-control"
                    id="idCommercialLead" placeholder="{{ 'bids.labels.COMEMRCIAL_LEADS' | translate }}"
                    ng-options="option.commercialLead for option in clCustomers track by option.idCommercialLead"
                    ng-change="onCLSelect()"
                    ng-model="selectedCl"></select>
            </div>

            <div class="form-group">
                <label for="idCustomerInstance">{{ 'bids.labels.CUSTOMER' | translate }}</label>
                <select class="form-control"
                    id="idCustomerInstance" placeholder="{{ 'bids.labels.CUSTOMER' | translate }}"
                    ng-options="option.customer for option in selectedCl.customers track by option.idCustomerInstance"
                    ng-change="onCustomerSelect()"
                    ng-model="selectedCustomer"></select>
            </div>

            <div class="form-group">
                <label for="idPackage">{{ 'bids.labels.PACKAGE' | translate }}</label>
                <select class="form-control"
                    id="idPackage" placeholder="{{ 'bids.labels.PACKAGE' | translate }}"
                    ng-options="option.packageName for option in packages track by option.idPackage"
                    ng-change="onPackageSelect()"
                    ng-model="selectedPackage"></select>
            </div>

            <div class="form-group">
                <label for="idPaymentType">{{ 'bids.labels.PAY_TYPE' | translate }}</label>
                <select class="form-control"
                    id="idPaymentType" placeholder="{{ 'bids.labels.PAY_TYPE' | translate }}"
                    ng-options="option.payType for option in payTypes track by option.idPaymentType"
                    ng-change="onPayTypeSelect()"
                    ng-model="selectedPayType"></select>
            </div>

            <div class="form-group">
                <label for="startDate">{{ 'bids.labels.START_DATE' | translate }}</label>
                <input type="text" class="form-control"
                    id="startDate" placeholder="{{ 'bids.labels.START_DATE' | translate }}"
                    datepicker
                    ng-model="bid.startDate">
            </div>

            <div class="form-group">
                <label for="endDate">{{ 'bids.labels.END_DATE' | translate }}</label>
                <input type="text" class="form-control"
                    id="endDate" placeholder="{{ 'bids.labels.END_DATE' | translate }}"
                    datepicker
                    ng-model="bid.endDate">
            </div>
        </div>

        <div class="col-lg-4">
            <div class="form-group">
                <label for="fixedPrice">{{ 'bids.labels.FIXED' | translate }}</label>
                <input type="text" class="form-control"
                    id="fixedPrice" placeholder="{{ 'bids.labels.FIXED' | translate }}"
                    ng-model="bid.fixedPrice">
            </div>

            <div class="form-group">
                <label for="principalAmount">{{ 'bids.labels.PRINCIPAL_AMOUNT' | translate }}</label>
                <input type="text" class="form-control"
                    id="principalAmount" placeholder="{{ 'bids.labels.PRINCIPAL_AMOUNT' | translate }}"
                    ng-model="bid.principalAmount">
            </div>

            <div class="form-group">
                <label for="servicesPrice">{{ 'bids.labels.SERVICES' | translate }}</label>
                <input type="text" class="form-control"
                    id="servicesPrice" placeholder="{{ 'bids.labels.SERVICES' | translate }}"
                    ng-model="bid.servicesPrice">
            </div>

            <?php include('LinkedBidsTemplate.php'); ?>
        </div>

        <div class="col-lg-12">
            <div class="form-group">
                <div ng-click="saveBid()" class="btn btn-primary">
                    {{ 'bids.buttons.SAVE_BID' | translate }}
                </div>
            </div>
        </div>
    </form>
</div>
