Browse Source

【前台】+【企业注册,不允许企业名重复】

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@3166 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
aof 10 years ago
parent
commit
c538d2a7e7
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/main/webapp/resources/tpl/register/step1.html

+ 6 - 2
src/main/webapp/resources/tpl/register/step1.html

@@ -46,10 +46,14 @@
 		  	<div class="form-group">
 		    	<label for="enName" class="col-md-3 col-sm-4 control-label"><strong class="text-inverse">* </strong>企业名称:</label>
 			    <div class="col-md-5 col-sm-6">
-			      	<input required ng-model="enterprise.enName" type="text" class="form-control" id="enName" 
+			      	<input required ng-model="enterprise.enName" type="text" class="form-control" id="enName" name="enName"
 			      		placeholder="与附件信息名称一致">
 			    </div>
-			    <div class="col-md-4 col-sm-offset-4 col-md-offset-0 text-muted">请输入企业在工商局注册时使用的名称</div>
+			   	<div class="col-md-4 col-sm-offset-4 col-md-offset-0 text-muted">
+			    	<span ng-show="!myForm.enName.$invalid" class="text-success"><span class="fa fa-check-circle"></span>恭喜您,企业名可用</span>
+			    	<span ng-show="myForm.enName.$invalid && enterprise.enName" class="text-danger"><span class="fa fa-remove"></span>{{enNameErrorInfo}}</span>
+			    	请输入企业在工商局注册时使用的名称
+			    </div>
 		  	</div>
 		  	<div class="form-group">
 		    	<label for="enShortname" class="col-md-3 col-sm-4 control-label"><strong class="text-inverse">* </strong>企业简称:</label>