Initial commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<div id="add-bid-margin">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label for="bidNumber">{{ 'bids.labels.BID_NUMBER' | translate }}</label>
|
||||
<span>{{bid.bidNumber}}</span>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="fixedExtra">{{ 'bids.labels.fixedExtra' | translate }}</label>
|
||||
<input type="text" class="form-control"
|
||||
id="fixedExtra" placeholder="{{ 'bids.labels.fixedExtra' | translate }}"
|
||||
ng-model="bidMargin.fixedExtra">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="recurrentExtra">{{ 'bids.labels.recurrentExtra' | translate }}</label>
|
||||
<input type="text" class="form-control"
|
||||
id="recurrentExtra" placeholder="{{ 'bids.labels.recurrentExtra' | translate }}"
|
||||
ng-model="bidMargin.recurrentExtra">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="servicesExtra">{{ 'bids.labels.servicesExtra' | translate }}</label>
|
||||
<input type="text" class="form-control"
|
||||
id="servicesExtra" placeholder="{{ 'bids.labels.servicesExtra' | translate }}"
|
||||
ng-model="bidMargin.servicesExtra">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,90 @@
|
||||
<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>
|
||||
@@ -0,0 +1,28 @@
|
||||
<div id="add-supplier-bid" ng-int="getSuppliers()">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label for="idSupplier">{{ 'bids.labels.SUPPLIER' | translate }}</label>
|
||||
<select class="form-control"
|
||||
id="idSupplier" placeholder="{{ 'bids.labels.SUPPLIER' | translate }}"
|
||||
ng-options="option.supplier for option in suppliers track by option.idSupplier"
|
||||
ng-change="onSupplierSelect()"
|
||||
ng-model="selectedSupplier"></select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="idProduct">{{ 'bids.labels.PRODUCT' | translate }}</label>
|
||||
<select class="form-control"
|
||||
id="idProduct" placeholder="{{ 'bids.labels.PRODUCT' | translate }}"
|
||||
ng-options="option.productName for option in products track by option.idProduct"
|
||||
ng-change="onProductSelect()"
|
||||
ng-model="selectedProduct"></select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="bidNumber">{{ 'bids.labels.BID_NUMBER' | translate }}</label>
|
||||
<input type="text" class="form-control"
|
||||
id="bidNumber" placeholder="{{ 'bids.labels.BID_NUMBER' | translate }}"
|
||||
ng-model="supplierBid.bidNumber">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,19 @@
|
||||
<div ng-if="bid.isUsed !== 1">
|
||||
<div ng-click="showBidMarginDialog(bid.idBid)" class="add-bid-margin-btn btn btn-primary">
|
||||
{{ 'bids.buttons.EDIT_MARGINS' | translate }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div ng-if="isMarginsDialogVisible[bid.idBid]" ng-controller="addBidMarginCtrl">
|
||||
<div id="dialog-add-bid-margin-{{bid.idBid}}"
|
||||
dialog
|
||||
is-modal="true"
|
||||
has-buttons="true"
|
||||
on-confirmation="saveBidMargin"
|
||||
on-close="closeBidMarginDialog"
|
||||
parameters="{bid, getBids}"
|
||||
buttons-names="{confirmation: 'Add Margin', cancel: 'Cancel'}"
|
||||
title="{{'bids.headers.ADD_BID_MARGIN' | translate}}">
|
||||
<add-bid-margin ng-init="init(bid)"/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,19 @@
|
||||
<div ng-if="bid.isUsed !== 1">
|
||||
<div ng-click="showBidRemoveDialog(bid.idBid)" class="remove-bid-btn btn btn-danger">
|
||||
{{ 'bids.buttons.REMOVE' | translate }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div ng-if="isRemoveDialogVisible[bid.idBid]" ng-controller="removeBidCtrl">
|
||||
<div id="dialog-remove-bid-{{bid.idBid}}"
|
||||
dialog
|
||||
is-modal="true"
|
||||
has-buttons="true"
|
||||
on-confirmation="removeBid"
|
||||
on-close="closeRemoveDialog"
|
||||
parameters="{bid, getBids}"
|
||||
buttons-names="{confirmation: 'Yes', cancel: 'Cancel'}"
|
||||
title="{{'bids.headers.REMOVE_BID' | translate}}">
|
||||
{{'bids.labels.REMOVE_BID_LABEL' | translate}} {{bid.bidNumber}}?
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
if($user->getUserType() === USER_TYPES['BROKER']){
|
||||
include('BidsTemplateBroker.php');
|
||||
}
|
||||
|
||||
if($user->getUserType() === USER_TYPES['COMMERCIAL_LEAD']){
|
||||
include('BidsTemplateCommercialLead.php');
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<button type="button"
|
||||
id="bids-view-btn"
|
||||
subModule="bidsView"
|
||||
class="btn btn-default"
|
||||
ng-click="setSubModule($event)">{{ 'bids.buttons.VIEW_BIDS' | translate }}</button>
|
||||
|
||||
<button type="button"
|
||||
id="bids-add-btn"
|
||||
subModule="bidAdd"
|
||||
class="btn btn-default"
|
||||
ng-click="setSubModule($event)">{{ 'bids.buttons.ADD_BID' | translate }}</button>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12"
|
||||
id="bids-view-layer"
|
||||
ng-if="isSubmoduleVisible('bidsView')">
|
||||
<bids-view ng-controller="bidsViewCtrl" ng-init="getBids()"></bids-view>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12"
|
||||
id="bid-add-layer"
|
||||
ng-if="isSubmoduleVisible('bidAdd')">
|
||||
<add-bid ng-controller="addBidCtrl" ng-init="initAddBid()"></add-bid>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,14 @@
|
||||
<button type="button"
|
||||
id="bids-view-btn"
|
||||
subModule="bidsView"
|
||||
class="btn btn-default"
|
||||
ng-click="setSubModule($event)">{{ 'bids.buttons.VIEW_BIDS' | translate }}</button>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12"
|
||||
id="bids-view-layer"
|
||||
ng-if="isSubmoduleVisible('bidsView')">
|
||||
<bids-view ng-controller="bidsViewCtrl" ng-init="getBids()"></bids-view>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,110 @@
|
||||
<div id="bids-view">
|
||||
<div class="row bids-fitlers">
|
||||
<div class="col-lg-3">
|
||||
Search: <input ng-model="searchText" ng-change="filterBids('search')"/>
|
||||
</div>
|
||||
<div class="col-lg-5">
|
||||
Bid type:
|
||||
<select ng-change="filterBids(bidType)" ng-model="bidType">
|
||||
<option value='all'>All</option>
|
||||
<option value='available'>Available</option>
|
||||
<option value='used'>Used</option>
|
||||
<option value='expired'>Expired</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row bids-list">
|
||||
<div class="col-xl-4 col-lg-4 col-md-6 col-sm-12" ng-repeat="bid in filteredBids">
|
||||
<div class="bid-item {{bid.status}}">
|
||||
<div class="bid-number">
|
||||
<h4 class="col-lg-12">Bid: {{bid.bidNumber}} <span class="bid-date">( {{bid.startDate}} - {{bid.endDate}} )</span></h4>
|
||||
</div>
|
||||
<div class="bid-reference">
|
||||
<div class="{{HEADER_COL}}">
|
||||
Package:
|
||||
</div>
|
||||
<div class="{{LABEL_COL}}">
|
||||
{{bid.packageName}}
|
||||
</div>
|
||||
|
||||
<div class="{{HEADER_COL}}">
|
||||
Sold by:
|
||||
</div>
|
||||
<div class="{{LABEL_COL}}">
|
||||
{{bid.commercialLead}}
|
||||
</div>
|
||||
|
||||
<div class="{{HEADER_COL}}">
|
||||
Customer:
|
||||
</div>
|
||||
<div class="{{LABEL_COL}}">
|
||||
{{bid.customer}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="bid-pay-type">
|
||||
<div class="{{HEADER_COL}}">
|
||||
Pay Type:
|
||||
</div>
|
||||
<div class="{{LABEL_COL}}">
|
||||
{{bid.payType}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="bid-price">
|
||||
<div class="{{HEADER_COL}}">
|
||||
Fixed:
|
||||
</div>
|
||||
<div class="{{LABEL_COL}}">
|
||||
{{bid.fixedPrice}}
|
||||
<span ng-if="isCommercialLead">+ {{bid.fixedExtra}} = {{(bid.fixedPrice + bid.fixedExtra).toFixed(2)}}</span>
|
||||
</div>
|
||||
|
||||
<div class="{{HEADER_COL}}">
|
||||
Recurrent:
|
||||
</div>
|
||||
<div class="{{LABEL_COL}}">
|
||||
{{bid.recurrentPrice}}
|
||||
<span ng-if="isCommercialLead">+ {{bid.recurrentExtra}} = {{(bid.recurrentPrice + bid.recurrentExtra).toFixed(2)}}</span>
|
||||
</div>
|
||||
|
||||
<div class="{{HEADER_COL}}">
|
||||
Services:
|
||||
</div>
|
||||
<div class="{{LABEL_COL}}">
|
||||
{{bid.servicesPrice}}
|
||||
<span ng-if="isCommercialLead">+ {{bid.servicesExtra}} = {{(bid.servicesPrice + bid.servicesExtra).toFixed(2)}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bid-status">
|
||||
<div class="{{HEADER_COL}} {{bid.status}}-status">
|
||||
Status:
|
||||
</div>
|
||||
<div class="{{LABEL_COL}} {{bid.status}}-status">
|
||||
{{bid.status}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="supplier-bids">
|
||||
<div class="{{HEADER_COL}}">
|
||||
Supplier Bids:
|
||||
</div>
|
||||
<div class="{{LABEL_COL}}">
|
||||
<div ng-if="bid.supplierBids.length === 0">-</div>
|
||||
<div
|
||||
ng-repeat="supllierBid in bid.supplierBids">
|
||||
{{supllierBid.bidNumber}} {{supllierBid.supplier}} {{supllierBid.productName}},
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if($user->getUserType() === USER_TYPES['COMMERCIAL_LEAD']){
|
||||
include('BidsAddMarginButton.php');
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if($user->getUserType() === USER_TYPES['BROKER']){
|
||||
include('BidsRemoveButton.php');
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,22 @@
|
||||
<div id="link-supplier-bids" ng-init="getUnlinkedSupplierBids()">
|
||||
<div class="supplier-bids-list row">
|
||||
<div class="supplier-bid-header col-lg-12">
|
||||
<div class="col col-lg-4">{{ 'bids.labels.BID_NUMBER' | translate }}</diV>
|
||||
<div class="col col-lg-4">{{ 'bids.labels.SUPPLIER' | translate }}</diV>
|
||||
<div class="col col-lg-4">{{ 'bids.labels.PRODUCT' | translate }}</diV>
|
||||
</div>
|
||||
<div class="supplier-bid col-lg-12 {{supplierBid.class}}"
|
||||
ng-click="onSupBidSelect(supplierBid)"
|
||||
ng-repeat="supplierBid in supplierBids">
|
||||
<div class="col col-lg-4">
|
||||
{{supplierBid.bidNumber}}
|
||||
</div>
|
||||
<div class="col col-lg-4">
|
||||
{{supplierBid.supplier}}
|
||||
</div>
|
||||
<div class="col col-lg-4">
|
||||
{{supplierBid.productName}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,43 @@
|
||||
<div>
|
||||
<div class="form-group">
|
||||
<div>
|
||||
<label>{{ 'bids.labels.SUPPLIER_BIDS' | translate }}</label>
|
||||
<span class="selected-supplier-bid" ng-repeat="supplierBid in bid.supplierBids">{{supplierBid.bidNumber}}, </span>
|
||||
</div>
|
||||
<div>
|
||||
<div ng-click="showLinkBidDialog()" class="btn btn-primary">
|
||||
{{ 'bids.buttons.LINK_BID' | translate }}
|
||||
</div>
|
||||
<div ng-click="showSupBidDialog()" class="btn btn-primary">
|
||||
{{ 'bids.buttons.ADD_BID' | translate }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div ng-if="isLinkSupBidDialogVisible" ng-controller="linkSupplierBidsCtrl" ng-init="init(bid.supplierBids)">
|
||||
<div id="dialog-link-supplier-bid"
|
||||
dialog
|
||||
is-modal="true"
|
||||
has-buttons="true"
|
||||
on-confirmation="$parent.linkSuppliers"
|
||||
on-close="showLinkBidDialog"
|
||||
parameters="{selectedBids}"
|
||||
buttons-names="{confirmation: 'Link Supplier Bids', cancel: 'Cancel'}"
|
||||
title="{{'bids.headers.LINK_SUPPLIER_BIDS' | translate}}">
|
||||
<?php include('LinkSupplierBidsTemplate.php'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div ng-if="isAddSupBidDialogVisible" ng-controller="addSupplierBidCtrl">
|
||||
<div id="dialog-add-supplier-bid"
|
||||
dialog
|
||||
is-modal="true"
|
||||
has-buttons="true"
|
||||
on-confirmation="saveSupplierBid"
|
||||
on-close="showSupBidDialog"
|
||||
buttons-names="{confirmation: 'Add Supplier Bid', cancel: 'Cancel'}"
|
||||
title="{{'bids.headers.SUPPLIER_BID' | translate}}">
|
||||
<?php include('AddSupplierBidTemplate.php'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user