git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050936 13f79535-47bb-0310-9956-ffa450edef68
293 lines
15 KiB
XML
293 lines
15 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
|
|
|
<screen name="CreateUserLogin">
|
|
<section>
|
|
<actions>
|
|
</actions>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.CreateUserLogin}">
|
|
<include-form name="AddUserLogin" location="component://common/widget/SecurityForms.xml"/>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditUserLogin">
|
|
<section>
|
|
<actions>
|
|
<set field="userLoginId" from-field="parameters.userLoginId"/>
|
|
<entity-one entity-name="UserLogin" value-field="editUserLogin"/>
|
|
</actions>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.UserLoginChangePassword}">
|
|
<include-form name="updatePassword" location="component://common/widget/SecurityForms.xml"/>
|
|
</screenlet>
|
|
<screenlet title="${uiLabelMap.UserLoginUpdateSecuritySettings}">
|
|
<include-form name="updateUserLoginSecurity" location="component://common/widget/SecurityForms.xml"/>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditSecurityGroup">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditSecurityGroup"/>
|
|
<set field="tabButtonItem" value="EditSecurityGroup"/>
|
|
<set field="groupId" from-field="parameters.groupId"/>
|
|
<entity-one entity-name="SecurityGroup" value-field="securityGroup"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="SecurityGroupDecorator" location="${parameters.securityGroupDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.PageTitleEditSecurityGroup}">
|
|
<include-form name="EditSecurityGroup" location="component://common/widget/SecurityForms.xml"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditSecurityGroupPermissions">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditSecurityGroupPermissions"/>
|
|
<set field="tabButtonItem" value="EditSecurityGroupPermissions"/>
|
|
<set field="groupId" from-field="parameters.groupId"/>
|
|
<entity-one entity-name="SecurityGroup" value-field="securityGroup"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="SecurityGroupDecorator" location="${parameters.securityGroupDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.PageTitleEditSecurityGroupPermissions}">
|
|
<include-form name="ListSecurityGroupPermissions" location="component://common/widget/SecurityForms.xml"/>
|
|
</screenlet>
|
|
<screenlet title="${uiLabelMap.AddPermissionToSecurityGroup}">
|
|
<include-form name="AddSecurityGroupPermission" location="component://common/widget/SecurityForms.xml"/>
|
|
</screenlet>
|
|
<screenlet title="${uiLabelMap.AddPermissionManuallyToSecurityGroup}">
|
|
<include-form name="AddSecurityGroupPermissionManual" location="component://common/widget/SecurityForms.xml"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditSecurityGroupProtectedViews">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="AddProtectedViewToSecurityGroup"/>
|
|
<set field="tabButtonItem" value="EditSecurityGroupProtectedViews"/>
|
|
<set field="groupId" from-field="parameters.groupId"/>
|
|
<entity-one entity-name="SecurityGroup" value-field="securityGroup"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="SecurityGroupDecorator" location="${parameters.securityGroupDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet id="AddSecurityGroupProtectedViewsPanel" title="${uiLabelMap.AddProtectedViewToSecurityGroup}" collapsible="true">
|
|
<include-form name="AddSecurityGroupProtectedView" location="component://common/widget/SecurityForms.xml"/>
|
|
</screenlet>
|
|
<include-form name="ListSecurityGroupProtectedViews" location="component://common/widget/SecurityForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditSecurityGroupUserLogins">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="AddUserLoginToSecurityGroup"/>
|
|
<set field="tabButtonItem" value="EditSecurityGroupUserLogins"/>
|
|
<set field="groupId" from-field="parameters.groupId"/>
|
|
<entity-one entity-name="SecurityGroup" value-field="securityGroup"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="SecurityGroupDecorator" location="${parameters.securityGroupDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet id="AddSecurityGroupUserLoginsPanel" title="${uiLabelMap.AddUserLoginToSecurityGroup}" collapsible="true">
|
|
<include-form name="AddSecurityGroupUserLogin" location="component://common/widget/SecurityForms.xml"/>
|
|
</screenlet>
|
|
<include-form name="ListSecurityGroupUserLogins" location="component://common/widget/SecurityForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditX509IssuerProvisions">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditIssuerProvisions"/>
|
|
<set field="headerItem" value="security"/>
|
|
<set field="tabButtonItem" value="EditX509IssuerProvisions"/>
|
|
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
|
|
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="SECURITY" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.PageTitleEditIssuerProvisions}">
|
|
<container style="button-bar">
|
|
<link target="EditSecurityGroup" style="buttontext create" text="${uiLabelMap.NewSecurityGroup}"/>
|
|
<link target="EditCertIssuerProvisions" style="buttontext" text="${uiLabelMap.CertIssuers}"/>
|
|
</container>
|
|
<container>
|
|
<include-form name="CertIssuerList" location="component://common/widget/SecurityForms.xml"/>
|
|
</container>
|
|
</screenlet>
|
|
<screenlet title="${uiLabelMap.PageTitleAddIssuerProvisions}">
|
|
<include-form name="ViewCertificate" location="component://common/widget/SecurityForms.xml"/>
|
|
</screenlet>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.SecurityViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="FindSecurityGroup">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleFindSecurityGroup"/>
|
|
<set field="headerItem" value="security"/>
|
|
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
|
|
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="SECURITY" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.SecurityGroupsList}">
|
|
<container style="button-bar">
|
|
<link target="EditSecurityGroup" style="textbutton create" text="${uiLabelMap.NewSecurityGroup}"/>
|
|
<link target="EditCertIssuerProvisions" style="textbutton" text="${uiLabelMap.CertIssuers}"/>
|
|
</container>
|
|
<include-form name="ListSecurityGroups" location="component://common/widget/SecurityForms.xml"/>
|
|
</screenlet>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.SecurityViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="SecurityGroupDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="security"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="pre-body">
|
|
<section>
|
|
<condition>
|
|
<and>
|
|
<if-has-permission permission="SECURITY" action="_VIEW"/>
|
|
<not><if-empty field="groupId"/></not>
|
|
</and>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu name="SecurityGroupTabBar" location="component://common/widget/SecurityMenus.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="SECURITY" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<container>
|
|
<label style="h1" text="${uiLabelMap[labelTitleProperty]} [${groupId}]"/>
|
|
</container>
|
|
<container style="button-bar">
|
|
<link target="EditSecurityGroup" style="buttontext create" text="${uiLabelMap.NewSecurityGroup}"/>
|
|
<link target="EditCertIssuerProvisions" style="buttontext" text="${uiLabelMap.CertIssuers}"/>
|
|
</container>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.SecurityViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="ViewCertificate">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleImportCertificate"/>
|
|
<set field="headerItem" value="security"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="SECURITY" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<container style="widget-container">
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://common/webcommon/includes/ViewCertificate.ftl"/>
|
|
</html>
|
|
</platform-specific>
|
|
</container>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.SecurityViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
</screens>
|