|
|
|
@ -2,57 +2,32 @@
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading">Partner Basic Information</div>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<div class="form-horizontal">
|
|
|
|
|
<form class="form-horizontal" novalidate name="partnerForm">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2">* Partner Code</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<p class="form-control-static" ng-bind="partner.client_moniker"></p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':partnerForm.company_name.$invalid && partnerForm.company_name.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="company-name-input">* Company Name</label>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2">Company Name</label>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="partner.company_name" type="text"
|
|
|
|
|
id="company-name-input" required name="company_name" maxlength="100">
|
|
|
|
|
<p class="small text-info">Full Name shall be same as the name when register to
|
|
|
|
|
gov</p>
|
|
|
|
|
<div ng-messages="partnerForm.company_name.$error"
|
|
|
|
|
ng-if="partnerForm.company_name.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less Than 100
|
|
|
|
|
Characters(including symbols and spaces)</p>
|
|
|
|
|
</div>
|
|
|
|
|
<p class="form-control-static" ng-bind="partner.company_name"></p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':partnerForm.short_name.$invalid && partnerForm.short_name.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="short-name-input">* Short Name</label>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2">Short Name</label>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="partner.short_name" type="text"
|
|
|
|
|
name="short_name"
|
|
|
|
|
id="short-name-input" required maxlength="50">
|
|
|
|
|
<p class="small text-info">short name for WeChat payment display and partner
|
|
|
|
|
name</p>
|
|
|
|
|
<div ng-messages="partnerForm.short_name.$error"
|
|
|
|
|
ng-if="partnerForm.company_name.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less Than 50
|
|
|
|
|
Characters(including symbols and spaces)</p>
|
|
|
|
|
</div>
|
|
|
|
|
<p class="form-control-static" ng-bind="partner.short_name"></p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':partnerForm.business_name.$invalid && partnerForm.business_name.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="business-name-input">Business Name</label>
|
|
|
|
|
<label class="control-label col-sm-2">Business Name</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input id="business-name-input" ng-model="partner.business_name" class="form-control"
|
|
|
|
|
type="text" name="business_name" maxlength="100">
|
|
|
|
|
<div ng-messages="partnerForm.business_name.$error"
|
|
|
|
|
ng-if="partnerForm.business_name.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less Than 100
|
|
|
|
|
Characters(including symbols and spaces)</p>
|
|
|
|
|
</div>
|
|
|
|
|
<p class="form-control-static" ng-bind="partner.business_name"></p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
@ -60,7 +35,7 @@
|
|
|
|
|
<label class="control-label col-sm-2" for="business-structure-input">Business Structure</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select class="form-control" name="business_structure" ng-model="partner.business_structure"
|
|
|
|
|
id="business-structure-input"
|
|
|
|
|
id="business-structure-input" required
|
|
|
|
|
ng-options="structure.value as structure.label for structure in business_structures">
|
|
|
|
|
<option value="">Please Choose</option>
|
|
|
|
|
</select>
|
|
|
|
@ -85,9 +60,9 @@
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="partner.abn" type="text" name="abn"
|
|
|
|
|
id="abn-input"
|
|
|
|
|
maxlength="20">
|
|
|
|
|
maxlength="20" required>
|
|
|
|
|
<div ng-messages="partnerForm.abn.$error" ng-if="partnerForm.abn.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less Than 20
|
|
|
|
|
<p class="small text-danger" ng-message="required">Less Than 20
|
|
|
|
|
Characters(including symbols and spaces)</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -97,19 +72,20 @@
|
|
|
|
|
<label class="control-label col-sm-2" for="acn-input">ACN</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="partner.acn" type="text" name="acn"
|
|
|
|
|
id="acn-input" maxlength="20">
|
|
|
|
|
id="acn-input" maxlength="20" required>
|
|
|
|
|
<div ng-messages="partnerForm.acn.$error" ng-if="partnerForm.acn.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less Than 20
|
|
|
|
|
<p class="small text-danger" ng-message="required">Less Than 20
|
|
|
|
|
Characters(including symbols and spaces)</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-if="!partner.parent_client_id || ('00110'|withRole)"
|
|
|
|
|
ng-class="{'has-error':partnerForm.partner_type.$invalid && partnerForm.partner_type.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="partner-type-select">* Photo/Website</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select class="form-control" ng-model="partner.partner_type"
|
|
|
|
|
id="partner-type-select"
|
|
|
|
|
id="partner-type-select" required
|
|
|
|
|
name="partner_type">
|
|
|
|
|
<option value="">Please Choose</option>
|
|
|
|
|
<option value="photo">Photo</option>
|
|
|
|
@ -126,7 +102,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-if="partner.partner_type == 'photo' && (!partner.parent_client_id || ('00110'|withRole))">
|
|
|
|
|
ng-if="partner.partner_type == 'photo'">
|
|
|
|
|
<label class="control-label col-sm-2">* Shop Photo</label>
|
|
|
|
|
<div class="col-sm-5">
|
|
|
|
|
<div class="form-control-static"><em>1:</em>
|
|
|
|
@ -137,7 +113,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<uib-progressbar value="shopPhotoProgress.value"
|
|
|
|
|
ng-if="shopPhotoProgress"></uib-progressbar>
|
|
|
|
|
<img ng-src="{{partner.company_photo}}" ng-if="partner.company_photo" class="thumbnail img-size col-sm-9">
|
|
|
|
|
<img ng-src="{{partner.company_photo}}" ng-if="partner.company_photo" class="thumbnail img-size col-sm-5">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-5">
|
|
|
|
|
<div class="form-control-static"><em>2:</em>
|
|
|
|
@ -149,7 +125,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<uib-progressbar value="storePhotoProgress.value"
|
|
|
|
|
ng-if="storePhotoProgress"></uib-progressbar>
|
|
|
|
|
<img ng-src="{{partner.store_photo}}" ng-if="partner.store_photo" class="thumbnail img-size col-sm-9">
|
|
|
|
|
<img ng-src="{{partner.store_photo}}" ng-if="partner.store_photo" class="thumbnail img-size col-sm-5">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
@ -163,22 +139,16 @@
|
|
|
|
|
<div ng-messages="partnerForm.company_website.$error"
|
|
|
|
|
ng-if="partnerForm.company_website.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less Than 200
|
|
|
|
|
<p class="small text-danger" ng-message="required">Less Than 200
|
|
|
|
|
Characters(including symbols and spaces)</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':partnerForm.company_phone.$invalid && partnerForm.company_phone.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="service-phone-input">* Service Phone</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" required type="text" ng-model="partner.company_phone"
|
|
|
|
|
name="company_phone" id="service-phone-input" maxlength="20">
|
|
|
|
|
<div ng-messages="partnerForm.company_phone.$error"
|
|
|
|
|
ng-if="partnerForm.company_phone.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less Than 20 Characters</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2">Service Phone</label>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<p class="form-control-static" ng-bind="partner.company_phone||'-'"></p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
@ -186,7 +156,8 @@
|
|
|
|
|
<label class="control-label col-sm-2" for="desc-input">Description</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<textarea class="form-control" ng-model="partner.description"
|
|
|
|
|
name="description" id="desc-input" maxlength="200"></textarea>
|
|
|
|
|
name="description" id="desc-input" maxlength="200" required
|
|
|
|
|
placeholder="Tell me about your company and the main products you sell"></textarea>
|
|
|
|
|
<div ng-messages="partnerForm.description.$error"
|
|
|
|
|
ng-if="partnerForm.description.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less Than 200
|
|
|
|
@ -194,145 +165,10 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2" for="remark-input">Following BD</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="partner.remark" name="remark"
|
|
|
|
|
id="remark-input" maxlength="50">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-xs-4 col-sm-2" for="bd-select">Referrer</label>
|
|
|
|
|
<div class="col-xs-8">
|
|
|
|
|
<select id="bd-select" class="form-control" ng-model="partner.referrer_id"
|
|
|
|
|
ng-options="referrer.org_id as referrer.name for referrer in referrers">
|
|
|
|
|
<option value="">select referrer</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!--end 商户基本资料-->
|
|
|
|
|
<!--支付宝资料-->
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading">Contact Information</div>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<div class="form-horizontal">
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':partnerForm.contact_person.$invalid && partnerForm.contact_person.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="contact_person-input">* Contact Person
|
|
|
|
|
Name</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="partner.contact_person" required
|
|
|
|
|
name="contact_person"
|
|
|
|
|
id="contact_person-input" maxlength="50">
|
|
|
|
|
<div ng-messages="partnerForm.contact_person.$error"
|
|
|
|
|
ng-if="partnerForm.contact_person.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less Than 50
|
|
|
|
|
Characters(including symbols and spaces)</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group col-sm-6"
|
|
|
|
|
ng-class="{'has-error':partnerForm.contact_phone.$invalid && partnerForm.contact_phone.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-4" for="contact-phone-input">* Phone</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input type="text" class="form-control" ng-model="partner.contact_phone" required
|
|
|
|
|
name="contact_phone" id="contact-phone-input" maxlength="20">
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-messages="partnerForm.contact_phone.$error"
|
|
|
|
|
ng-if="partnerForm.contact_phone.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less Than 20
|
|
|
|
|
Characters(including symbols and spaces)</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group col-sm-6"
|
|
|
|
|
ng-class="{'has-error':partnerForm.contact_email.$invalid && partnerForm.contact_email.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-4" for="contact-email-id">* E-mail</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="partner.contact_email" required
|
|
|
|
|
name="contact_email" id="contact-email-id" maxlength="50">
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-messages="partnerForm.contact_email.$error"
|
|
|
|
|
ng-if="partnerForm.contact_email.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less Than 50
|
|
|
|
|
Characters(including symbols and spaces)</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!--end 商户联系资料-->
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading">Address Information</div>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<div class="form-horizontal">
|
|
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
|
<label class="control-label col-sm-4" for="address-input">Address</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<textarea class="form-control" ng-model="partner.address" name="address"
|
|
|
|
|
id="address-input" maxlength="200"></textarea>
|
|
|
|
|
<div ng-messages="partnerForm.address.$error" ng-if="partnerForm.address.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less Than 200
|
|
|
|
|
Characters(including symbols and spaces)</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
|
<label class="control-label col-sm-4" for="suburb-input">* Suburb</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="partner.suburb" name="suburb"
|
|
|
|
|
id="suburb-input" maxlength="50">
|
|
|
|
|
<div ng-messages="partnerForm.suburb.$error" ng-if="partnerForm.suburb.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less Than 50
|
|
|
|
|
Characters(including symbols and spaces)</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
|
<label class="control-label col-sm-4" for="postcode-input">PostCode</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="partner.postcode" name="postcode"
|
|
|
|
|
id="postcode-input" maxlength="10">
|
|
|
|
|
<div ng-messages="partnerForm.postcode.$error" ng-if="partnerForm.postcode.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less Than 10
|
|
|
|
|
Characters(including symbols and spaces)</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
|
<label class="control-label col-sm-4" for="state-input">State</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select class="form-control" name="state" required ng-model="partner.state"
|
|
|
|
|
id="state-input"
|
|
|
|
|
ng-options="state.value as state.label for state in states">
|
|
|
|
|
<option value="">Please Choose</option>
|
|
|
|
|
</select>
|
|
|
|
|
<div ng-messages="partnerForm.state.$error" ng-if="partnerForm.state.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group col-sm-6" ng-class="{'has-error':partnerForm.country.$invalid && partnerForm.country.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-4" for="country-input">* Country</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-init="partner.country=partner.country||'AUS'" ng-model="partner.country" name="country"
|
|
|
|
|
id="country-input" maxlength="20" required placeholder="AUS" readonly="readonly">
|
|
|
|
|
<div ng-messages="partnerForm.country.$error" ng-if="partnerForm.country.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less Than 20
|
|
|
|
|
Characters(including symbols and spaces)</p>
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group margin-bottom margin-top">
|
|
|
|
|
<button class="btn btn-success" type="button" ng-click="updatePartner(partnerForm)">Save
|
|
|
|
|
</button>
|
|
|
|
|