Skip to content

Commit

Permalink
fix pattern help
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Käser committed Aug 11, 2015
1 parent 09a2e9b commit 05861cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h4 class="modal-title">New Container Snapshot</h4>
<div class="form-group">
<label for="name">Name</label>
<input name="name" type="text" pattern="[A-Za-z1-9_-]+" class="form-control" required>
<p class="help-text">Allowed pattern: ^[A-z]\w*$</p>
<p class="help-block">Allowed pattern: ^[A-z]\w*$</p>
</div>
<div class="form-group">
<label for="description">Description</label>
Expand Down
1 change: 1 addition & 0 deletions ipynbsrv/web/templates/web/containers/modal_create.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ <h4 class="modal-title">New container</h4>
<div class="form-group">
<label for="name">Name</label>
<input name="name" type="text" pattern="[A-Za-z1-9_-]+" class="form-control" placeholder="e.g IPython Notebook" required>
<p class="help-block">Allowed pattern: ^[A-z]\w*$</p>
</div>
<div class="form-group">
<label for="description">Description</label>
Expand Down
2 changes: 1 addition & 1 deletion ipynbsrv/web/templates/web/images/modal_create.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h4 class="modal-title">New image</h4>
<div class="form-group">
<label for="img_name">Name</label>
<input name="img_name" type="text" pattern="[A-Za-z1-9_-]+" class="form-control" placeholder="e.g fhnw-maths " required>
<p class="help-text">Allowed pattern: ^[A-z][\w\/]*$</p>
<p class="help-block">Allowed pattern: ^[A-z][\w\/]*$</p>
</div>
<div class="form-group">
<label for="description">Description</label>
Expand Down

0 comments on commit 05861cf

Please sign in to comment.