mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
vpn: ipsec: Add description field to pre-shared-keys (#8015)
This commit is contained in:
parent
301052443b
commit
69d6a46810
@ -46,7 +46,7 @@ class PreSharedKeysController extends ApiMutableModelControllerBase
|
||||
*/
|
||||
public function searchItemAction()
|
||||
{
|
||||
return $this->searchBase('preSharedKeys.preSharedKey', ['ident', 'remote_ident', 'keyType']);
|
||||
return $this->searchBase('preSharedKeys.preSharedKey', ['ident', 'remote_ident', 'keyType', 'description']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -21,4 +21,9 @@
|
||||
<label>Type</label>
|
||||
<type>dropdown</type>
|
||||
</field>
|
||||
<field>
|
||||
<id>preSharedKey.description</id>
|
||||
<label>Description</label>
|
||||
<type>text</type>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
@ -146,6 +146,7 @@
|
||||
</OptionValues>
|
||||
</keyType>
|
||||
<Key type="TextField"/>
|
||||
<description type="DescriptionField"/>
|
||||
</preSharedKey>
|
||||
</preSharedKeys>
|
||||
</items>
|
||||
|
||||
@ -20,6 +20,7 @@
|
||||
<th data-column-id="ident" data-type="string">{{ lang._('Local Identifier') }}</th>
|
||||
<th data-column-id="remote_ident" data-type="string">{{ lang._('Remote Identifier') }}</th>
|
||||
<th data-column-id="keyType" data-width="20em" data-type="string">{{ lang._('Key Type') }}</th>
|
||||
<th data-column-id="description" data-type="string">{{ lang._('Description') }}</th>
|
||||
<th data-column-id="commands" data-width="7em" data-formatter="commands" data-sortable="false">{{ lang._('Commands') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user