Skip to content

Commit

Permalink
fix pattern not same as in models
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Käser committed Aug 11, 2015
1 parent 8530083 commit 8475cf1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h4 class="modal-title">New Container Snapshot</h4>
<input name="ct_id" type="hidden" class="form-control" value="{{ container.id }}">
<div class="form-group">
<label for="name">Name</label>
<input name="name" type="text" pattern="[A-Za-z1-9_-]+" class="form-control" required>
<input name="name" type="text" pattern="^[A-z]\w*$" class="form-control" required>
<p class="help-block">Allowed pattern: ^[A-z]\w*$</p>
</div>
<div class="form-group">
Expand Down
2 changes: 1 addition & 1 deletion ipynbsrv/web/templates/web/containers/modal_create.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h4 class="modal-title">New container</h4>
<div class="modal-body">
<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>
<input name="name" type="text" pattern="^[A-z]\w*$" class="form-control" placeholder="e.g IPython Notebook" required>
<p class="help-block">Allowed pattern: ^[A-z]\w*$</p>
</div>
<div class="form-group">
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 @@ -21,7 +21,7 @@ <h4 class="modal-title">New image</h4>
</div>
<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>
<input name="img_name" type="text" pattern="^[A-z][\w\/]*$" class="form-control" placeholder="e.g fhnw-maths " required>
<p class="help-block">Allowed pattern: ^[A-z][\w\/]*$</p>
</div>
<div class="form-group">
Expand Down

0 comments on commit 8475cf1

Please sign in to comment.