Lines 46-51
Link Here
|
46 |
timeout: { number: true } |
46 |
timeout: { number: true } |
47 |
} |
47 |
} |
48 |
}); |
48 |
}); |
|
|
49 |
|
50 |
// A few documentation hints for users adding/editing SRU server: |
51 |
$("#host_docline").hide(); |
52 |
$("#database_docline").hide(); |
53 |
[% IF (server.servertype||type) == 'sru' %] |
54 |
$("#host_label").hover( |
55 |
function( event ) { |
56 |
$("#host_docline").show(); |
57 |
}, |
58 |
function( event ) { |
59 |
$("#host_docline").hide(); |
60 |
} |
61 |
); |
62 |
$("#database_label").hover( |
63 |
function( event ) { |
64 |
$("#database_docline").show(); |
65 |
}, |
66 |
function( event ) { |
67 |
$("#database_docline").hide(); |
68 |
} |
69 |
); |
70 |
[% END %] |
71 |
|
49 |
$("#serverentry").submit(function( event ) { |
72 |
$("#serverentry").submit(function( event ) { |
50 |
// copy show_sru_fields to hidden counterpart |
73 |
// copy show_sru_fields to hidden counterpart |
51 |
$('#sru_fields').val( $('#show_sru_fields').val() ); |
74 |
$('#sru_fields').val( $('#show_sru_fields').val() ); |
Lines 117-127
Link Here
|
117 |
<ol> |
140 |
<ol> |
118 |
<li><label for="name">Server name: </label><input type="text" name="servername" id="servername" size="65" maxlength="100" onblur="toUC(this)" value="[% server.servername | html %]"/></li> |
141 |
<li><label for="name">Server name: </label><input type="text" name="servername" id="servername" size="65" maxlength="100" onblur="toUC(this)" value="[% server.servername | html %]"/></li> |
119 |
|
142 |
|
120 |
<li><label for="host" class="required">Hostname: </label> <input type="text" name="host" id="host" size="30" value="[% server.host %]" required="required" /> <span class="required">Required</span> |
143 |
<li><label for="host" class="required" id="host_label">Hostname: </label> <input type="text" name="host" id="host" size="30" value="[% server.host %]" required="required" /> <span class="required">Required<span id="host_docline">. The host name should only contain the domain name.</span></span> |
121 |
</li> |
144 |
</li> |
122 |
<li><label for="port" class="required">Port: </label> <input type="text" name="port" id="port" size="5" value="[% server.port %]" required="required" /> <span class="required">Required</span> |
145 |
<li><label for="port" class="required">Port: </label> <input type="text" name="port" id="port" size="5" value="[% server.port %]" required="required" /> <span class="required">Required</span> |
123 |
</li> |
146 |
</li> |
124 |
<li><label for="db" class="required">Database: </label> <input type="text" name="db" id="db" value="[% server.db %]" required="required" /> <span class="required">Required</span> |
147 |
<li><label for="db" class="required" id="database_label">Database: </label> <input type="text" name="db" id="db" value="[% server.db %]" required="required" /> <span class="required">Required<span id="database_docline">. The path name goes into Database, whereas the domain name goes into Hostname.</span></span> |
125 |
</li> |
148 |
</li> |
126 |
<li><label for="userid">Userid: </label> <input type="text" name="userid" id="userid" value="[% server.userid %]" /> |
149 |
<li><label for="userid">Userid: </label> <input type="text" name="userid" id="userid" value="[% server.userid %]" /> |
127 |
</li> |
150 |
</li> |
128 |
- |
|
|