|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
ng-class="{'has-error':subForm.merchant_name.$invalid && subForm.merchant_name.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="merchant_name_input">* Merchant Name</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.company_name"
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.company_name" disabled="disabled"
|
|
|
|
|
type="text" name="merchant_name" id="merchant_name_input" required maxlength="50">
|
|
|
|
|
<div ng-messages="subForm.merchant_name.$error" ng-if="subForm.merchant_name.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
@ -26,7 +26,7 @@
|
|
|
|
|
<select class="form-control" name="merchant_id"
|
|
|
|
|
ng-model="subMerchantInfo.merchant_id"
|
|
|
|
|
id="merchant_id_input" required
|
|
|
|
|
ng-options="merchant_id.merchant_id as merchant_id.merchant_id for merchant_id in merchantIds">
|
|
|
|
|
ng-options="merchant_id.merchant_id as merchant_id.merchant_id for merchant_id in merchantIds" disabled>
|
|
|
|
|
<option value="">Please Choose</option>
|
|
|
|
|
</select>
|
|
|
|
|
<div ng-messages="subForm.merchant_id.$error" ng-if="subForm.merchant_id.$dirty">
|
|
|
|
@ -40,13 +40,13 @@
|
|
|
|
|
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':subForm.merchant_storename.$invalid && subForm.merchant_storename.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="merchant_storename_input">* Merchant Store Name</label>
|
|
|
|
|
<label class="control-label col-sm-3" for="merchant_storename_input">* Merchant Short Name</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.short_name"
|
|
|
|
|
type="text" name="merchant_storename" id="merchant_storename_input" required maxlength="50">
|
|
|
|
|
type="text" name="merchant_storename" id="merchant_storename_input" required maxlength="20">
|
|
|
|
|
<div ng-messages="subForm.merchant_storename.$error" ng-if="subForm.merchant_storename.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Length is more than 50</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Length is more than 20</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -95,6 +95,7 @@
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.company_website"
|
|
|
|
|
type="url" name="website" id="website_input" required maxlength="128">
|
|
|
|
|
<p class="small " >(Not required when business type is Offline scenario)</p>
|
|
|
|
|
<div ng-messages="subForm.company_website.$error" ng-if="subForm.company_website.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
</div>
|
|
|
|
@ -108,6 +109,7 @@
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.address"
|
|
|
|
|
type="text" name="address" id="address_input" required maxlength="128">
|
|
|
|
|
<p class="small " >(Not required when business type is Online scenario)</p>
|
|
|
|
|
<div ng-messages="subForm.address.$error" ng-if="subForm.address.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Length is more than 128</p>
|
|
|
|
@ -119,10 +121,11 @@
|
|
|
|
|
ng-class="{'has-error':subForm.office_phone.$invalid && subForm.office_phone.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="office_phone_input">* Office Phone</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.company_phone"
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.company_phone" maxlength="20"
|
|
|
|
|
type="tel" name="office_phone" id="office_phone_input" required>
|
|
|
|
|
<div ng-messages="subForm.office_phone.$error" ng-if="subForm.office_phone.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Length is more than 20</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -187,18 +190,18 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- store address 店铺地址 -->
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':subForm.address.$invalid && subForm.address.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="address_input">* Store Address</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.address"
|
|
|
|
|
type="text" name="address" id="address_input" required maxlength="128">
|
|
|
|
|
<div ng-messages="subForm.address.$error" ng-if="subForm.address.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Length is more than 128</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!--<div class="form-group"-->
|
|
|
|
|
<!--ng-class="{'has-error':subForm.address.$invalid && subForm.address.$dirty}">-->
|
|
|
|
|
<!--<label class="control-label col-sm-3" for="address_input">* Store Address</label>-->
|
|
|
|
|
<!--<div class="col-sm-8">-->
|
|
|
|
|
<!--<input class="form-control" ng-model="subMerchantInfo.address"-->
|
|
|
|
|
<!--type="text" name="address" id="address_input" required maxlength="128">-->
|
|
|
|
|
<!--<div ng-messages="subForm.address.$error" ng-if="subForm.address.$dirty">-->
|
|
|
|
|
<!--<p class="small text-danger" ng-message="required">Required Field</p>-->
|
|
|
|
|
<!--<p class="small text-danger" ng-message="maxlength">Length is more than 128</p>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group"
|
|
|
|
@ -209,7 +212,7 @@
|
|
|
|
|
|
|
|
|
|
<select class="form-control" ng-model="subMerchantInfo.merchant_type"
|
|
|
|
|
id="merchant_type_select"
|
|
|
|
|
name="merchant_type" >
|
|
|
|
|
name="merchant_type" required>
|
|
|
|
|
<option value="">Please Choose</option>
|
|
|
|
|
<option value="ENTERPRISE" >ENTERPRISE</option>
|
|
|
|
|
<option value="INDIVIDUAL">INDIVIDUAL</option>
|
|
|
|
@ -233,29 +236,59 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 注册证书过期时间 -->
|
|
|
|
|
<!--<div class="form-group" ng-if="subMerchantInfo.merchant_type == 'ENTERPRISE'"-->
|
|
|
|
|
<!--ng-class="{'has-error':subForm.certificat_expire_date.$invalid && subForm.certificat_expire_date.$dirty}">-->
|
|
|
|
|
<!--<label class="control-label col-sm-3" for="certificat_expire_date_input">* {{'apply_sub_merchant_id.certificat_expire_date'|translate}}</label>-->
|
|
|
|
|
<!--<div class="col-sm-8">-->
|
|
|
|
|
<!--<input class="form-control" id="certificat_expire_date_input"-->
|
|
|
|
|
<!--ng-model="subMerchantInfo.certificat_expire_date"-->
|
|
|
|
|
<!--uib-datepicker-popup size="10"-->
|
|
|
|
|
<!--name="certificat_expire_date"-->
|
|
|
|
|
<!--is-open="certificat_expire_date.open"-->
|
|
|
|
|
<!--ng-click="certificat_expire_date.open=true"-->
|
|
|
|
|
<!-->-->
|
|
|
|
|
<!--<div ng-messages="subForm.certificat_expire_date.$error" ng-if="subForm.certificat_expire_date.$dirty">-->
|
|
|
|
|
<!--<p class="small text-danger" ng-message="required">Required Field</p>-->
|
|
|
|
|
<!--<p class="small text-danger" ng-message="maxlength">Length is more than 50</p>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!-- 注册证书过期时间 -->
|
|
|
|
|
<div class="form-group" ng-if="subMerchantInfo.merchant_type == 'ENTERPRISE'"
|
|
|
|
|
ng-class="{'has-error':subForm.certificat_expire_date.$invalid && subForm.certificat_expire_date.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="certificat_expire_date_input">* Expiration Date of Registration Certificat</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" id="certificat_expire_date_input"
|
|
|
|
|
ng-model="subMerchantInfo.certificat_expire_date"
|
|
|
|
|
<input class="control-label col-sm-4" id="certificat_expire_date_input"
|
|
|
|
|
ng-model="subMerchantInfo.certificat_expire_date_d"
|
|
|
|
|
uib-datepicker-popup size="10"
|
|
|
|
|
required
|
|
|
|
|
ng-change="checkExpriedate(subMerchantInfo.certificat_expire_date_d)"
|
|
|
|
|
name="certificat_expire_date"
|
|
|
|
|
is-open="certificat_expire_date.open"
|
|
|
|
|
ng-click="certificat_expire_date.open=true"
|
|
|
|
|
>
|
|
|
|
|
<div ng-messages="subForm.certificat_expire_date.$error" ng-if="subForm.certificat_expire_date.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Length is more than 50</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<span class="checkbox-inline">
|
|
|
|
|
|
|
|
|
|
<input type="checkbox" ng-change="checkExpriedateOther('PERMANENT')" ng-model="subMerchantInfo.certificat_expire_date_premanent"> <p>PERMANENT</p>
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
<span class="checkbox-inline">
|
|
|
|
|
|
|
|
|
|
<input type="checkbox" ng-change="checkExpriedateOther('N/A')" ng-model="subMerchantInfo.certificat_expire_date_NA"><p>N/A</p>
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<!--<div ng-messages="subForm.certificat_expire_date.$error" ng-if="subForm.certificat_expire_date.$dirty">-->
|
|
|
|
|
<!--<p class="small text-danger" ng-message="required">Required Field</p>-->
|
|
|
|
|
<!--<p class="small text-danger" ng-message="maxlength">Length is more than 50</p>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- director name 法人姓名 -->
|
|
|
|
|
<!--<div class="form-group" ng-if="subMerchantInfo.merchant_type == 'ENTERPRISE'"-->
|
|
|
|
|
<!--ng-class="{'has-error':subForm.director_name.$invalid && subForm.director_name.$dirty}">-->
|
|
|
|
|
<!--<label class="control-label col-sm-3" for="director_name_input">Director Name</label>-->
|
|
|
|
|
<!--<label class="control-label col-sm-3" for="director_name_input">{{'apply_sub_merchant_id.director_name'|translate}}(Not mandatory)</label>-->
|
|
|
|
|
<!--<div class="col-sm-8">-->
|
|
|
|
|
<!--<input class="form-control" ng-model="subMerchantInfo.director_name" maxlength="128"-->
|
|
|
|
|
<!--type="text" name="director_name" id="director_name_input">-->
|
|
|
|
@ -269,7 +302,7 @@
|
|
|
|
|
<!--<!– director id number 法人身份证号–>-->
|
|
|
|
|
<!--<div class="form-group" ng-if="subMerchantInfo.merchant_type == 'ENTERPRISE'"-->
|
|
|
|
|
<!--ng-class="{'has-error':subForm.director_id_number.$invalid && subForm.director_id_number.$dirty}">-->
|
|
|
|
|
<!--<label class="control-label col-sm-3" for="director_id_number_input">Director Id</label>-->
|
|
|
|
|
<!--<label class="control-label col-sm-3" for="director_id_number_input">{{'apply_sub_merchant_id.director_id'|translate}}(Not mandatory)</label>-->
|
|
|
|
|
<!--<div class="col-sm-8">-->
|
|
|
|
|
<!--<input class="form-control" ng-model="subMerchantInfo.director_id_number" maxlength="128"-->
|
|
|
|
|
<!--type="text" name="director_id_number" id="director_id_number_input">-->
|
|
|
|
@ -284,7 +317,7 @@
|
|
|
|
|
<!--<!– principal name 负责人姓名 –>-->
|
|
|
|
|
<!--<div class="form-group" ng-if="subMerchantInfo.merchant_type != 'ENTERPRISE'"-->
|
|
|
|
|
<!--ng-class="{'has-error':subForm.principal_name.$invalid && subForm.principal_name.$dirty}">-->
|
|
|
|
|
<!--<label class="control-label col-sm-3" for="principal_name_input">Principal Name</label>-->
|
|
|
|
|
<!--<label class="control-label col-sm-3" for="principal_name_input">{{'apply_sub_merchant_id.principal_name'|translate}}(Not mandatory)</label>-->
|
|
|
|
|
<!--<div class="col-sm-8">-->
|
|
|
|
|
<!--<input class="form-control" ng-model="subMerchantInfo.principal_name" maxlength="128"-->
|
|
|
|
|
<!--type="text" name="principal_name" id="principal_name_input">-->
|
|
|
|
@ -298,7 +331,7 @@
|
|
|
|
|
<!--<!– principal id number 负责人身份证号 –>-->
|
|
|
|
|
<!--<div class="form-group" ng-if="subMerchantInfo.merchant_type != 'ENTERPRISE'"-->
|
|
|
|
|
<!--ng-class="{'has-error':subForm.principal_id_number.$invalid && subForm.principal_id_number.$dirty}">-->
|
|
|
|
|
<!--<label class="control-label col-sm-3" for="principal_id_number_input">Principal ID Number</label>-->
|
|
|
|
|
<!--<label class="control-label col-sm-3" for="principal_id_number_input">{{'apply_sub_merchant_id.principal_id'|translate}}(Not mandatory)</label>-->
|
|
|
|
|
<!--<div class="col-sm-8">-->
|
|
|
|
|
<!--<input class="form-control" ng-model="subMerchantInfo.principal_id_number" maxlength="128"-->
|
|
|
|
|
<!--type="text" name="principal_id_number_number" id="principal_id_number_input">-->
|
|
|
|
|