Author: adrianc
Date: Sun Dec 30 09:47:34 2007 New Revision: 607565 URL: http://svn.apache.org/viewvc?rev=607565&view=rev Log: Improved Webtools logging screens. Modified: ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.properties ofbiz/trunk/framework/webtools/webapp/webtools/includes/appheader.ftl ofbiz/trunk/framework/webtools/webapp/webtools/log/LogForms.xml ofbiz/trunk/framework/webtools/widget/EntityScreens.xml ofbiz/trunk/framework/webtools/widget/LogScreens.xml ofbiz/trunk/framework/webtools/widget/WebToolsMenus.xml Modified: ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.properties URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.properties?rev=607565&r1=607564&r2=607565&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.properties (original) +++ ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.properties Sun Dec 30 09:47:34 2007 @@ -35,8 +35,8 @@ PageTitleFindUtilCache=Cache Maintenance Page PageTitleFindUtilCacheElements=Cache Element Maintenance Page PageTitleFindJob=Find Job -PageTitleLogConfiguration=Debugging Levels -PageTitleLogView=Log View +PageTitleLogConfiguration=Log Configuration +PageTitleLogView=View Log PageTitleJobList=Job List PageTitleScheduleJob=Schedule Job PageTitleRunService=Run Service @@ -200,8 +200,9 @@ WebtoolsLogFileName=Log File Name WebtoolsLoggerAdditivity=Additivity WebtoolsLoggerLevel=Level -WebtoolsLoggerListFormDescription=This form show all enabled loggers. +WebtoolsLoggerListFormDescription=This form shows all enabled loggers. WebtoolsLoggerName=Name +WebtoolsLogging=Logging WebtoolsMainPage=WebTools Main Page WebtoolsMaintainTimestamps=Maintain Timestamps? WebtoolsMaxMemory=MAX Modified: ofbiz/trunk/framework/webtools/webapp/webtools/includes/appheader.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/includes/appheader.ftl?rev=607565&r1=607564&r2=607565&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/includes/appheader.ftl (original) +++ ofbiz/trunk/framework/webtools/webapp/webtools/includes/appheader.ftl Sun Dec 30 09:47:34 2007 @@ -30,6 +30,7 @@ <li<#if selected == "stats"> class="selected"</#if>><a href="<@ofbizUrl>StatsSinceStart</@ofbizUrl>">${uiLabelMap.WebtoolsStatsSinceServerStart}</a></li> <li<#if selected == "jobs"> class="selected"</#if>><a href="<@ofbizUrl>jobList</@ofbizUrl>">${uiLabelMap.WebtoolsJobList}</a></li> <li<#if selected == "cache"> class="selected"</#if>><a href="<@ofbizUrl>FindUtilCache</@ofbizUrl>">${uiLabelMap.WebtoolsCacheMaintenance}</a></li> + <li<#if selected == "logging"> class="selected"</#if>><a href="<@ofbizUrl>LogView</@ofbizUrl>">${uiLabelMap.WebtoolsLogging}</a></li> <li class="opposed"><a href="<@ofbizUrl>logout</@ofbizUrl>">${uiLabelMap.CommonLogout}</a></li> <#else> <li class="opposed"><a href="<@ofbizUrl>${checkLoginUrl?if_exists}</@ofbizUrl>">${uiLabelMap.CommonLogin}</a></li> Modified: ofbiz/trunk/framework/webtools/webapp/webtools/log/LogForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/log/LogForms.xml?rev=607565&r1=607564&r2=607565&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/log/LogForms.xml (original) +++ ofbiz/trunk/framework/webtools/webapp/webtools/log/LogForms.xml Sun Dec 30 09:47:34 2007 @@ -67,6 +67,6 @@ <field name="additivity" title="${uiLabelMap.WebtoolsLoggerAdditivity}"> <check/> </field> - <field name="rowSubmit" title="${uiLabelMap.CommonUpdate}"><submit/></field> + <field name="submit" title="${uiLabelMap.CommonUpdate}"><submit/></field> </form> </forms> Modified: ofbiz/trunk/framework/webtools/widget/EntityScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/widget/EntityScreens.xml?rev=607565&r1=607564&r2=607565&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/widget/EntityScreens.xml (original) +++ ofbiz/trunk/framework/webtools/widget/EntityScreens.xml Sun Dec 30 09:47:34 2007 @@ -339,15 +339,11 @@ <set field="packagesList" from-field="result.packagesList"/> </actions> <widgets> - <section> - <widgets> - <platform-specific> - <html> - <html-template location="component://webtools/webapp/webtools/entity/EntityRefReport.fo.ftl"/> - </html> - </platform-specific> - </widgets> - </section> + <platform-specific> + <html> + <html-template location="component://webtools/webapp/webtools/entity/EntityRefReport.fo.ftl"/> + </html> + </platform-specific> </widgets> </section> </screen> @@ -431,4 +427,5 @@ </section> </screen> </screens> + Modified: ofbiz/trunk/framework/webtools/widget/LogScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/widget/LogScreens.xml?rev=607565&r1=607564&r2=607565&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/widget/LogScreens.xml (original) +++ ofbiz/trunk/framework/webtools/widget/LogScreens.xml Sun Dec 30 09:47:34 2007 @@ -20,38 +20,63 @@ <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> - <screen name="LogConfiguration"> + <screen name="log-decorator"> + <section> + <actions> + <set field="headerItem" value="logging"/> + </actions> + <widgets> + <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <section> + <condition> + <if-has-permission permission="WEBTOOLS" action="_VIEW"/> + </condition> + <widgets> + <include-menu location="component://webtools/widget/WebToolsMenus.xml" name="LoggingTabBar"/> + <decorator-section-include name="body"/> + </widgets> + <fail-widgets> + <label style="head3">${uiLabelMap.WebtoolsPermissionError}</label> + </fail-widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="LogConfiguration"> <section> <actions> <set field="titleProperty" value="PageTitleLogConfiguration"/> + <set field="logMenuItem" value="logConfiguration"/> <script location="component://webtools/webapp/webtools/WEB-INF/actions/log/LogConfiguration.bsh"/> </actions> <widgets> - <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-screen name="log-decorator"> <decorator-section name="body"> - <container style="boxoutside"> - <container style="boxtop"> - <label style="boxhead">${uiLabelMap.WebtoolsDebuggingLevelFormDescription}</label> + <container style="screenlet"> + <container style="screenlet-title-bar"> + <label style="head3">${uiLabelMap.WebtoolsDebuggingLevelFormDescription}</label> </container> - <container style="boxbottom"> + <container style="screenlet-body"> <include-form name="LevelSwitch" location="component://webtools/webapp/webtools/log/LogForms.xml"/> </container> </container> - <label><br/></label> - <container style="boxoutside"> - <container style="boxtop"> - <label style="boxhead">${uiLabelMap.WebtoolsAddLoggerFormDescription}</label> + <container style="screenlet"> + <container style="screenlet-title-bar"> + <label style="head3">${uiLabelMap.WebtoolsAddLoggerFormDescription}</label> </container> - <container style="boxbottom"> + <container style="screenlet-body"> <include-form name="AddLogger" location="component://webtools/webapp/webtools/log/LogForms.xml"/> </container> </container> - <label><br/></label> - <container style="boxoutside"> - <container style="boxtop"> - <label style="boxhead">${uiLabelMap.WebtoolsLoggerListFormDescription}</label> + <container style="screenlet"> + <container style="screenlet-title-bar"> + <label style="head3">${uiLabelMap.WebtoolsLoggerListFormDescription}</label> </container> - <container style="boxbottom"> + <container> <include-form name="LoggerList" location="component://webtools/webapp/webtools/log/LogForms.xml"/> </container> </container> @@ -60,25 +85,27 @@ </widgets> </section> </screen> + <screen name="LogView"> <section> <actions> <set field="titleProperty" value="PageTitleLogView"/> + <set field="logMenuItem" value="viewLog"/> <!-- TODO: the following command is not really working (and the default value is always used); my guess is that the base/config/debug.properties file is not found in the classpath --> <property-to-field resource="debug" property="log4j.appender.css.File" field="logFileName" default="runtime/logs/ofbiz.html" no-locale="true"/> <script location="component://webtools/webapp/webtools/WEB-INF/actions/log/LogView.bsh"/> </actions> <widgets> - <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-screen name="log-decorator"> <decorator-section name="body"> <container> <label style="head1">${uiLabelMap.WebtoolsViewLog}</label> </container> - <container> + <container style="button-bar"> <link target="LogView" text="${uiLabelMap.CommonRefresh}" style="buttontext"/> </container> - <container> + <container style="button-bar"> <label style="label">${uiLabelMap.WebtoolsLogFileName}:</label> <label>${logFileName}</label> </container> Modified: ofbiz/trunk/framework/webtools/widget/WebToolsMenus.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/widget/WebToolsMenus.xml?rev=607565&r1=607564&r2=607565&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/widget/WebToolsMenus.xml (original) +++ ofbiz/trunk/framework/webtools/widget/WebToolsMenus.xml Sun Dec 30 09:47:34 2007 @@ -54,5 +54,15 @@ </menu-item> </menu> + <menu name="LoggingTabBar" type="simple" menu-container-style="button-bar tab-bar" + default-selected-style="selected" selected-menuitem-context-field-name="logMenuItem"> + <menu-item name="viewLog" title="${uiLabelMap.WebtoolsViewLog}"> + <link target="LogView"/> + </menu-item> + <menu-item name="logConfiguration" title="${uiLabelMap.PageTitleLogConfiguration}"> + <link target="LogConfiguration"/> + </menu-item> + </menu> + </menus> |
Free forum by Nabble | Edit this page |