mirror of https://github.com/aredn/aredn.git
Allow '-' in service name or non-service text (#1608)
This commit is contained in:
parent
4f5771610e
commit
8c863f35dd
|
@ -212,7 +212,7 @@ if (f) {
|
|||
<div class="service">
|
||||
<div class="cols">
|
||||
<div class="cols">
|
||||
<input name="name" type="text" placeholder="{{s.link === false ? 'service information' : 'service name'}}" required pattern='[^-:"|<>]+' value="{{s.name}}">
|
||||
<input name="name" type="text" placeholder="{{s.link === false ? 'service information' : 'service name'}}" required pattern='[^:"|<>]+' value="{{s.name}}">
|
||||
<div style="flex:0">
|
||||
<select name="type">
|
||||
<option value="">-</option>
|
||||
|
@ -492,7 +492,7 @@ if (f) {
|
|||
template = `<div class="service">
|
||||
<div class="cols">
|
||||
<div class="cols">
|
||||
<input name="name" type="text" placeholder="service name" required pattern='[^-:"|<>]+' value="${t.text || t.name}">
|
||||
<input name="name" type="text" placeholder="service name" required pattern='[^:"|<>]+' value="${t.text || t.name}">
|
||||
<div style="flex:0">
|
||||
<select name="type">
|
||||
<option value="">-</option>
|
||||
|
@ -518,7 +518,7 @@ if (f) {
|
|||
template = `<div class="service">
|
||||
<div class="cols">
|
||||
<div class="cols">
|
||||
<input name="name" type="text" placeholder="service name" required pattern='[^-:"|<>]+' value="${t.text || t.name}">
|
||||
<input name="name" type="text" placeholder="service name" required pattern='[^:"|<>]+' value="${t.text || t.name}">
|
||||
<div style="flex:0">
|
||||
<select name="type">
|
||||
<option value="">-</option>
|
||||
|
|
Loading…
Reference in New Issue