Fix some issues around validation in the config forms

This commit is contained in:
Joseph Schorr 2015-01-14 17:04:02 -05:00
parent 511c607bbb
commit cc453e7d10
4 changed files with 23 additions and 17 deletions

View file

@ -61,7 +61,8 @@
<td>Server Hostname:</td>
<td>
<span class="config-string-field" binding="config.SERVER_HOSTNAME"
placeholder="Hostname (and optional port if non-standard)"></span>
placeholder="Hostname (and optional port if non-standard)"
pattern="^[a-zA-Z-0-9\.]+(:[0-9]+)?$"></span>
<div class="help-text">
The HTTP host (and optionally the port number if a non-standard HTTP/HTTPS port) of the location
where the registry will be accessible on the network
@ -119,7 +120,8 @@
<td>Redis Hostname:</td>
<td>
<span class="config-string-field" binding="mapped.redis.host"
placeholder="The redis server hostname"></span>
placeholder="The redis server hostname"
pattern="^[a-zA-Z-0-9\.]+(:[0-9]+)?$"></span>
</td>
</tr>
<tr>
@ -213,7 +215,8 @@
<td>SMTP Server:</td>
<td>
<span class="config-string-field" binding="config.MAIL_SERVER"
placeholder="SMTP server for sending e-mail"></span>
placeholder="SMTP server for sending e-mail"
pattern="^[a-zA-Z-0-9\.]+(:[0-9]+)?$"></span>
</td>
</tr>
<tr>
@ -235,8 +238,8 @@
<tr>
<td>Mail Sender:</td>
<td>
<span class="config-string-field" binding="config.DEFAULT_MAIL_SENDER"
placeholder="E-mail address"></span>
<input class="form-control" type="email" ng-model="config.DEFAULT_MAIL_SENDER"
placeholder="E-mail address"></span>
<div class="help-text">
E-mail address from which all e-mails are sent. If not specified,
<code>support@quay.io</code> will be used.
@ -374,7 +377,7 @@
<span class="config-string-field"
binding="config.GITHUB_LOGIN_CONFIG.GITHUB_ENDPOINT"
placeholder="https://my.githubserver"
pattern="https?://([a-zA-Z0-9]+\.?\/?)+">
pattern="^https?://([a-zA-Z0-9]+\.?\/?)+$">
</span>
<div class="help-text">
The Github Enterprise endpoint. Must start with http:// or https://.
@ -506,7 +509,7 @@
<span class="config-string-field"
binding="config.GITHUB_TRIGGER_CONFIG.GITHUB_ENDPOINT"
placeholder="https://my.githubserver"
pattern="https?://([a-zA-Z0-9]+\.?\/?)+">
pattern="^https?://([a-zA-Z0-9]+\.?\/?)+$">
</span>
<div class="help-text">
The Github Enterprise endpoint. Must start with http:// or https://.