From fdcefae2642b5cc547a17f6d41f91903b50f8593 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Tue, 26 Jan 2021 15:46:47 +0100 Subject: [PATCH] added uikit markup for priv, chmod, chown winix functions WIP: #2 --- winixd/html/fun_priv.html | 188 ++++++++++++++++++++++++-------------- winixd/locale/en | 1 - winixd/locale/pl | 1 - 3 files changed, 117 insertions(+), 73 deletions(-) diff --git a/winixd/html/fun_priv.html b/winixd/html/fun_priv.html index acf8d58..2dfd171 100644 --- a/winixd/html/fun_priv.html +++ b/winixd/html/fun_priv.html @@ -2,126 +2,172 @@ [# this template is for following functions: priv, chmod, chown] -

{priv_header}

+[if winix_function_param_is "r"] +

{priv_change_in_dir}: [dir]

+[end] [if not [winix_function_param_is "r"]] -
-
- {priv_form_legend} - - + [if priv_show_form_chown] - - - - + +
+ + +
+ +
+
+ +
+ + +
+ +
+
+ [end] [if priv_show_form_chmod] - +
+ + +
+ +
+
[end] -
{user}: - -
{group}: - -
{permissions}:
+ [if winix_function_param_is "postredirect"] [end] - -
+
+ +
+
[else] -
-
- {priv_form_legend} -

{priv_change_in_dir}: [dir]

+ -

{priv_for_all_files}:

- +

{priv_for_all_files}

[if priv_show_form_chown] - +
+ + +
+ +
+
+ - +
+ + +
+ +
+
[end] [if priv_show_form_chmod] - +
+ + +
+ +
+
[end] -
{user}: - -
{group}: - -
{permissions}:
-

{priv_for_all_dirs}:

- +

{priv_for_all_dirs}

[if priv_show_form_chown] - +
+ + +
+ +
+
+ - +
+ + +
+ +
+
[end] [if priv_show_form_chmod] - +
+ + +
+ +
+
[end] - -
{user}: - -
{group}: - -
{permissions}:
- - +
+
+ +
+ +
+ [# !! improve me: for root directory dir_without_slash returns nothing, may would be better to show a slash?] + +
+
[if winix_function_param_is "postredirect"] [end] - +
+ +
-
[end] diff --git a/winixd/locale/en b/winixd/locale/en index af58873..adb28da 100644 --- a/winixd/locale/en +++ b/winixd/locale/en @@ -224,7 +224,6 @@ passwd_password_changed = The password has been changed priv_header = Permissions -priv_form_legend = Permissions priv_change_in_dir = Change permissions for all items in the following directory priv_for_all_files = For all files to priv_for_all_dirs = For all directories to diff --git a/winixd/locale/pl b/winixd/locale/pl index 2d44f0a..80a059b 100644 --- a/winixd/locale/pl +++ b/winixd/locale/pl @@ -247,7 +247,6 @@ passwd_password_changed = Hasło zostało zmienione priv_header = Zmień uprawnienia dostępu -priv_form_legend = Uprawnienia priv_change_in_dir = Zmień hurtowo uprawnienia w katalogu priv_for_all_files = Dla wszystkich plików na priv_for_all_dirs = Dla wszystkich katalogów na