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:
@@ -16,81 +16,99 @@ KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<h1>${uiLabelMap.WebtoolsEntityDataMaintenance}</h1>
|
||||
<br />
|
||||
<p><b>${uiLabelMap.CommonNote}:</b></p>
|
||||
<p>${uiLabelMap.WebtoolsCreate} :- ${uiLabelMap.CommonCreateNew}</p>
|
||||
<p>${uiLabelMap.WebtoolsReln} :- ${uiLabelMap.WebtoolsViewRelations}</p>
|
||||
<p>${uiLabelMap.WebtoolsFind} :- ${uiLabelMap.WebtoolsFindRecord}</p>
|
||||
<p>${uiLabelMap.WebtoolsAll} :- ${uiLabelMap.WebtoolsFindAllRecords}</p>
|
||||
<br />
|
||||
<#assign firstChar = "x">
|
||||
<#assign anchor="">
|
||||
<#assign alt_row = false>
|
||||
<#assign right_col = false>
|
||||
|
||||
<#list entitiesList as entity>
|
||||
<#if entity.entityName?substring(0, 1) != firstChar>
|
||||
<#assign firstChar = entity.entityName?substring(0, 1)>
|
||||
<a href="#Entity_${firstChar}">${firstChar}</a>
|
||||
</#if>
|
||||
</#list>
|
||||
<br/><br/>
|
||||
|
||||
<#assign firstChar = "*">
|
||||
<table class="basic-table light-grid hover-bar" cellspacing='0'>
|
||||
<tr class="header-row">
|
||||
<td>${uiLabelMap.WebtoolsEntityName}</td>
|
||||
<td> </td>
|
||||
<td>${uiLabelMap.WebtoolsEntityName}</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<#list entitiesList as entity>
|
||||
<#if entity.entityName?substring(0, 1) != firstChar>
|
||||
<#if right_col>
|
||||
<td> </td><td> </td></tr>
|
||||
<#assign right_col = false>
|
||||
<#assign alt_row = !alt_row>
|
||||
</#if>
|
||||
<#if firstChar != "*">
|
||||
<tr<#if alt_row> class="alternate-row"</#if>><td colspan="4"> </td></tr>
|
||||
<#assign alt_row = !alt_row>
|
||||
</#if>
|
||||
<#assign firstChar = entity.entityName?substring(0, 1)>
|
||||
<#assign anchor="id=\"Entity_${firstChar}\"">
|
||||
</#if>
|
||||
<#if !right_col>
|
||||
<tr<#if alt_row> class="alternate-row"</#if>>
|
||||
</#if>
|
||||
|
||||
<td<#if anchor?has_content> ${anchor}</#if>>${entity.entityName}<#if entity.viewEntity == 'Y'> (${uiLabelMap.WebtoolsEntityView})</#if></td>
|
||||
<div class="screenlet">
|
||||
<div class="screenlet-title-bar">
|
||||
<ul>
|
||||
<li class="head3">${uiLabelMap.WebtoolsEntityDataMaintenance}</li>
|
||||
</ul>
|
||||
<br class="clear"/>
|
||||
</div>
|
||||
<div class="screenlet-body">
|
||||
<p><b><u>${uiLabelMap.CommonNote}</u></b></p>
|
||||
<p>
|
||||
<b>${uiLabelMap.WebtoolsCreate}</b> = ${uiLabelMap.CommonCreateNew}
|
||||
<b>${uiLabelMap.WebtoolsReln}</b> = ${uiLabelMap.WebtoolsViewRelations}
|
||||
<b>${uiLabelMap.WebtoolsFind}</b> = ${uiLabelMap.WebtoolsFindRecord}
|
||||
<b>${uiLabelMap.WebtoolsAll}</b> = ${uiLabelMap.WebtoolsFindAllRecords}
|
||||
</p>
|
||||
<br />
|
||||
<#assign firstChar = "x">
|
||||
<#assign anchor="">
|
||||
<td class="button-col">
|
||||
<#if entity.viewEntity == 'Y'>
|
||||
<#if entity.entityPermissionView == 'Y'>
|
||||
<a href='<@ofbizUrl>ViewRelations?entityName=${entity.entityName}</@ofbizUrl>'>${uiLabelMap.WebtoolsReln}</a>
|
||||
<a href='<@ofbizUrl>FindGeneric?entityName=${entity.entityName}</@ofbizUrl>'>${uiLabelMap.WebtoolsFind}</a>
|
||||
<a href='<@ofbizUrl>FindGeneric?entityName=${entity.entityName}&find=true&VIEW_SIZE=50&VIEW_INDEX=0</@ofbizUrl>'>${uiLabelMap.WebtoolsAll}</a>
|
||||
<#assign alt_row = false>
|
||||
<#assign right_col = false>
|
||||
|
||||
<#list entitiesList as entity>
|
||||
<#if entity.entityName?substring(0, 1) != firstChar>
|
||||
<#assign firstChar = entity.entityName?substring(0, 1)>
|
||||
<a href="#Entity_${firstChar}">${firstChar}</a>
|
||||
</#if>
|
||||
<#else>
|
||||
<#if entity.entityPermissionCreate == 'Y'>
|
||||
<a href='<@ofbizUrl>ViewGeneric?entityName=${entity.entityName}</@ofbizUrl>'>${uiLabelMap.WebtoolsCreate}</a>
|
||||
</#if>
|
||||
<#if entity.entityPermissionView == 'Y'>
|
||||
<a href='<@ofbizUrl>ViewRelations?entityName=${entity.entityName}</@ofbizUrl>'>${uiLabelMap.WebtoolsReln}</a>
|
||||
<a href='<@ofbizUrl>FindGeneric?entityName=${entity.entityName}</@ofbizUrl>'>${uiLabelMap.WebtoolsFind}</a>
|
||||
<a href='<@ofbizUrl>FindGeneric?entityName=${entity.entityName}&find=true&VIEW_SIZE=50&VIEW_INDEX=0</@ofbizUrl>'>${uiLabelMap.WebtoolsAll}</a>
|
||||
</#if>
|
||||
</#if>
|
||||
</td>
|
||||
<#if right_col>
|
||||
</tr>
|
||||
<#assign alt_row = !alt_row>
|
||||
</#if>
|
||||
<#assign right_col = !right_col>
|
||||
</#list>
|
||||
<#if right_col>
|
||||
<td> </td><td> </td></tr>
|
||||
</#if>
|
||||
</table>
|
||||
</#list>
|
||||
<br/><br/>
|
||||
<div class="screenlet">
|
||||
<div class="screenlet-title-bar">
|
||||
<ul>
|
||||
<li class="head3">${uiLabelMap.WebtoolsEntitiesAlpha}</li>
|
||||
</ul>
|
||||
<br class="clear"/>
|
||||
</div>
|
||||
<div class="screenlet-body">
|
||||
<#assign firstChar = "*">
|
||||
<table class="basic-table hover-bar" cellspacing='0'>
|
||||
<tr class="header-row">
|
||||
<td>${uiLabelMap.WebtoolsEntityName}</td>
|
||||
<td> </td>
|
||||
<td>${uiLabelMap.WebtoolsEntityName}</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<#list entitiesList as entity>
|
||||
<#if entity.entityName?substring(0, 1) != firstChar>
|
||||
<#if right_col>
|
||||
<td> </td><td> </td></tr>
|
||||
<#assign right_col = false>
|
||||
<#assign alt_row = !alt_row>
|
||||
</#if>
|
||||
<#if firstChar != "*">
|
||||
<tr<#if alt_row> class="alternate-row"</#if>><td colspan="4"> </td></tr>
|
||||
<#assign alt_row = !alt_row>
|
||||
</#if>
|
||||
<#assign firstChar = entity.entityName?substring(0, 1)>
|
||||
<#assign anchor="id=\"Entity_${firstChar}\"">
|
||||
</#if>
|
||||
<#if !right_col>
|
||||
<tr<#if alt_row> class="alternate-row"</#if>>
|
||||
</#if>
|
||||
|
||||
<td<#if anchor?has_content> ${anchor}</#if>>${entity.entityName}<#if entity.viewEntity == 'Y'> (${uiLabelMap.WebtoolsEntityView})</#if></td>
|
||||
<#assign anchor="">
|
||||
<td class="button-col">
|
||||
<#if entity.viewEntity == 'Y'>
|
||||
<#if entity.entityPermissionView == 'Y'>
|
||||
<a href='<@ofbizUrl>ViewRelations?entityName=${entity.entityName}</@ofbizUrl>'>${uiLabelMap.WebtoolsReln}</a>
|
||||
<a href='<@ofbizUrl>FindGeneric?entityName=${entity.entityName}</@ofbizUrl>'>${uiLabelMap.WebtoolsFind}</a>
|
||||
<a href='<@ofbizUrl>FindGeneric?entityName=${entity.entityName}&find=true&VIEW_SIZE=50&VIEW_INDEX=0</@ofbizUrl>'>${uiLabelMap.WebtoolsAll}</a>
|
||||
</#if>
|
||||
<#else>
|
||||
<#if entity.entityPermissionCreate == 'Y'>
|
||||
<a href='<@ofbizUrl>ViewGeneric?entityName=${entity.entityName}</@ofbizUrl>'>${uiLabelMap.WebtoolsCreate}</a>
|
||||
</#if>
|
||||
<#if entity.entityPermissionView == 'Y'>
|
||||
<a href='<@ofbizUrl>ViewRelations?entityName=${entity.entityName}</@ofbizUrl>'>${uiLabelMap.WebtoolsReln}</a>
|
||||
<a href='<@ofbizUrl>FindGeneric?entityName=${entity.entityName}</@ofbizUrl>'>${uiLabelMap.WebtoolsFind}</a>
|
||||
<a href='<@ofbizUrl>FindGeneric?entityName=${entity.entityName}&find=true&VIEW_SIZE=50&VIEW_INDEX=0</@ofbizUrl>'>${uiLabelMap.WebtoolsAll}</a>
|
||||
</#if>
|
||||
</#if>
|
||||
</td>
|
||||
<#if right_col>
|
||||
</tr>
|
||||
<#assign alt_row = !alt_row>
|
||||
</#if>
|
||||
<#assign right_col = !right_col>
|
||||
</#list>
|
||||
<#if right_col>
|
||||
<td> </td><td> </td></tr>
|
||||
</#if>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -16,73 +16,86 @@ KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
<h1>${uiLabelMap.WebtoolsSqlProcessor}</h1>
|
||||
<br/>
|
||||
<form method="post" action="EntitySQLProcessor" name="EntitySQLCommand">
|
||||
<table class="basic-table" cellspacing="0">
|
||||
<tr>
|
||||
<td class="label">
|
||||
${uiLabelMap.CommonGroup}
|
||||
</td>
|
||||
<td>
|
||||
<select name="group">
|
||||
<#list groups as group>
|
||||
<option value="${group}" <#if selGroup?exists><#if group = selGroup>selected</#if></#if>>${group}</option>
|
||||
</#list>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">
|
||||
${uiLabelMap.WebtoolsSqlCommand}
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="sqlCommand" cols="100" rows="5">${sqlCommand?if_exists}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">
|
||||
${uiLabelMap.WebtoolsLimitRowsTo}
|
||||
</td>
|
||||
<td>
|
||||
<input name="rowLimit" type="text" size="5" value="${rowLimit?default(200)}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
<input type="submit" name="submitButton" value="${uiLabelMap.CommonSubmit}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<br />
|
||||
<h1>${uiLabelMap.WebtoolsResults}</h1>
|
||||
<br />
|
||||
|
||||
<#if resultMessage?has_content>
|
||||
${resultMessage}
|
||||
<br />
|
||||
</#if>
|
||||
|
||||
<#if columns?has_content>
|
||||
<table class="basic-table dark-grid hover-bar" cellspacing="0">
|
||||
<tr class="header-row">
|
||||
<#list columns as column>
|
||||
<td>${column}</td>
|
||||
</#list>
|
||||
<div class="screenlet">
|
||||
<div class="screenlet-title-bar">
|
||||
<ul>
|
||||
<li class="head3">${uiLabelMap.WebtoolsSqlProcessor}</li>
|
||||
</ul>
|
||||
<br class="clear"/>
|
||||
</div>
|
||||
<div class="screenlet-body">
|
||||
<form method="post" action="EntitySQLProcessor" name="EntitySQLCommand">
|
||||
<table class="basic-table" cellspacing="0">
|
||||
<tr>
|
||||
<td class="label">
|
||||
${uiLabelMap.CommonGroup}
|
||||
</td>
|
||||
<td>
|
||||
<select name="group">
|
||||
<#list groups as group>
|
||||
<option value="${group}" <#if selGroup?exists><#if group = selGroup>selected</#if></#if>>${group}</option>
|
||||
</#list>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<#if records?has_content>
|
||||
<#assign alt_row = false>
|
||||
<#list records as record>
|
||||
<tr <#if alt_row> class="alternate-row"</#if> >
|
||||
<#list record as field>
|
||||
<td>${field?if_exists}</td>
|
||||
<tr>
|
||||
<td class="label">
|
||||
${uiLabelMap.WebtoolsSqlCommand}
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="sqlCommand" cols="100" rows="5">${sqlCommand?if_exists}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">
|
||||
${uiLabelMap.WebtoolsLimitRowsTo}
|
||||
</td>
|
||||
<td>
|
||||
<input name="rowLimit" type="text" size="5" value="${rowLimit?default(200)}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
<input type="submit" name="submitButton" value="${uiLabelMap.CommonSubmit}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="screenlet">
|
||||
<div class="screenlet-title-bar">
|
||||
<ul>
|
||||
<li class="head3">${uiLabelMap.WebtoolsResults}</li>
|
||||
</ul>
|
||||
<br class="clear"/>
|
||||
</div>
|
||||
<div class="screenlet-body">
|
||||
<#if resultMessage?has_content>
|
||||
${resultMessage}
|
||||
<br />
|
||||
</#if>
|
||||
|
||||
<#if columns?has_content>
|
||||
<table class="basic-table hover-bar" cellspacing="0">
|
||||
<tr class="header-row">
|
||||
<#list columns as column>
|
||||
<td>${column}</td>
|
||||
</#list>
|
||||
</tr>
|
||||
<#assign alt_row = !alt_row>
|
||||
</#list>
|
||||
</#if>
|
||||
</table>
|
||||
</#if>
|
||||
<#if records?has_content>
|
||||
<#assign alt_row = false>
|
||||
<#list records as record>
|
||||
<tr <#if alt_row> class="alternate-row"</#if> >
|
||||
<#list record as field>
|
||||
<td>${field?if_exists}</td>
|
||||
</#list>
|
||||
</tr>
|
||||
<#assign alt_row = !alt_row>
|
||||
</#list>
|
||||
</#if>
|
||||
</table>
|
||||
</#if>
|
||||
</div>
|
||||
</div>
|
||||
@@ -16,39 +16,48 @@ KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
<#if hasViewPermission>
|
||||
<h1>${uiLabelMap.WebtoolsRelations}</h1>
|
||||
<br />
|
||||
<h2>${uiLabelMap.WebtoolsForEntity}: ${entityName}</h2>
|
||||
<br />
|
||||
<div class="button-bar">
|
||||
<a href="<@ofbizUrl>FindGeneric?entityName=${entityName}&find=true&VIEW_SIZE=50&VIEW_INDEX=0</@ofbizUrl>" class="smallSubmit">${uiLabelMap.WebtoolsBackToFindScreen}</a>
|
||||
</div>
|
||||
<br />
|
||||
<table class="basic-table light-grid hover-bar" cellspacing="0">
|
||||
<tr class="header-row">
|
||||
<td>${uiLabelMap.WebtoolsTitle}</td>
|
||||
<td>${uiLabelMap.WebtoolsRelatedEntity}</td>
|
||||
<td>${uiLabelMap.WebtoolsRelationType}</td>
|
||||
<td>${uiLabelMap.WebtoolsFKName}</td>
|
||||
<td>${uiLabelMap.WebtoolsFieldsList}</td>
|
||||
</tr>
|
||||
<#assign alt_row = false>
|
||||
<#list relations as relation>
|
||||
<tr<#if alt_row> class="alternate-row"</#if>>
|
||||
<td>${relation.title}</td>
|
||||
<td class="button-col"><a href='<@ofbizUrl>FindGeneric?entityName=${relation.relEntityName}&find=true&VIEW_SIZE=50&VIEW_INDEX=0</@ofbizUrl>'>${relation.relEntityName}</a></td>
|
||||
<td>${relation.type}</td>
|
||||
<td>${relation.fkName}</td>
|
||||
<td>
|
||||
<#list relation.relFields as field>
|
||||
${field.fieldName} -> ${field.relFieldName}<br/>
|
||||
</#list>
|
||||
</td>
|
||||
<div class="screenlet">
|
||||
<div class="screenlet-title-bar">
|
||||
<ul>
|
||||
<li class="head3">${uiLabelMap.WebtoolsRelations}</li>
|
||||
</ul>
|
||||
<br class="clear"/>
|
||||
</div>
|
||||
<div class="screenlet-body">
|
||||
<#if hasViewPermission>
|
||||
<br/>
|
||||
<h2>${uiLabelMap.WebtoolsForEntity}: ${entityName}</h2>
|
||||
<br/>
|
||||
<div class="button-bar">
|
||||
<a href="<@ofbizUrl>FindGeneric?entityName=${entityName}&find=true&VIEW_SIZE=50&VIEW_INDEX=0</@ofbizUrl>" class="smallSubmit">${uiLabelMap.WebtoolsBackToFindScreen}</a>
|
||||
</div>
|
||||
<br/>
|
||||
<table class="basic-table hover-bar" cellspacing="0">
|
||||
<tr class="header-row">
|
||||
<td>${uiLabelMap.WebtoolsTitle}</td>
|
||||
<td>${uiLabelMap.WebtoolsRelatedEntity}</td>
|
||||
<td>${uiLabelMap.WebtoolsRelationType}</td>
|
||||
<td>${uiLabelMap.WebtoolsFKName}</td>
|
||||
<td>${uiLabelMap.WebtoolsFieldsList}</td>
|
||||
</tr>
|
||||
<#assign alt_row = !alt_row>
|
||||
</#list>
|
||||
</table>
|
||||
<#else>
|
||||
<h3>${uiLabelMap.WebtoolsMesseage17} ${entityName} ${plainTableName} ${uiLabelMap.WebtoolsMesseage18}.</h3>
|
||||
</#if>
|
||||
<#assign alt_row = false>
|
||||
<#list relations as relation>
|
||||
<tr<#if alt_row> class="alternate-row"</#if>>
|
||||
<td>${relation.title}</td>
|
||||
<td class="button-col"><a href='<@ofbizUrl>FindGeneric?entityName=${relation.relEntityName}&find=true&VIEW_SIZE=50&VIEW_INDEX=0</@ofbizUrl>'>${relation.relEntityName}</a></td>
|
||||
<td>${relation.type}</td>
|
||||
<td>${relation.fkName}</td>
|
||||
<td>
|
||||
<#list relation.relFields as field>
|
||||
${field.fieldName} -> ${field.relFieldName}<br/>
|
||||
</#list>
|
||||
</td>
|
||||
</tr>
|
||||
<#assign alt_row = !alt_row>
|
||||
</#list>
|
||||
</table>
|
||||
<#else>
|
||||
<h3>${uiLabelMap.WebtoolsMesseage17} ${entityName} ${plainTableName} ${uiLabelMap.WebtoolsMesseage18}.</h3>
|
||||
</#if>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user