2012-10-17 08:00:00 +02:00
|
|
|
<div class="winix">
|
|
|
|
|
2010-02-16 19:34:41 +01:00
|
|
|
[# this template is for following functions: priv, chmod, chown]
|
|
|
|
|
|
|
|
|
2010-01-28 16:39:01 +01:00
|
|
|
<h1>{priv_header}</h1>
|
|
|
|
|
2010-01-26 20:02:21 +01:00
|
|
|
|
|
|
|
|
2015-03-09 00:22:05 +01:00
|
|
|
[if not [winix_function_param_is "r"]]
|
2010-01-28 16:39:01 +01:00
|
|
|
|
2015-03-09 00:22:05 +01:00
|
|
|
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end][winix_function]">
|
2010-01-26 20:02:21 +01:00
|
|
|
<fieldset>
|
2010-01-28 16:39:01 +01:00
|
|
|
<legend>{priv_form_legend}</legend>
|
|
|
|
|
|
|
|
<table class="withoutborder">
|
2010-02-16 19:34:41 +01:00
|
|
|
|
2015-03-09 00:22:05 +01:00
|
|
|
[if priv_show_form_chown]
|
2010-02-16 19:34:41 +01:00
|
|
|
|
2010-02-16 01:37:00 +01:00
|
|
|
<tr><th>{user}:</th><td>
|
|
|
|
<select name="user" class="users">
|
|
|
|
[for priv_user_tab]
|
2015-03-09 00:22:05 +01:00
|
|
|
<option[if priv_user_tab_isdefault] selected[end]>[priv_user_tab_name]</option>
|
2010-02-16 01:37:00 +01:00
|
|
|
[end]
|
|
|
|
</select>
|
|
|
|
</td></tr>
|
|
|
|
|
|
|
|
<tr><th>{group}: </th><td>
|
|
|
|
<select name="group" class="groups">
|
|
|
|
[for priv_group_tab]
|
2015-03-09 00:22:05 +01:00
|
|
|
<option[if priv_group_tab_isdefault] selected[end]>[priv_group_tab_name]</option>
|
2010-02-16 01:37:00 +01:00
|
|
|
[end]
|
|
|
|
</select>
|
|
|
|
</td></tr>
|
|
|
|
|
2010-02-16 19:34:41 +01:00
|
|
|
[end]
|
|
|
|
|
2015-03-09 00:22:05 +01:00
|
|
|
[if priv_show_form_chmod]
|
2010-02-16 01:37:00 +01:00
|
|
|
<tr><th>{permissions}:</th><td><input class="privileges" type="text" name="privileges" value="[priv_privileges]"></td></tr>
|
2010-02-16 19:34:41 +01:00
|
|
|
[end]
|
|
|
|
|
2010-02-16 01:37:00 +01:00
|
|
|
</table>
|
2012-09-04 22:24:42 +02:00
|
|
|
|
|
|
|
[if winix_function_param_is "postredirect"]
|
|
|
|
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
|
|
|
|
[end]
|
2010-01-28 16:39:01 +01:00
|
|
|
|
2010-02-16 01:37:00 +01:00
|
|
|
<input class="submit" type="submit" value="{change}">
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
[else]
|
|
|
|
|
2010-02-16 19:34:41 +01:00
|
|
|
<form id="additem" method="post" action="[doc_base_url][dir][winix_function]/r">
|
2010-02-16 01:37:00 +01:00
|
|
|
<fieldset>
|
|
|
|
<legend>{priv_form_legend}</legend>
|
|
|
|
<p class="withnext">{priv_change_in_dir}: [dir]</p>
|
2010-01-28 16:39:01 +01:00
|
|
|
|
2010-02-16 01:37:00 +01:00
|
|
|
<h2>{priv_for_all_files}:</h2>
|
|
|
|
<table class="withoutborder">
|
2010-02-16 19:34:41 +01:00
|
|
|
|
2015-03-09 00:22:05 +01:00
|
|
|
[if priv_show_form_chown]
|
2010-02-16 01:37:00 +01:00
|
|
|
<tr><th>{user}:</th><td>
|
|
|
|
<select name="userfile" class="users">
|
|
|
|
[for priv_user_tab]
|
2015-03-09 00:22:05 +01:00
|
|
|
<option[if priv_user_tab_isdefault] selected[end]>[priv_user_tab_name]</option>
|
2010-02-16 01:37:00 +01:00
|
|
|
[end]
|
|
|
|
</select>
|
|
|
|
</td></tr>
|
|
|
|
|
|
|
|
<tr><th>{group}: </th><td>
|
|
|
|
<select name="groupfile" class="groups">
|
|
|
|
[for priv_group_tab]
|
2015-03-09 00:22:05 +01:00
|
|
|
<option[if priv_group_tab_isdefault] selected[end]>[priv_group_tab_name]</option>
|
2010-02-16 01:37:00 +01:00
|
|
|
[end]
|
|
|
|
</select>
|
|
|
|
</td></tr>
|
2010-02-16 19:34:41 +01:00
|
|
|
[end]
|
|
|
|
|
2015-03-09 00:22:05 +01:00
|
|
|
[if priv_show_form_chmod]
|
2010-02-16 01:37:00 +01:00
|
|
|
<tr><th>{permissions}:</th><td><input class="privileges" type="text" name="privilegesfile" value="[priv_privileges_for_files]"></td></tr>
|
2010-02-16 19:34:41 +01:00
|
|
|
[end]
|
|
|
|
|
2010-01-28 16:39:01 +01:00
|
|
|
</table>
|
|
|
|
|
2010-02-16 01:37:00 +01:00
|
|
|
|
|
|
|
<h2>{priv_for_all_dirs}:</h2>
|
|
|
|
<table class="withoutborder">
|
2010-02-16 19:34:41 +01:00
|
|
|
|
2015-03-09 00:22:05 +01:00
|
|
|
[if priv_show_form_chown]
|
2010-02-16 01:37:00 +01:00
|
|
|
<tr><th>{user}:</th><td>
|
|
|
|
<select name="userdir" class="users">
|
|
|
|
[for priv_user_tab]
|
2015-03-09 00:22:05 +01:00
|
|
|
<option[if priv_user_tab_isdefault] selected[end]>[priv_user_tab_name]</option>
|
2010-02-16 01:37:00 +01:00
|
|
|
[end]
|
|
|
|
</select>
|
|
|
|
</td></tr>
|
|
|
|
|
|
|
|
<tr><th>{group}: </th><td>
|
|
|
|
<select name="groupdir" class="groups">
|
|
|
|
[for priv_group_tab]
|
2015-03-09 00:22:05 +01:00
|
|
|
<option[if priv_group_tab_isdefault] selected[end]>[priv_group_tab_name]</option>
|
2010-02-16 01:37:00 +01:00
|
|
|
[end]
|
|
|
|
</select>
|
|
|
|
</td></tr>
|
2010-02-16 19:34:41 +01:00
|
|
|
[end]
|
|
|
|
|
2015-03-09 00:22:05 +01:00
|
|
|
[if priv_show_form_chmod]
|
2010-02-16 01:37:00 +01:00
|
|
|
<tr><th>{permissions}:</th><td><input class="privileges" type="text" name="privilegesdir" value="[priv_privileges_for_dirs]"></td></tr>
|
2010-02-16 19:34:41 +01:00
|
|
|
[end]
|
|
|
|
|
|
|
|
|
2010-02-16 01:37:00 +01:00
|
|
|
</table>
|
|
|
|
|
2010-02-16 19:34:41 +01:00
|
|
|
<label><input class="check" type="checkbox" name="changesubdirs">{priv_change_all}</label>
|
|
|
|
<label><input class="check" type="checkbox" name="changecurrentdir">{priv_change_current_dir}: [dir_without_slash]</label>
|
2010-02-16 01:37:00 +01:00
|
|
|
|
2012-09-04 22:24:42 +02:00
|
|
|
[if winix_function_param_is "postredirect"]
|
|
|
|
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
|
|
|
|
[end]
|
|
|
|
|
2010-01-28 16:39:01 +01:00
|
|
|
<input class="submit" type="submit" value="{change}">
|
2012-09-04 22:24:42 +02:00
|
|
|
|
2010-01-28 16:39:01 +01:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
2010-01-26 20:02:21 +01:00
|
|
|
|
2010-02-16 01:37:00 +01:00
|
|
|
[end]
|
2010-01-26 20:02:21 +01:00
|
|
|
|
|
|
|
|
2012-10-17 08:00:00 +02:00
|
|
|
</div>
|
2010-01-26 20:02:21 +01:00
|
|
|
|