Lines 12-24
Link Here
|
12 |
<li><label for="contact_position[% contact.id | html %]">Position: </label> |
12 |
<li><label for="contact_position[% contact.id | html %]">Position: </label> |
13 |
<input type="text" size="40" id="contact_position[% contact.id | html %]" name="contact_position" value="[% contact.position | html %]" /></li> |
13 |
<input type="text" size="40" id="contact_position[% contact.id | html %]" name="contact_position" value="[% contact.position | html %]" /></li> |
14 |
<li><label for="contact_phone[% contact.id | html %]">Phone: </label> |
14 |
<li><label for="contact_phone[% contact.id | html %]">Phone: </label> |
15 |
<input type="text" size="20" id="contact_phone[% contact.id | html %]" name="contact_phone" value="[% contact.phone | html %]" /> </li> |
15 |
<input type="tel" size="20" id="contact_phone[% contact.id | html %]" name="contact_phone" value="[% contact.phone | html %]" /> </li> |
16 |
<li><label for="contact_altphone[% contact.id | html %]">Alternative phone: </label> |
16 |
<li><label for="contact_altphone[% contact.id | html %]">Alternative phone: </label> |
17 |
<input type="text" size="20" id="contact_altphone[% contact.id | html %]" name="contact_altphone" value="[% contact.altphone | html %]" /></li> |
17 |
<input type="tel" size="20" id="contact_altphone[% contact.id | html %]" name="contact_altphone" value="[% contact.altphone | html %]" /></li> |
18 |
<li><label for="contact_fax[% contact.id | html %]">Fax: </label> |
18 |
<li><label for="contact_fax[% contact.id | html %]">Fax: </label> |
19 |
<input type="text" size="20" id="contact_fax[% contact.id | html %]" name="contact_fax" value="[% contact.fax | html %]" /></li> |
19 |
<input type="tel" size="20" id="contact_fax[% contact.id | html %]" name="contact_fax" value="[% contact.fax | html %]" /></li> |
20 |
<li><label for="contact_email[% contact.id | html %]">Email: </label> |
20 |
<li><label for="contact_email[% contact.id | html %]">Email: </label> |
21 |
<input type="text" size="40" id="contact_email[% contact.id | html %]" name="contact_email" value="[% contact.email | html %]" class="email" /></li> |
21 |
<input type="email" size="40" id="contact_email[% contact.id | html %]" name="contact_email" value="[% contact.email | html %]" class="email" /></li> |
22 |
<li><label for="contact_notes[% contact.id | html %]">Notes: </label> |
22 |
<li><label for="contact_notes[% contact.id | html %]">Notes: </label> |
23 |
<textarea id="contact_notes[% contact.id | html %]" name="contact_notes" cols="40" rows="4">[% contact.notes | html %]</textarea></li> |
23 |
<textarea id="contact_notes[% contact.id | html %]" name="contact_notes" cols="40" rows="4">[% contact.notes | html %]</textarea></li> |
24 |
</ol> |
24 |
</ol> |
Lines 221-231
div.rows { padding: 1rem; }
Link Here
|
221 |
<li><label for="physical">Physical address: </label> |
221 |
<li><label for="physical">Physical address: </label> |
222 |
<textarea id="physical" name="physical" cols="40" rows="3">[% address1 | html %][% address2 | html %][% address3 | html %][% address4 | html %]</textarea></li> |
222 |
<textarea id="physical" name="physical" cols="40" rows="3">[% address1 | html %][% address2 | html %][% address3 | html %][% address4 | html %]</textarea></li> |
223 |
<li><label for="company_phone">Phone: </label> |
223 |
<li><label for="company_phone">Phone: </label> |
224 |
<input type="text" size="20" id="company_phone" name="company_phone" value="[% phone | html %]" /></li> |
224 |
<input type="tel" size="20" id="company_phone" name="company_phone" value="[% phone | html %]" /></li> |
225 |
<li><label for="company_fax">Fax: </label> |
225 |
<li><label for="company_fax">Fax: </label> |
226 |
<input type="text" size="20" id="company_fax" name="company_fax" value="[% fax | html %]" /></li> |
226 |
<input type="tel" size="20" id="company_fax" name="company_fax" value="[% fax | html %]" /></li> |
227 |
<li><label for="website">Website: </label> |
227 |
<li><label for="website">Website: </label> |
228 |
<input type="text" size="40" id="website" name="website" value="[% url | html %]" class="url" /></li> |
228 |
<input type="url" size="40" id="website" name="website" value="[% url | html %]" class="url" /></li> |
229 |
<li><label for="accountnumber">Account number: </label> |
229 |
<li><label for="accountnumber">Account number: </label> |
230 |
<input type="text" size="40" id="accountnumber" name="accountnumber" value="[% accountnumber | html %]" /></li> |
230 |
<input type="text" size="40" id="accountnumber" name="accountnumber" value="[% accountnumber | html %]" /></li> |
231 |
<li> |
231 |
<li> |
Lines 644-662
div.rows { padding: 1rem; }
Link Here
|
644 |
n.append(`<input type="hidden" name="interface_counter" value="${i}" />`); |
644 |
n.append(`<input type="hidden" name="interface_counter" value="${i}" />`); |
645 |
let ol = $('<ol class="interface-form"></ol>'); |
645 |
let ol = $('<ol class="interface-form"></ol>'); |
646 |
let attributes = [ |
646 |
let attributes = [ |
647 |
{ label: _("Name:"), name: 'name', node: 'input' }, |
647 |
{ label: _("Name:"), name: 'name', type: 'text', node: 'input' }, |
648 |
{ label: _("Type:"), name: 'type', node: 'av_select', av_cat: 'VENDOR_INTERFACE_TYPE' }, |
648 |
{ label: _("Type:"), name: 'type', type: 'select', node: 'av_select', av_cat: 'VENDOR_INTERFACE_TYPE' }, |
649 |
{ label: _("URI:"), name: 'uri', node: 'input' }, |
649 |
{ label: _("URI:"), name: 'uri', type: 'url', node: 'input' }, |
650 |
{ label: _("Login:"), name: 'login', node: 'input' }, |
650 |
{ label: _("Login:"), name: 'login', type: 'text', node: 'input' }, |
651 |
{ label: _("Password:"), name: 'password', node: 'input' }, |
651 |
{ label: _("Password:"), name: 'password', type: 'text', node: 'input' }, |
652 |
{ label: _("Account email:"), name: 'account_email', node: 'input' }, |
652 |
{ label: _("Account email:"), name: 'account_email', type: 'email', node: 'input' }, |
653 |
{ label: _("Notes:"), name: 'notes', node: 'textarea' } |
653 |
{ label: _("Notes:"), name: 'notes', type: 'textarea', node: 'textarea' } |
654 |
]; |
654 |
]; |
655 |
attributes.forEach((attribute, ii) => { |
655 |
attributes.forEach((attribute, ii) => { |
656 |
let li = $('<li></li>'); |
656 |
let li = $('<li></li>'); |
657 |
li.append(`<label for="interface_${attribute.name}_${i}">${attribute.label}</label>`); |
657 |
li.append(`<label for="interface_${attribute.name}_${i}">${attribute.label}</label>`); |
658 |
if( attribute.node == 'input' ) { |
658 |
if( attribute.node == 'input' ) { |
659 |
li.append(`<input type="text" size="40" id="interface_${attribute.name}_${i}" name="interface_${attribute.name}_${i}" value="${interface[attribute.name]}" />`); |
659 |
li.append(`<input type="${attribute.type}" size="40" id="interface_${attribute.name}_${i}" name="interface_${attribute.name}_${i}" value="${interface[attribute.name]}" />`); |
660 |
} else if ( attribute.node == 'textarea' ) { |
660 |
} else if ( attribute.node == 'textarea' ) { |
661 |
li.append(`<textarea cols="40" rows="3" id="interface_${attribute.name}_${i}" name="interface_${attribute.name}_${i}">${interface[attribute.name]}</textarea>`); |
661 |
li.append(`<textarea cols="40" rows="3" id="interface_${attribute.name}_${i}" name="interface_${attribute.name}_${i}">${interface[attribute.name]}</textarea>`); |
662 |
} else if ( attribute.node == 'av_select' ) { |
662 |
} else if ( attribute.node == 'av_select' ) { |
663 |
- |
|
|