store_name 必填

master
luoyang 6 years ago
parent 32295102ce
commit 5619d21469

@ -107,17 +107,26 @@
</div> </div>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group"
<label class="control-label col-sm-2" for="store-name-input">Store ng-class="{'has-error':partnerForm.store_name.$invalid && partnerForm.store_name.$dirty}">
<label class="control-label col-sm-2" for="store-name-input">* Store
Name</label> Name</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" ng-model="partner.store_name" <input class="form-control" ng-model="partner.store_name"
type="text" type="text"
name="store_name" id="store-name-input" name="store_name" id="store-name-input"
maxlength="15"> maxlength="15" required>
<p class="small text-info">store name for WeChat payment display <p class="small text-info">store name for WeChat payment display
and partner and partner
name</p> name</p>
<div ng-messages="partnerForm.store_name.$error"
ng-if="partnerForm.store_name.$dirty">
<p class="small text-danger" ng-message="required">Required
Field</p>
<p class="small text-danger" ng-message="maxlength">Less
Than 15
Characters(including symbols and spaces)</p>
</div>
</div> </div>
</div> </div>
<div class="form-group" <div class="form-group"

@ -87,19 +87,19 @@
</div> </div>
</div> </div>
<div class="form-group" <div class="form-group"
ng-class="{'has-error':partnerForm.company_name.$dirty}"> ng-class="{'has-error':partnerForm.store_name.$invalid && partnerForm.store_name.$dirty}">
<label class="control-label col-sm-2" for="store-name-input"> <label class="control-label col-sm-2" for="store-name-input">
Store Name</label> Store Name</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" ng-model="partner.store_name" <input class="form-control" ng-model="partner.store_name"
type="text" type="text"
id="store-name-input" name="store_name" id="store-name-input" name="store_name"
maxlength="15"> maxlength="15" required>
<p class="small text-info">store name for WeChat payment display and partner name</p> <p class="small text-info">store name for WeChat payment display and partner name</p>
<div ng-messages="partnerForm.company_name.$error" <div ng-messages="partnerForm.store_name.$error"
ng-if="partnerForm.company_name.$dirty"> ng-if="partnerForm.store_name.$dirty">
<p class="small text-danger" ng-message="maxlength">Less <p class="small text-danger" ng-message="required">Required Field</p>
Than 15 <p class="small text-danger" ng-message="maxlength">Less Than 50
Characters(including symbols and spaces)</p> Characters(including symbols and spaces)</p>
</div> </div>
</div> </div>
@ -156,23 +156,24 @@
</div> </div>
<div class="form-group" <div class="form-group"
ng-class="{'has-error':partnerForm.company_name.$dirty}"> ng-class="{'has-error':partnerForm.store_name.$invalid && partnerForm.store_name.$dirty}">
<label class="control-label col-sm-2" for="store-name-input"> <label class="control-label col-sm-2" for="store-name-input">
Store Name</label> * Store Name</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" ng-model="partner.store_name" <input class="form-control" ng-model="partner.store_name"
type="text" type="text"
id="store-name-input" name="store_name" id="store-name-input" name="store_name"
maxlength="15"> maxlength="15" required>
<p class="small text-info">store name for WeChat payment display and partner name</p> <p class="small text-info">store name for WeChat payment display and partner name</p>
<div ng-messages="partnerForm.company_name.$error" <div ng-messages="partnerForm.store_name.$error"
ng-if="partnerForm.company_name.$dirty"> ng-if="partnerForm.store_name.$dirty">
<p class="small text-danger" ng-message="maxlength">Less <p class="small text-danger" ng-message="required">Required Field</p>
Than 15 <p class="small text-danger" ng-message="maxlength">Less Than 50
Characters(including symbols and spaces)</p> Characters(including symbols and spaces)</p>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="form-group" <div class="form-group"

Loading…
Cancel
Save