Make sure the repo name matches the Docker regex in the tutorial

This commit is contained in:
Joseph Schorr 2014-02-06 22:13:42 -05:00
parent 683648ab19
commit dc230a1004

View file

@ -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>