New Styles For Framework applications

Apply the new CSS styles to all the forms into the Framework applications (Example, Example Ext, Webtools) and we will have the same look and feel on the ftl screens and screen widgets
Submitted by Marco Risaliti
See OFBIZ-1619


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@628818 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christian Geisert
2008-02-18 17:09:33 +00:00
parent 966126eea9
commit ba354d8bf2
31 changed files with 884 additions and 709 deletions
+86 -80
View File
@@ -23,85 +23,91 @@ under the License.
<a href="<@ofbizUrl>FindUtilCache</@ofbizUrl>" class="smallSubmit">${uiLabelMap.WebtoolsBackToCacheMaintenance}</a>
</div>
</#macro>
<div class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="head3">${uiLabelMap.PageTitleEditUtilCache}</li>
</ul>
<br class="clear"/>
</div>
<div class="screenlet-body">
<br/>
<@displayButtonBar/>
<h1>${uiLabelMap.PageTitleEditUtilCache}</h1>
<br />
<@displayButtonBar/>
<#if cache?has_content>
<form method="post" action="<@ofbizUrl>EditUtilCacheUpdate?UTIL_CACHE_NAME=${cacheName?if_exists}</@ofbizUrl>">
<table class="basic-table light-grid" cellspacing="0">
<tr>
<td>${uiLabelMap.WebtoolsCacheName}</td>
<td colspan="2">${cache.cacheName?if_exists}</td>
</tr>
<tr class="alternate-row">
<td>${uiLabelMap.WebtoolsSize}</td>
<td colspan="2">${cache.cacheSize?if_exists}</td>
</tr>
<tr>
<td>${uiLabelMap.WebtoolsHits}</td>
<td colspan="2">${cache.hitCount?if_exists}</td>
</tr>
<tr class="alternate-row">
<td>${uiLabelMap.WebtoolsMissesTotal}</td>
<td colspan="2">${cache.missCountTot?if_exists}</td>
</tr>
<tr>
<td>${uiLabelMap.WebtoolsMissesNotFound}</td>
<td colspan="2">${cache.missCountNotFound?if_exists}</td>
</tr>
<tr class="alternate-row">
<td>${uiLabelMap.WebtoolsMissesExpire}</td>
<td colspan="2">${cache.missCountExpired?if_exists}</td>
</tr>
<tr>
<td>${uiLabelMap.WebtoolsMissesSoftReference}</td>
<td colspan="2">${cache.missCountSoftRef?if_exists}</td>
</tr>
<tr class="alternate-row">
<td>${uiLabelMap.WebtoolsRemovesHit}</td>
<td colspan="2">${cache.removeHitCount?if_exists}</td>
</tr>
<tr>
<td>${uiLabelMap.WebtoolsRemovesMisses}</td>
<td colspan="2">${cache.removeMissCount?if_exists}</td>
</tr>
<tr class="alternate-row">
<td>${uiLabelMap.WebtoolsMaxSize}</td>
<td>${cache.maxSize?if_exists}</td>
<td><input type="text" size="15" maxlength="15" name="UTIL_CACHE_MAX_SIZE" value="${cache.maxSize?if_exists}" /></td>
</tr>
<tr>
<td>${uiLabelMap.WebtoolsExpireTime}</td>
<td>${cache.expireTime?if_exists} (${cache.hrs?if_exists}:${cache.mins?if_exists}:${cache.secs?if_exists})</td>
<td><input type="text" size="15" maxlength="15" name="UTIL_CACHE_EXPIRE_TIME" value="${cache.expireTime?if_exists}" /></td>
</tr>
<tr class="alternate-row">
<td>${uiLabelMap.WebtoolsUseSoftRef}</td>
<td>${cache.useSoftReference?if_exists}</td>
<td>
<select name="UTIL_CACHE_USE_SOFT_REFERENCE">
<option value="true" <#if cache.useSoftReference?default('false') == 'true'>selected="selected"</#if>>${uiLabelMap.CommonTrue}</option>
<option value="false" <#if cache.useSoftReference?default('true') == 'false'>selected="selected"</#if>>${uiLabelMap.CommonFalse}</option>
</select>
</td>
</tr>
<tr>
<td>${uiLabelMap.WebtoolsUseFileStore}</td>
<td colspan="2">${cache.useFileSystemStore?if_exists}</td>
</tr>
<tr>
<td colspan="3" align="center">
<input type="submit" value="${uiLabelMap.CommonUpdate}" />
</td>
</tr>
</table>
</form>
<#else>
${uiLabelMap.WebtoolsNoUtilCacheSpecified}
</#if>
<@displayButtonBar/>
<#if cache?has_content>
<form method="post" action="<@ofbizUrl>EditUtilCacheUpdate?UTIL_CACHE_NAME=${cacheName?if_exists}</@ofbizUrl>">
<table class="basic-table" cellspacing="0">
<tr>
<td class="label">${uiLabelMap.WebtoolsCacheName}</td>
<td colspan="2">${cache.cacheName?if_exists}</td>
</tr>
<tr>
<td class="label">${uiLabelMap.WebtoolsSize}</td>
<td colspan="2">${cache.cacheSize?if_exists}</td>
</tr>
<tr>
<td class="label">${uiLabelMap.WebtoolsHits}</td>
<td colspan="2">${cache.hitCount?if_exists}</td>
</tr>
<tr>
<td class="label">${uiLabelMap.WebtoolsMissesTotal}</td>
<td colspan="2">${cache.missCountTot?if_exists}</td>
</tr>
<tr>
<td class="label">${uiLabelMap.WebtoolsMissesNotFound}</td>
<td colspan="2">${cache.missCountNotFound?if_exists}</td>
</tr>
<tr>
<td class="label">${uiLabelMap.WebtoolsMissesExpire}</td>
<td colspan="2">${cache.missCountExpired?if_exists}</td>
</tr>
<tr>
<td class="label">${uiLabelMap.WebtoolsMissesSoftReference}</td>
<td colspan="2">${cache.missCountSoftRef?if_exists}</td>
</tr>
<tr>
<td class="label">${uiLabelMap.WebtoolsRemovesHit}</td>
<td colspan="2">${cache.removeHitCount?if_exists}</td>
</tr>
<tr>
<td class="label">${uiLabelMap.WebtoolsRemovesMisses}</td>
<td colspan="2">${cache.removeMissCount?if_exists}</td>
</tr>
<tr>
<td class="label">${uiLabelMap.WebtoolsMaxSize}</td>
<td>${cache.maxSize?if_exists}</td>
<td><input type="text" size="15" maxlength="15" name="UTIL_CACHE_MAX_SIZE" value="${cache.maxSize?if_exists}"/></td>
</tr>
<tr>
<td class="label">${uiLabelMap.WebtoolsExpireTime}</td>
<td>${cache.expireTime?if_exists} (${cache.hrs?if_exists}:${cache.mins?if_exists}:${cache.secs?if_exists})</td>
<td><input type="text" size="15" maxlength="15" name="UTIL_CACHE_EXPIRE_TIME" value="${cache.expireTime?if_exists}"/></td>
</tr>
<tr>
<td class="label">${uiLabelMap.WebtoolsUseSoftRef}</td>
<td>${cache.useSoftReference?if_exists}</td>
<td>
<select name="UTIL_CACHE_USE_SOFT_REFERENCE">
<option value="true" <#if cache.useSoftReference?default('false') == 'true'>selected="selected"</#if>>${uiLabelMap.CommonTrue}</option>
<option value="false" <#if cache.useSoftReference?default('true') == 'false'>selected="selected"</#if>>${uiLabelMap.CommonFalse}</option>
</select>
</td>
</tr>
<tr>
<td class="label">${uiLabelMap.WebtoolsUseFileStore}</td>
<td colspan="2">${cache.useFileSystemStore?if_exists}</td>
</tr>
<tr>
<td colspan="3" align="center">
<input type="submit" value="${uiLabelMap.CommonUpdate}" />
</td>
</tr>
</table>
</form>
<#else>
${uiLabelMap.WebtoolsNoUtilCacheSpecified}
</#if>
<@displayButtonBar/>
</div>
</div>
+62 -56
View File
@@ -25,63 +25,69 @@ under the License.
<a href="<@ofbizUrl>ForceGarbageCollection</@ofbizUrl>" class="smallSubmit">${uiLabelMap.WebtoolsRunGC}</a>
</div>
</#macro>
<div class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="head3">${uiLabelMap.PageTitleFindUtilCache}</li>
</ul>
<br class="clear"/>
</div>
<div class="screenlet-body">
<br/>
<p>
<u><b>${uiLabelMap.WebtoolsMemory}</b></u>
<b>${uiLabelMap.WebtoolsTotalMemory}</b> ${memory}
<b>${uiLabelMap.WebtoolsFreeMemory}</b> ${freeMemory}
<b>${uiLabelMap.WebtoolsUsedMemory}</b> ${usedMemory}
<b>${uiLabelMap.WebtoolsMaxMemory}</b> ${maxMemory}
</p>
<br/>
<h1>${uiLabelMap.PageTitleFindUtilCache}</h1>
<br />
<@displayButtonBar/>
<p>
<u><b>${uiLabelMap.WebtoolsMemory}:</b></u>
[<b>${uiLabelMap.WebtoolsTotalMemory}:</b> ${memory}]
[<b>${uiLabelMap.WebtoolsFreeMemory}:</b> ${freeMemory}]
[<b>${uiLabelMap.WebtoolsUsedMemory}:</b> ${usedMemory}]
[<b>${uiLabelMap.WebtoolsMaxMemory}:</b> ${maxMemory}]
</p>
<br />
<@displayButtonBar/>
<#if cacheList?has_content>
<table class="basic-table light-grid hover-bar" cellspacing="0">
<tr class="header-row">
<td>${uiLabelMap.WebtoolsCacheName}</td>
<td>${uiLabelMap.WebtoolsSize}</td>
<td>${uiLabelMap.WebtoolsHits}</td>
<td>${uiLabelMap.WebtoolsMisses}</td>
<td>${uiLabelMap.WebtoolsRemoves}</td>
<td>${uiLabelMap.WebtoolsMaxSize}</td>
<td>${uiLabelMap.WebtoolsExpireTime}</td>
<td align="center">${uiLabelMap.WebtoolsUseSoftRef}</td>
<td align="center">${uiLabelMap.WebtoolsUseFileStore}</td>
<td align="center">${uiLabelMap.WebtoolsAdministration}</td>
</tr>
<#assign alt_row = false>
<#list cacheList as cache>
<tr<#if alt_row> class="alternate-row"</#if>>
<td>${cache.cacheName?if_exists}</td>
<td>${cache.cacheSize?if_exists}</td>
<td>${cache.hitCount?if_exists}</td>
<td>${cache.missCountTot?if_exists}/${cache.missCountNotFound?if_exists}/${cache.missCountExpired?if_exists}/${cache.missCountSoftRef?if_exists}</td>
<td>${cache.removeHitCount?if_exists}/${cache.removeMissCount?if_exists}</td>
<td>${cache.maxSize?if_exists}</td>
<td>${cache.expireTime?if_exists}</td>
<td align="center">${cache.useSoftReference?if_exists}</td>
<td align="center">${cache.useFileSystemStore?if_exists}</td>
<td class="button-col">
<a href="<@ofbizUrl>FindUtilCacheElements?UTIL_CACHE_NAME=${cache.cacheName?if_exists}</@ofbizUrl>">${uiLabelMap.WebtoolsElements}</a>
<#if hasUtilCacheEdit>
<a href="<@ofbizUrl>EditUtilCache?UTIL_CACHE_NAME=${cache.cacheName?if_exists}</@ofbizUrl>">${uiLabelMap.CommonEdit}</a>
</#if>
<#if hasUtilCacheEdit>
<a href="<@ofbizUrl>FindUtilCacheClear?UTIL_CACHE_NAME=${cache.cacheName?if_exists}</@ofbizUrl>">${uiLabelMap.CommonClear}</a>
</#if>
</td>
<#if cacheList?has_content>
<table class="basic-table hover-bar" cellspacing="0">
<tr class="header-row">
<td>${uiLabelMap.WebtoolsCacheName}</td>
<td>${uiLabelMap.WebtoolsSize}</td>
<td>${uiLabelMap.WebtoolsHits}</td>
<td>${uiLabelMap.WebtoolsMisses}</td>
<td>${uiLabelMap.WebtoolsRemoves}</td>
<td>${uiLabelMap.WebtoolsMaxSize}</td>
<td>${uiLabelMap.WebtoolsExpireTime}</td>
<td align="center">${uiLabelMap.WebtoolsUseSoftRef}</td>
<td align="center">${uiLabelMap.WebtoolsUseFileStore}</td>
<td align="center">${uiLabelMap.WebtoolsAdministration}</td>
</tr>
<#assign alt_row = !alt_row>
</#list>
</table>
<#else>
${uiLabelMap.WebtoolsNoUtilCacheFound}
</#if>
<@displayButtonBar/>
<#assign alt_row = false>
<#list cacheList as cache>
<tr<#if alt_row> class="alternate-row"</#if>>
<td>${cache.cacheName?if_exists}</td>
<td>${cache.cacheSize?if_exists}</td>
<td>${cache.hitCount?if_exists}</td>
<td>${cache.missCountTot?if_exists}/${cache.missCountNotFound?if_exists}/${cache.missCountExpired?if_exists}/${cache.missCountSoftRef?if_exists}</td>
<td>${cache.removeHitCount?if_exists}/${cache.removeMissCount?if_exists}</td>
<td>${cache.maxSize?if_exists}</td>
<td>${cache.expireTime?if_exists}</td>
<td align="center">${cache.useSoftReference?if_exists}</td>
<td align="center">${cache.useFileSystemStore?if_exists}</td>
<td class="button-col">
<a href="<@ofbizUrl>FindUtilCacheElements?UTIL_CACHE_NAME=${cache.cacheName?if_exists}</@ofbizUrl>">${uiLabelMap.WebtoolsElements}</a>
<#if hasUtilCacheEdit>
<a href="<@ofbizUrl>EditUtilCache?UTIL_CACHE_NAME=${cache.cacheName?if_exists}</@ofbizUrl>">${uiLabelMap.CommonEdit}</a>
</#if>
<#if hasUtilCacheEdit>
<a href="<@ofbizUrl>FindUtilCacheClear?UTIL_CACHE_NAME=${cache.cacheName?if_exists}</@ofbizUrl>">${uiLabelMap.CommonClear}</a>
</#if>
</td>
</tr>
<#assign alt_row = !alt_row>
</#list>
</table>
<#else>
${uiLabelMap.WebtoolsNoUtilCacheFound}
</#if>
<@displayButtonBar/>
</div>
</div>
@@ -23,47 +23,54 @@ under the License.
</div>
</#macro>
<h1>${uiLabelMap.PageTitleFindUtilCacheElements}</h1>
<br />
<div class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="head3">${uiLabelMap.PageTitleFindUtilCacheElements}</li>
</ul>
<br class="clear"/>
</div>
<div class="screenlet-body">
<br/>
<p>
<b>${uiLabelMap.WebtoolsCacheName}</b> ${cacheName?if_exists} (${now})
<b>${uiLabelMap.WebtoolsSizeTotal}</b> ${totalSize} ${uiLabelMap.WebtoolsBytes}
</p>
<br/>
<p>
<b>${uiLabelMap.WebtoolsCacheName}:</b> ${cacheName?if_exists} (${now})
<b>${uiLabelMap.WebtoolsSizeTotal}:</b> ${totalSize} ${uiLabelMap.WebtoolsBytes}
</p>
<br />
<@displayButtonBar/>
<@displayButtonBar/>
<#if cacheName?has_content>
<#if cacheElementsList?has_content>
<table class="basic-table light-grid hover-bar" cellspacing="0">
<tr class="header-row">
<td>${uiLabelMap.WebtoolsCacheElementKey}</td>
<td>${uiLabelMap.WebtoolsExpireTime}</td>
<td>${uiLabelMap.WebtoolsBytes}</td>
<td>&nbsp;</td>
</tr>
<#assign alt_row = false>
<#list cacheElementsList as cacheElement>
<tr<#if alt_row> class="alternate-row"</#if>>
<td>${cacheElement.elementKey?if_exists}</td>
<td nowrap="nowrap">${cacheElement.expireTime?if_exists}</td>
<td>${cacheElement.lineSize?if_exists}</td>
<td class="button-col">
<#if hasUtilCacheEdit>
<a href="<@ofbizUrl>FindUtilCacheElementsRemoveElement?UTIL_CACHE_NAME=${cacheName?if_exists}&UTIL_CACHE_ELEMENT_NUMBER=${cacheElement.keyNum?if_exists}</@ofbizUrl>">${uiLabelMap.CommonRemove}</a>
</#if>
</td>
<#if cacheName?has_content>
<#if cacheElementsList?has_content>
<table class="basic-table hover-bar" cellspacing="0">
<tr class="header-row">
<td>${uiLabelMap.WebtoolsCacheElementKey}</td>
<td>${uiLabelMap.WebtoolsExpireTime}</td>
<td>${uiLabelMap.WebtoolsBytes}</td>
<td>&nbsp;</td>
</tr>
<#assign alt_row = !alt_row>
</#list>
</table>
<#assign alt_row = false>
<#list cacheElementsList as cacheElement>
<tr<#if alt_row> class="alternate-row"</#if>>
<td>${cacheElement.elementKey?if_exists}</td>
<td nowrap="nowrap">${cacheElement.expireTime?if_exists}</td>
<td>${cacheElement.lineSize?if_exists}</td>
<td class="button-col">
<#if hasUtilCacheEdit>
<a href="<@ofbizUrl>FindUtilCacheElementsRemoveElement?UTIL_CACHE_NAME=${cacheName?if_exists}&UTIL_CACHE_ELEMENT_NUMBER=${cacheElement.keyNum?if_exists}</@ofbizUrl>">${uiLabelMap.CommonRemove}</a>
</#if>
</td>
</tr>
<#assign alt_row = !alt_row>
</#list>
</table>
<#else>
${uiLabelMap.WebtoolsNoUtilCacheElementsFound}
</#if>
<#else>
${uiLabelMap.WebtoolsNoUtilCacheElementsFound}
${uiLabelMap.WebtoolsNoUtilCacheSpecified}
</#if>
<#else>
${uiLabelMap.WebtoolsNoUtilCacheSpecified}
</#if>
<@displayButtonBar/>
<@displayButtonBar/>
</div>
</div>