|
|
|
@ -7,13 +7,12 @@
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<div class="form-horizontal">
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':subForm.merchant_name.$invalid && subForm.merchant_name.$dirty}">
|
|
|
|
|
<div class="alert alert-danger" ng-if="errmsg" ng-bind="errmsg"></div>
|
|
|
|
|
<label class="control-label col-sm-3" for="merchant_name_input">* Company Name</label>
|
|
|
|
|
ng-class="{'has-error':subForm.company_name.$invalid && subForm.company_name.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="company_name_input">* Company Name</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.company_name"
|
|
|
|
|
type="text" name="company_name" id="merchant_name_input" required maxlength="50">
|
|
|
|
|
<div ng-messages="subForm.merchant_name.$error" ng-if="subForm.merchant_name.$dirty">
|
|
|
|
|
type="text" name="company_name" id="company_name_input" required maxlength="50">
|
|
|
|
|
<div ng-messages="subForm.company_name.$error" ng-if="subForm.company_name.$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>
|
|
|
|
@ -21,7 +20,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':subForm.merchant_id.$invalid && subForm.merchant_id.$dirty}">
|
|
|
|
|
ng-class="{'has-error':subForm.business_name.$invalid && subForm.business_name.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="business_name_input">* Business Name</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.business_name"
|
|
|
|
@ -58,42 +57,42 @@
|
|
|
|
|
<label class="control-label col-sm-3" for="description_input">* Company description</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.description"
|
|
|
|
|
type="text" name="description" id="description_input" required maxlength="256" MINLENGTH="10">
|
|
|
|
|
type="text" name="description" id="description_input" required maxlength="256">
|
|
|
|
|
<div ng-messages="subForm.description.$error" ng-if="subForm.description.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Length is more than 256</p>
|
|
|
|
|
<p class="small text-danger" ng-message="minlength">Length is less than 10</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':subForm.abn.$invalid && subForm.abn.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="abn_input">abn</label>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':subForm.abn.$invalid && subForm.abn.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="abn_input">* abn</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.abn"
|
|
|
|
|
type="text" name="abn" id="abn_input">
|
|
|
|
|
type="text" name="abn" id="abn_input" required maxlength="256">
|
|
|
|
|
<div ng-messages="subForm.abn.$error" ng-if="subForm.abn.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Length is more than 10</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':subForm.acn.$invalid && subForm.acn.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="acn_input">acn</label>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':subForm.acn.$invalid && subForm.acn.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="acn_input">* acn</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.acn"
|
|
|
|
|
type="text" name="acn" id="acn_input">
|
|
|
|
|
type="text" name="acn" id="acn_input" required maxlength="256">
|
|
|
|
|
<div ng-messages="subForm.acn.$error" ng-if="subForm.acn.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Length is more than 10</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':subForm.business_structure.$invalid && subForm.business_structure.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="business-structure-input">Business Structure</label>
|
|
|
|
|
<label class="control-label col-sm-3" for="business-structure-input">* Business Structure</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select class="form-control" name="business_structure" ng-model="subMerchantInfo.business_structure"
|
|
|
|
|
id="business-structure-input"
|
|
|
|
@ -109,7 +108,7 @@
|
|
|
|
|
<label class="control-label col-sm-3" for="company_phone_input">* Company Phone</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.company_phone"
|
|
|
|
|
type="tel" name="company_phone" id="company_phone_input" required>
|
|
|
|
|
type="tel" name="company_phone" id="company_phone_input" required maxlength="256">
|
|
|
|
|
<div ng-messages="subForm.company_phone.$error" ng-if="subForm.company_phone.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
</div>
|
|
|
|
@ -118,10 +117,10 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':subForm.contact_name.$invalid && subForm.contact_name.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="contact_name_input">Contact Name</label>
|
|
|
|
|
<label class="control-label col-sm-3" for="contact_name_input">* Contact Name</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.contact_person"
|
|
|
|
|
type="text" name="contact_name" id="contact_name_input">
|
|
|
|
|
type="text" name="contact_name" id="contact_name_input" required maxlength="256">
|
|
|
|
|
<div ng-messages="subForm.contact_name.$error" ng-if="subForm.contact_name.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
</div>
|
|
|
|
@ -129,10 +128,10 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':subForm.contact_phone.$invalid && subForm.contact_phone.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="contact_phone_input">Contact Phone</label>
|
|
|
|
|
<label class="control-label col-sm-3" for="contact_phone_input">* Contact Phone</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.contact_phone"
|
|
|
|
|
type="text" name="contact_phone" id="contact_phone_input">
|
|
|
|
|
type="text" name="contact_phone" id="contact_phone_input" required maxlength="256">
|
|
|
|
|
<div ng-messages="subForm.contact_phone.$error" ng-if="subForm.contact_phone.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
</div>
|
|
|
|
@ -140,10 +139,10 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':subForm.contact_email.$invalid && subForm.contact_email.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="contact_email_input">Contact Email</label>
|
|
|
|
|
<label class="control-label col-sm-3" for="contact_email_input">* Contact Email</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.contact_email"
|
|
|
|
|
type="text" name="contact_email" id="contact_email_input">
|
|
|
|
|
type="text" name="contact_email" id="contact_email_input" required maxlength="256">
|
|
|
|
|
<div ng-messages="subForm.contact_email.$error" ng-if="subForm.contact_email.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
</div>
|
|
|
|
@ -151,22 +150,22 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':subForm.country.$invalid && subForm.country.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="country_input">Company country</label>
|
|
|
|
|
<label class="control-label col-sm-3" for="country_input">* Company country</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.country"
|
|
|
|
|
type="text" name="country" id="country_input">
|
|
|
|
|
type="text" name="country" id="country_input" required maxlength="256">
|
|
|
|
|
<div ng-messages="subForm.country.$error" ng-if="subForm.country.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':subForm.company_address.$invalid && subForm.company_address.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="company_address_input">Company address</label>
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':subForm.address.$invalid && subForm.address.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="company_address_input">* Company address</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.address"
|
|
|
|
|
type="text" name="address" id="company_address_input">
|
|
|
|
|
<div ng-messages="subForm.company_address.$error" ng-if="subForm.company_address.$dirty">
|
|
|
|
|
type="text" name="address" id="company_address_input" required maxlength="256">
|
|
|
|
|
<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 50</p>
|
|
|
|
|
</div>
|
|
|
|
@ -174,34 +173,32 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':subForm.suburb.$invalid && subForm.suburb.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="company_suburb_input">suburb</label>
|
|
|
|
|
<label class="control-label col-sm-3" for="company_suburb_input">* suburb</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.suburb"
|
|
|
|
|
type="text" name="suburb" id="company_suburb_input">
|
|
|
|
|
type="text" name="suburb" id="company_suburb_input" required maxlength="256">
|
|
|
|
|
<div ng-messages="subForm.suburb.$error" ng-if="subForm.suburb.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Length is more than 10</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':subForm.postcode.$invalid && subForm.postcode.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="company_postcode_input">postCode</label>
|
|
|
|
|
<label class="control-label col-sm-3" for="company_postcode_input">* postCode</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.postcode"
|
|
|
|
|
type="text" name="postcode" id="company_postcode_input">
|
|
|
|
|
type="text" name="postcode" id="company_postcode_input" required maxlength="256">
|
|
|
|
|
<div ng-messages="subForm.postcode.$error" ng-if="subForm.postcode.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Length is more than 10</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':subForm.state.$invalid && subForm.state.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-3" for="state_input">state</label>
|
|
|
|
|
<label class="control-label col-sm-3" for="state_input">* state</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="subMerchantInfo.state"
|
|
|
|
|
type="text" name="state" id="state_input">
|
|
|
|
|
type="text" name="state" id="state_input" required maxlength="256">
|
|
|
|
|
<div ng-messages="subForm.state.$error" ng-if="subForm.state.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Length is more than 10</p>
|
|
|
|
|