Make sure the repo name matches the Docker regex in the tutorial
This commit is contained in:
parent
683648ab19
commit
dc230a1004
1 changed files with 7 additions and 1 deletions
|
@ -2,8 +2,14 @@
|
|||
<div class="control-group">
|
||||
<label class="control-label" for="containerId">Enter a repo name:</label>
|
||||
<div class="form-inline">
|
||||
<input type="text" id="containerId" class="form-control" ng-model="tour.tourScope.repoName">
|
||||
<form name="repoNameForm">
|
||||
<input type="text" id="repoName" name="repoName" class="form-control"
|
||||
ng-model="tour.tourScope.repoName" ng-pattern="/^[a-z0-9_-]+$/">
|
||||
</form>
|
||||
</div>
|
||||
<span ng-show="!repoNameForm.repoName.$valid" style="margin-left: 10px; margin-top: 7px;">
|
||||
Repository names must match [a-z0-9_-]+
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Reference in a new issue