winix/winixd/html/fun_priv.html

132 lines
3.2 KiB
HTML

<div class="winix">
[# this template is for following functions: priv, chmod, chown]
<h1>{priv_header}</h1>
[if not [winix_function_param_is "r"]]
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end][winix_function]">
<fieldset>
<legend>{priv_form_legend}</legend>
<table class="withoutborder">
[if priv_show_form_chown]
<tr><th>{user}:</th><td>
<select name="user" class="users">
[for priv_user_tab]
<option[if priv_user_tab_isdefault] selected[end]>[priv_user_tab_name]</option>
[end]
</select>
</td></tr>
<tr><th>{group}: </th><td>
<select name="group" class="groups">
[for priv_group_tab]
<option[if priv_group_tab_isdefault] selected[end]>[priv_group_tab_name]</option>
[end]
</select>
</td></tr>
[end]
[if priv_show_form_chmod]
<tr><th>{permissions}:</th><td><input class="privileges" type="text" name="privileges" value="[priv_privileges]"></td></tr>
[end]
</table>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{change}">
</fieldset>
</form>
[else]
<form id="additem" method="post" action="[doc_base_url][dir][winix_function]/r">
<fieldset>
<legend>{priv_form_legend}</legend>
<p class="withnext">{priv_change_in_dir}: [dir]</p>
<h2>{priv_for_all_files}:</h2>
<table class="withoutborder">
[if priv_show_form_chown]
<tr><th>{user}:</th><td>
<select name="userfile" class="users">
[for priv_user_tab]
<option[if priv_user_tab_isdefault] selected[end]>[priv_user_tab_name]</option>
[end]
</select>
</td></tr>
<tr><th>{group}: </th><td>
<select name="groupfile" class="groups">
[for priv_group_tab]
<option[if priv_group_tab_isdefault] selected[end]>[priv_group_tab_name]</option>
[end]
</select>
</td></tr>
[end]
[if priv_show_form_chmod]
<tr><th>{permissions}:</th><td><input class="privileges" type="text" name="privilegesfile" value="[priv_privileges_for_files]"></td></tr>
[end]
</table>
<h2>{priv_for_all_dirs}:</h2>
<table class="withoutborder">
[if priv_show_form_chown]
<tr><th>{user}:</th><td>
<select name="userdir" class="users">
[for priv_user_tab]
<option[if priv_user_tab_isdefault] selected[end]>[priv_user_tab_name]</option>
[end]
</select>
</td></tr>
<tr><th>{group}: </th><td>
<select name="groupdir" class="groups">
[for priv_group_tab]
<option[if priv_group_tab_isdefault] selected[end]>[priv_group_tab_name]</option>
[end]
</select>
</td></tr>
[end]
[if priv_show_form_chmod]
<tr><th>{permissions}:</th><td><input class="privileges" type="text" name="privilegesdir" value="[priv_privileges_for_dirs]"></td></tr>
[end]
</table>
<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>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{change}">
</fieldset>
</form>
[end]
</div>