Skip to content

Commit

Permalink
Merge branch 'master' of git.rackster.ch:ipynbsrv/ipynbsrv
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Glatthard committed Aug 11, 2015
2 parents 3f23fc0 + 4dee0f7 commit 5e51859
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ipynbsrv/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ class ContainerImage(models.Model):
max_length=75,
validators=[
RegexValidator(
regex='^[A-z][\w\/]*$',
regex='^[A-z][\w\/-]*$',
message='Invalid container snapshot name.'
)
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ <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>
<p class="help-text">Allowed pattern: ^[A-z]\w*$</p>
<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">
<label for="description">Description</label>
Expand Down
3 changes: 2 additions & 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,8 @@ <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">
<label for="description">Description</label>
Expand Down
4 changes: 2 additions & 2 deletions ipynbsrv/web/templates/web/images/modal_create.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ <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>
<p class="help-text">Allowed pattern: ^[A-z][\w\/]*$</p>
<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">
<label for="description">Description</label>
Expand Down

0 comments on commit 5e51859

Please sign in to comment.