Initial commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<div class="col-md-4 show-product-documents-layer">
|
||||
<h4>Product documents:</h4>
|
||||
<div class="documnet-row" ng-repeat="document in data.documents">
|
||||
<a href="utils/api/downloadFile?idDocument={{document.idDocument}}&fileName={{document.documentName}}.{{document.extension}}">
|
||||
{{document.documentName}} ( {{document.extension}} )
|
||||
</a>
|
||||
<span ng-click="removeProductDocument(document.idDocument)" class="glyphicon glyphicon-trash remove-document-icon"></span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,37 @@
|
||||
<div class="col-sm-6">
|
||||
<form id="supplier-add-edit-form">
|
||||
<div class="form-group supplier-group">
|
||||
<label for="supplier-name">{{'suppliers.tables.headers.name' | translate}}:</label>
|
||||
<input class="form-control supplier-input"
|
||||
type="text"
|
||||
placeholder="{{'suppliers.tables.headers.name' | translate}}"
|
||||
id="supplier-name"
|
||||
ng-model="data.name"
|
||||
value="{{data.name}}"
|
||||
autofocus="on"
|
||||
required>
|
||||
</div>
|
||||
|
||||
<div class="form-group supplier-group">
|
||||
<label for="phone">{{'suppliers.tables.headers.phone' | translate}}:</label>
|
||||
<input type="text"
|
||||
placeholder="{{'suppliers.tables.headers.phone' | translate}}"
|
||||
class="form-control supplier-input"
|
||||
id="supplier-phone"
|
||||
ng-model="data.phone"
|
||||
value="{{data.phone}}">
|
||||
</div>
|
||||
|
||||
<div class="form-group supplier-group">
|
||||
<label for="mail">{{'suppliers.tables.headers.mail' | translate}}:</label>
|
||||
<input type="text"
|
||||
placeholder="{{'suppliers.tables.headers.mail' | translate}}"
|
||||
class="form-control supplier-input"
|
||||
id="supplier-mail"
|
||||
ng-model="data.mail"
|
||||
value="{{data.mail}}">
|
||||
</div>
|
||||
|
||||
<button type="submit" ng-click="addEditSupplier()" class="btn btn-primary">{{'suppliers.buttons.SUPPLIERS_'+formAction | translate}}</button>
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,170 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<form id="supplier-product-add-edit-form">
|
||||
<div ng-if="isAddAction()" class="form-group product-group">
|
||||
<label for="country-id">{{'suppliers.tables.headers.country' | translate}}:</label>
|
||||
<select id="country-id"
|
||||
class="form-control-static"
|
||||
ng-model="data.idCountry"
|
||||
required>
|
||||
<option ng-repeat="countryInfo in countries" value={{countryInfo.id}}>
|
||||
{{countryInfo.name}}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div ng-if="isAddAction()" class="form-group product-group">
|
||||
<label for="supplier-id">{{'suppliers.tables.headers.supplierName' | translate}}:</label>
|
||||
<select id="supplier-id"
|
||||
class="form-control-static"
|
||||
ng-model="data.idSupplier"
|
||||
required>
|
||||
<option ng-repeat="supplier in suppliers" value={{supplier.id}}>
|
||||
{{supplier.name}}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group product-group">
|
||||
<label for="product-name">{{'suppliers.tables.headers.name' | translate}}:</label>
|
||||
<input class="form-control product-input"
|
||||
type="text"
|
||||
placeholder="{{'suppliers.tables.headers.name' | translate}}"
|
||||
id="product-name"
|
||||
ng-model="data.name"
|
||||
value="{{data.name}}"
|
||||
required>
|
||||
</div>
|
||||
|
||||
<div ng-if="!isAddAction()" class="form-group product-group">
|
||||
<label for="product-is-available">{{'suppliers.tables.headers.isAvailable' | translate}}:</label>
|
||||
<div class="product-radio-layer">
|
||||
<input class="product-radio"
|
||||
type="radio"
|
||||
id="product-is-available-yes"
|
||||
ng-model="data.isAvailable"
|
||||
value="1">
|
||||
{{'suppliers.headers.YES' | translate}}
|
||||
</div>
|
||||
<div class="product-radio-layer">
|
||||
<input class="product-radio"
|
||||
type="radio"
|
||||
id="product-is-available-no"
|
||||
ng-model="data.isAvailable"
|
||||
value="0">
|
||||
{{'suppliers.headers.NO' | translate}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group product-group">
|
||||
<label for="product-descrtiption">{{'suppliers.tables.headers.description' | translate}}:</label>
|
||||
<textarea class="form-control product-input"
|
||||
placeholder="{{'suppliers.tables.headers.description' | translate}}"
|
||||
id="product-description"
|
||||
ng-model="data.description"
|
||||
required>{{data.description}}</textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group product-group">
|
||||
<label for="product-category-name">{{'suppliers.tables.headers.category' | translate}}:</label>
|
||||
<select id="product-category-name"
|
||||
class="form-control-static"
|
||||
ng-model="data.productCategory"
|
||||
ng-options="productCategory.category for productCategory in productCategories track by productCategory.id"
|
||||
required>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group product-group">
|
||||
<label for="product-is-price-recurring">{{'suppliers.tables.headers.isPriceRecurring' | translate}}:</label>
|
||||
<div class="product-radio-layer">
|
||||
<input class="product-radio"
|
||||
type="radio"
|
||||
id="product-is-price-recurring-yes"
|
||||
ng-model="data.isPriceRecurring"
|
||||
value="1">
|
||||
{{'suppliers.headers.YES' | translate}}
|
||||
</div>
|
||||
<div class="product-radio-layer">
|
||||
<input class="product-radio"
|
||||
type="radio"
|
||||
id="product-is-price-recurring-no"
|
||||
ng-model="data.isPriceRecurring"
|
||||
value="0">
|
||||
{{'suppliers.headers.NO' | translate}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div ng-if="isPriceRecurring()" class="form-group product-group">
|
||||
<label for="product-pay-period">{{'suppliers.tables.headers.payPeriod' | translate}}:</label>
|
||||
<input class="form-control product-input"
|
||||
type="text"
|
||||
placeholder="{{'suppliers.tables.headers.payPeriod' | translate}}"
|
||||
id="product-pay-period"
|
||||
ng-model="data.payPeriod"
|
||||
value="{{data.payPeriod}}">
|
||||
</div>
|
||||
|
||||
<div class="form-group product-group">
|
||||
<label for="product-unit-cost-price">{{'suppliers.tables.headers.unitCostPrice' | translate}}:</label>
|
||||
<input class="form-control product-input"
|
||||
type="text"
|
||||
placeholder="{{'suppliers.tables.headers.unitCostPrice' | translate}}"
|
||||
id="product-unit-cost-price"
|
||||
ng-model="data.unitCostPrice"
|
||||
value="{{data.unitCostPrice}}"
|
||||
required>
|
||||
</div>
|
||||
|
||||
<div class="form-group product-group">
|
||||
<label for="product-unit-vat-cost">{{'suppliers.tables.headers.unitVatCost' | translate}}:</label>
|
||||
<input class="form-control product-input"
|
||||
type="text"
|
||||
placeholder="{{'suppliers.tables.headers.unitVatCost' | translate}}"
|
||||
id="product-unit-vat-cost"
|
||||
ng-model="data.unitVatCost"
|
||||
value="{{data.unitVatCost}}"
|
||||
required>
|
||||
</div>
|
||||
|
||||
<div class="form-group product-group">
|
||||
<label for="product-manufacturere-no">{{'suppliers.tables.headers.manufacturerProductNo' | translate}}:</label>
|
||||
<input class="form-control product-input"
|
||||
type="text"
|
||||
placeholder="{{'suppliers.tables.headers.manufacturerProductNo' | translate}}"
|
||||
id="product-manufacturere-no"
|
||||
ng-model="data.manufacturerProductNo"
|
||||
value="{{data.manufacturerProductNo}}"
|
||||
required>
|
||||
</div>
|
||||
|
||||
<div class="form-group product-group">
|
||||
<label for="product-supplier-no">{{'suppliers.tables.headers.supplierProductNo' | translate}}:</label>
|
||||
<input class="form-control product-input"
|
||||
type="text"
|
||||
placeholder="{{'suppliers.tables.headers.supplierProductNo' | translate}}"
|
||||
id="product-supplier-no"
|
||||
ng-model="data.supplierProductNo"
|
||||
value="{{data.supplierProductNo}}"
|
||||
required>
|
||||
</div>
|
||||
|
||||
<div class="form-group product-group">
|
||||
<label for="product-unit">{{'suppliers.tables.headers.unit' | translate}}:</label>
|
||||
<input class="form-control product-input"
|
||||
type="text"
|
||||
placeholder="{{'suppliers.tables.headers.unit' | translate}}"
|
||||
id="product-unit"
|
||||
ng-model="data.unit"
|
||||
value="{{data.unit}}">
|
||||
</div>
|
||||
|
||||
<button type="submit" ng-click="addEditSupplierProducts()" class="btn btn-primary">{{'suppliers.buttons.SUPPLIERS_PRODUCTS_'+formAction | translate}}</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div ng-if="!isAddAction()" class="col-sm-4">
|
||||
<h4>Upload Product Documents</h4>
|
||||
<upload-product-document ng-controller="uploadProductDocumentCtrl" ng-init="getDocumentTypes()"/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,46 @@
|
||||
<button type="button"
|
||||
id="suppliersBtn"
|
||||
subModule="suppliers"
|
||||
class="btn btn-default"
|
||||
ng-click="setSubModule($event)">{{ 'suppliers.buttons.SHOW_SUPPLIERS' | translate }}</button>
|
||||
|
||||
<button type="button"
|
||||
id="suppliersProductsBtn"
|
||||
subModule="suppliersProducts"
|
||||
class="btn btn-default"
|
||||
ng-click="setSubModule($event)">{{ 'suppliers.buttons.SHOW_SUPPLIERS_PRODUCTS' | translate }}</button>
|
||||
|
||||
<button type="button"
|
||||
id="suppliersProductsAddBtn"
|
||||
subModule="suppliersProductsAdd"
|
||||
class="btn btn-default"
|
||||
ng-click="setSubModule($event)">{{ 'suppliers.buttons.SUPPLIERS_PRODUCTS_ADD' | translate }}</button>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12"
|
||||
id="suppliers-layer"
|
||||
ng-if="isSubmoduleVisible('suppliers')"
|
||||
ng-init="getSuppliers()">
|
||||
<h3>{{ 'suppliers.headers.SHOW_SUPPLIERS' | translate }}</h3>
|
||||
<table class="table table-striped table-hover" id="suppliers"></table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12"
|
||||
id="suppliers-products-layer"
|
||||
ng-if="isSubmoduleVisible('suppliersProducts')"
|
||||
ng-init="getSuppliersProducts()">
|
||||
<h3>{{ 'suppliers.headers.SHOW_SUPPLIERS_PRODUCTS' | translate }}</h3>
|
||||
<table class="table table-striped table-hover" id="suppliers-products"></table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12"
|
||||
id="suppliers-products-add-layer"
|
||||
ng-if="isSubmoduleVisible('suppliersProductsAdd')">
|
||||
<h3>{{ 'suppliers.headers.SUPPLIERS_PRODUCTS_ADD' | translate }}</h3>
|
||||
<suppliers-products-add-edit ng-controller="suppliersProductsAddEditCtrl" ng-init="productsFormInit('ADD')"></suppliers-products-add-edit>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,46 @@
|
||||
<div class="upload-product-document">
|
||||
<div class="document-types">
|
||||
<label>{{'orders.headers.DOCUMENT_TYPES' | translate}}: </label>
|
||||
<select id="document-types-for-prod"
|
||||
class="form-control-static add-document-value"
|
||||
ng-model="docType"
|
||||
ng-options="docType.type for docType in documentTypes track by docType.idDocumentType"
|
||||
ng-change="selectFileType(docType)">
|
||||
<option value="" disabled selected>{{'orders.headers.SELECT_DOCUMENT_TYPE' | translate}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="document-name">
|
||||
<label>Document name: </label>
|
||||
<input id="new-doc-name"
|
||||
class="add-document-value"
|
||||
type="text"
|
||||
placeholder="Document name"
|
||||
ng-model="documentName" />
|
||||
</div>
|
||||
<div class="document-name">
|
||||
<label>Visible To Customer </label>
|
||||
<span class="product-radio-layer">
|
||||
<input class="product-radio"
|
||||
type="radio"
|
||||
id="document-is-visible-yes"
|
||||
ng-model="visibleToCustomer"
|
||||
value="1">
|
||||
{{'suppliers.headers.YES' | translate}}
|
||||
</span>
|
||||
<span class="product-radio-layer">
|
||||
<input class="product-radio"
|
||||
type="radio"
|
||||
id="document-is-visible-no"
|
||||
ng-model="visibleToCustomer"
|
||||
value="0">
|
||||
{{'suppliers.headers.NO' | translate}}
|
||||
</span>
|
||||
</div>
|
||||
<div ngf-drop="uploadFile($file)"
|
||||
ng-model="files"
|
||||
ngf-drag-over-class="'dragover'"
|
||||
ngf-select="uploadFile($file)"
|
||||
ngf-pattern="'.pdf,.docx,.doc,.xlsx,.xls,.odt,.ods,.png,.jpg,.jpeg'"
|
||||
ngf-max-size="20MB"
|
||||
class="drop-box">Select Document</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user