## This file is subject to the terms and conditions defined in ## file 'LICENSE', which is part of this source code package. ## Copyright (c) 2009 SKR Farms (P) LTD. <%inherit file="/base/basic1.html"/> <%namespace name="elements" file="/component/elements.html"/> <%namespace name="forms" file="/component/forms.html"/> <%! page_tooltips = [ [ 'Help', """All the site-level customization and configuration are done in this page. Even if these configurations where done via the '.ini' file while app-setup, it can be modified here. """ ], [ 'Site-info', """This tab contains read-only information about application deployment.""" ], [ 'Site-config', """This tab contains global configuration fields. Do not edit these fields if you don't know what you are doing. Values entered here are applicable throughout the application""" ], [ 'User-Management', """Users can be assigned site level permissions. These permissions does not control access to project specific resources, instead it provides permission management to site resources like license, guest-wiki etc... To manage permissions for project resources, use the respective project's admin tab. Know more about Zeta's permission management system

Disabling users doesn't allow them to logging into the site. """ ], [ 'Project-Management', """ Enabling and disabling projects doesn't have any effect now. This option is left to address future requirements. """ ], [ 'Permissions', """Application resources are catagorised (like ticket, wiki ...) and governed by their respective permission names. These permission names can be seen in ALL-CAPITALS. To help the administrators in adding and removing permissions, permission grouping feature is provided. Site-admin can add or remove permission names to permission groups. Permission groups should have names in all-small letters. Know more about Zeta's permission management system """ ], ] %> <%def name="hd_script()"> ${parent.hd_script()} <%def name="bd_body()"> <% sp_usernames = c.usernames[:] 'admin' in sp_usernames and sp_usernames.remove('admin') 'anonymous' in sp_usernames and sp_usernames.remove('anonymous') pagebartext = "%s Site-Administration" % c.sitename tline = capture( elements.iconlink, h.url_sitetline, 'timeline', title="Site Timeline" ) %> ${elements.pagebar( pagebartext, rspans=[ tline ], tooltips=page_tooltips )}
% if c.authusername == 'anonymous' or not c.userpanes :
% else :
% endif
${forms.form_systeminfo( c.authuser, c.sysentries, h.suburl_system )}
${forms.form_systemconfig( c.authuser, c.sysentries, h.suburl_system )}
Add permission groups to user :
${forms.form_add_userpermissions( c.authuser, sp_usernames, h.suburl_adduserperms, c.defuserperms[0], c.defuserperms[2] )}
${elements.helpboard( """ Manage site administration permissions for registered users. To know more about the purpose of each permissions visit here """)}

Delete permission groups from user :
${forms.form_del_userpermissions( c.authuser, sp_usernames, h.suburl_deluserperms, c.defuserperms[0], c.defuserperms[1] )}

Enable users :
${forms.form_user_enable( c.authuser, h.suburl_enusers, sorted(c.userstatus['disabled']) )}
${elements.helpboard( """ By Disabling users site-administrators can prevent users from logging into the system. Enabling back, restores the user account """)}

Disable users :
${forms.form_user_disable( c.authuser, h.suburl_disusers, sorted(c.userstatus['enabled']) )}
Enable Projects :
${forms.form_project_enable( c.authuser, h.suburl_enprojects, sorted(c.projectstatus['disabled']) )}
${elements.helpboard( """ Disabling / Enabling project does not have any effect, as of now. Watch support@discoverzeta.com for latest updates. """)}

Disable Projects :
${forms.form_project_disable( c.authuser, h.suburl_disprojects, sorted(c.projectstatus['enabled']) )}
Create permission group :
${forms.form_createpg( c.authuser, c.permnames, h.suburl_createpg)}
${elements.helpboard( """ During installation time and subsequently when user base gets expanded, it might be convenient to logically group permissions and reduce the labour of adding or removing permissions from users / teams. Permission groups are merely a convenience feature. """)}

Update Permission group :
${forms.form_updatepg( c.authuser, h.suburl_updatepg, h.suburl_addpntopg, h.suburl_delpnfrompg )}
${elements.lictable1( c.licenselist, c.liceditable )}
${forms.form_removelic_h( c.authuser, h.suburl_rmlic )}
% if c.authusername != 'anonymous' and c.userpanes :
${elements.user_panes( c.userpanes )}
% endif <%def name="bd_script()"> ${parent.bd_script()}