diff --git a/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Wireguard/wireguard_en.lex b/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Wireguard/wireguard_en.lex index 198537e..73e644c 100644 --- a/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Wireguard/wireguard_en.lex +++ b/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Wireguard/wireguard_en.lex @@ -46,10 +46,10 @@ 'wrg_ERROR_WRONG_ACCT_TYPE' => 'The associated account shoult be a user or admin account.', 'wrg_ERROR_OCCURED' => 'An error occured', 'wrg_CLIENTS_ALREADY_CONFIGURED' => 'You can not alter the server ip, mask, private and public key as there are already some clients configured.', -'wrg_NO_CONF' => 'No configured client', +'wrg_NO_CONF' => 'No configured clients', 'wrg_INTERFACE' => 'Interface', 'wrg_CANCELLED' => 'Operation cancelled', 'wrg_SUCCESSFULLY_MODIFIED_CONF' => 'Client configuration successfully modified', 'wrg_SUCCESSFULLY_REMOVED_CONF' => 'Client successfully removed', 'wrg_SUCCESSFULLY_ADDED_CONF' => 'New client successfully added', -'wrg_SUCCESSFULLY_UPDATED_CONF' => 'Server configuration successfully modified', +'wrg_SUCCESSFULLY_UPDATED_CONF' => 'Server configuration successfully modified', \ No newline at end of file diff --git a/root/usr/share/smanager/themes/default/templates/partials/_wrg_list.html.ep b/root/usr/share/smanager/themes/default/templates/partials/_wrg_list.html.ep index 7ce35f4..6705f09 100644 --- a/root/usr/share/smanager/themes/default/templates/partials/_wrg_list.html.ep +++ b/root/usr/share/smanager/themes/default/templates/partials/_wrg_list.html.ep @@ -1,73 +1,74 @@
<%=l 'wrg_DESC_MAIN_PAGE'%>
<%= l 'wrg_DESC_MAIN_PAGE' %>
<%=l 'wrg_LABEL_CONFIG'%>
<%= l 'wrg_LABEL_CONFIG' %>
- %=l 'wrg_INTERFACE'
- wg0
+ %= l 'wrg_INTERFACE'
+ wg0
- %=l 'wrg_LABEL_STATUS'
-
- %= $wrg_datas->{sstatus}
-
+ %= l 'wrg_LABEL_STATUS'
+
+ %= $wrg_datas->{sstatus}
+
- %=l 'wrg_PUBLIC_KEY'
-
- %= $wrg_datas->{wgpub}
-
+ %= l 'wrg_PUBLIC_KEY'
+
+ %= $wrg_datas->{wgpub}
+
- %=l 'wrg_IP'
-
- %= $wrg_datas->{wgip}.'/'.$wrg_datas->{wgmask}
-
+ %= l 'wrg_IP'
+
+ %= $wrg_datas->{wgip}.'/'.$wrg_datas->{wgmask}
+
- %=l 'wrg_PORT'
-
- %= $wrg_datas->{wgport}
-
+ %= l 'wrg_PORT'
+
+ %= $wrg_datas->{wgport}
+
- %=l 'wrg_PUBLIC_KEY' - | - %=l 'wrg_INFO' - | - %=l 'wrg_ENDPOINT' - | - %=l 'wrg_VPN_IP' - | - %=l 'wrg_LATEST_HANDSHAKE' - | - %=l 'wrg_RECEIVED' - | - %=l 'wrg_SENT' - | - %=l 'wrg_KEEPALIVE' - | -
---|
+ %= l 'wrg_PUBLIC_KEY' + | + %= l 'wrg_INFO' + | + %= l 'wrg_ENDPOINT' + | + %= l 'wrg_VPN_IP' + | + %= l 'wrg_LATEST_HANDSHAKE' + | + %= l 'wrg_RECEIVED' + | + %= l 'wrg_SENT' + | + %= l 'wrg_KEEPALIVE' + | +
---|---|---|---|---|---|---|---|
<%=l 'wrg_LABEL_CLIENTS'%>
- %=l 'wrg_CONF_NAME' - | - %=l 'wrg_USER' - | - %=l 'wrg_INFO' - | - %=l 'wrg_LABEL_STATUS' - | - %=l 'ACTION' - | -||
---|---|---|---|---|---|---|
<%= $c->render_to_string(inline => $action) %> | - % $action = - % "" . l('MODIFY') . ""; -<%= $c->render_to_string(inline => $action) %> | - % $action = - % "" . l('REMOVE') . ""; -<%= $c->render_to_string(inline => $action) %> | -
<%= l 'wrg_LABEL_CLIENTS' %>
+ %= l 'wrg_CONF_NAME' + | + %= l 'wrg_USER' + | + %= l 'wrg_INFO' + | + %= l 'wrg_LABEL_STATUS' + | + %= l 'ACTION' + | +||
---|---|---|---|---|---|---|
<%= $c->render_to_string(inline => $action) %> | + % $action = + % "" . l('MODIFY') . ""; +<%= $c->render_to_string(inline => $action) %> | + % $action = + % "" . l('REMOVE') . ""; +<%= $c->render_to_string(inline => $action) %> | +
- %=l 'wrg_DESC_MODIFY_CLIENT_PAGE' -
-+ %= l 'wrg_DESC_MODIFY_CLIENT_PAGE' +
+- %=l 'wrg_DESC_CONF_NAME' -
++ %= l 'wrg_DESC_CONF_NAME' +
-
- %=l 'wrg_CONF_NAME'
-
- %= $wrg_datas->{wgconf}
-
+ %= l 'wrg_CONF_NAME'
+
+ %= $wrg_datas->{wgconf}
+
- %=l 'wrg_DESC_SELECT_ACCOUNT' -
++ %= l 'wrg_DESC_SELECT_ACCOUNT' +
-
- %=l 'wrg_SELECT_ACCOUNT'
-
- % param 'Account' => $wrg_datas->{account} unless param 'Account';
- %= select_field 'Account' => $c->get_existing_accounts(), class => 'input'
-
+ %= l 'wrg_SELECT_ACCOUNT'
+
+ % param 'Account' => $wrg_datas->{account} unless param 'Account';
+ %= select_field 'Account' => $c->get_existing_accounts(), class => 'input'
+
- %=l 'wrg_DESC_INFO_ACC_WIREGUARD' -
++ %= l 'wrg_DESC_INFO_ACC_WIREGUARD' +
-
- %=l 'wrg_INFO_ACC_WIREGUARD'
-
- % param 'Info' => $wrg_datas->{info} unless param 'Info';
- %=text_field 'Info' => size => '45', class => 'input'
-
- %=l 'wrg_DESC_PRIVATE' -
+
+ %= l 'wrg_INFO_ACC_WIREGUARD'
+
+ % param 'Info' => $wrg_datas->{info} unless param 'Info';
+ %= text_field 'Info' => size => '45', class => 'input'
+
- %=l 'wrg_LABEL_PRIVATE'
-
- % param 'Private' => $wrg_datas->{private} unless param 'Private';
- %=text_field 'Private' => size => '45', class => 'input'
-
- %=l 'wrg_DESC_PUBLIC' -
++ %= l 'wrg_DESC_PRIVATE' +
-
- %=l 'wrg_LABEL_PUBLIC'
-
- % param 'Public' => $wrg_datas->{public} unless param 'Public';
- %=text_field 'Public' => size => '45', class => 'input'
-
- %=l 'wrg_DESC_STATUS' -
+
+ %= l 'wrg_LABEL_PRIVATE'
+
+ % param 'Private' => $wrg_datas->{private} unless param 'Private';
+ %= text_field 'Private' => size => '45', class => 'input'
+
- %=l 'wrg_LABEL_STATUS'
-
- % param 'Status' => $wrg_datas->{status} unless param 'Status';
- %= select_field 'Status' => [[ (l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => 'input'
-
+ %= l 'wrg_DESC_PUBLIC' +
-- %=l 'wrg_DESC_ALLOWEDIPS' -
+
+ %= l 'wrg_LABEL_PUBLIC'
+
+ % param 'Public' => $wrg_datas->{public} unless param 'Public';
+ %= text_field 'Public' => size => '45', class => 'input'
+
- %=l 'wrg_LABEL_ALLOWEDIPS'
-
- % param 'Allowedips' => $wrg_datas->{allowedips} unless param 'Allowedips';
- %=text_field 'Allowedips' => size => '45', class => 'input'
-
+ %= l 'wrg_DESC_STATUS' +
- %= hidden_field 'trt' => $wrg_datas->{trt} - %= hidden_field 'Wgconf' => $wrg_datas->{wgconf} - - % end +
+ %= l 'wrg_LABEL_STATUS'
+
+ % param 'Status' => $wrg_datas->{status} unless param 'Status';
+ %= select_field 'Status' => [[ (l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => 'input'
+
+ %= l 'wrg_DESC_ALLOWEDIPS' +
+ +
+ %= l 'wrg_LABEL_ALLOWEDIPS'
+
+ % param 'Allowedips' => $wrg_datas->{allowedips} unless param 'Allowedips';
+ %= text_field 'Allowedips' => size => '45', class => 'input'
+
- %=l 'wrg_DESC_REMOVE_CLIENT' -
+ %= form_for '/wireguard2' => (method => 'POST') => begin ++ %= l 'wrg_DESC_REMOVE_CLIENT' +
-
- %=l 'wrg_CONF_NAME'
-
- %= $wrg_datas->{account}
-
+ %= l 'wrg_USER' + + %= $wrg_datas->{account} +
-
- %=l 'COMMENT'
-
- %= $wrg_datas->{wgcomment}
-
+ %= l 'wrg_CONF_NAME' + + %= $wrg_datas->{wgconf} + +
-+ %= l 'COMMENT' + + %= $wrg_datas->{wgcomment} + +
+ +