Author: chrisg
Date: Tue Feb 19 08:58:07 2008 New Revision: 629162 URL: http://svn.apache.org/viewvc?rev=629162&view=rev Log: New Styles For Framework applications Apply the new CSS styles to all the forms into the Framework applications Submitted by Marco Risaliti See OFBIZ-1619 Modified: ofbiz/trunk/framework/webtools/webapp/webtools/entity/FindGeneric.ftl ofbiz/trunk/framework/webtools/webapp/webtools/entity/ViewGeneric.ftl Modified: ofbiz/trunk/framework/webtools/webapp/webtools/entity/FindGeneric.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/entity/FindGeneric.ftl?rev=629162&r1=629161&r2=629162&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/entity/FindGeneric.ftl (original) +++ ofbiz/trunk/framework/webtools/webapp/webtools/entity/FindGeneric.ftl Tue Feb 19 08:58:07 2008 @@ -16,118 +16,143 @@ specific language governing permissions and limitations under the License. --> - -<h1>${uiLabelMap.WebtoolsFindValues}</h1> -<br /> -<h2>${uiLabelMap.WebtoolsForEntity}: ${entityName}</h2> -<br /> -<div class="button-bar"> - <a href="<@ofbizUrl>entitymaint</@ofbizUrl>" class="smallSubmit">${uiLabelMap.WebtoolsBackToEntityList}</a> - <a href="<@ofbizUrl>ViewRelations?entityName=${entityName}</@ofbizUrl>" class="smallSubmit">${uiLabelMap.WebtoolsViewRelations}</a> - <a href="<@ofbizUrl>FindGeneric?entityName=${entityName}&find=true&VIEW_SIZE=50&VIEW_INDEX=0</@ofbizUrl>" class="smallSubmit">${uiLabelMap.CommonFind} ${uiLabelMap.CommonAll}</a> - <#if hasCreatePermission == 'Y'> - <a href="<@ofbizUrl>ViewGeneric?entityName=${entityName}</@ofbizUrl>" class="smallSubmit">${uiLabelMap.CommonCreateNew} ${entityName}</a> - </#if> -</div> -<br /> -<p>${uiLabelMap.WebtoolsToFindAll} ${entityName}, ${uiLabelMap.WebtoolsLeaveAllEntriesBlank}.</p> -<form method="post" action="<@ofbizUrl>FindGeneric?entityName=${entityName}</@ofbizUrl>"> - <input type="hidden" name="find" value="true"> - <table class="basic-table light-grid" cellspacing="0"> - <tr class="header-row"> - <td>${uiLabelMap.WebtoolsFieldName}</td> - <td>${uiLabelMap.WebtoolsPk}</td> - <td>${uiLabelMap.WebtoolsFieldType}</td> - <td><input type="submit" value="${uiLabelMap.CommonFind}"></td> - </tr> - <#assign alt_row = false> - <#list fieldList as field> - <tr<#if alt_row> class="alternate-row"</#if>> - <td>${field.name}</td> - <td><#if field.isPk == 'Y'>*</#if></td> - <td>${field.javaType}, ${field.sqlType}</td> - <td><input type="text" name="${field.name}" value="${field.param}" size="40"></td> - </tr> - <#assign alt_row = !alt_row> - </#list> - <tr> - <td colspan="3"> </td> - <td><input type="submit" value="${uiLabelMap.CommonFind}"></td> - </tr> - </table> -</form> -<br /> - -<#if hasCreatePermission == 'Y'> +<div class="screenlet"> + <div class="screenlet-title-bar"> + <ul> + <li class="head3">${uiLabelMap.WebtoolsFindValues}</li> + </ul> + <br class="clear"/> + </div> + <div class="screenlet-body"> + <h2>${uiLabelMap.WebtoolsForEntity}: ${entityName}</h2> + <br/> <div class="button-bar"> - <a href='<@ofbizUrl>ViewGeneric?entityName=${entityName}</@ofbizUrl>' class="smallSubmit">${uiLabelMap.CommonCreateNew} ${entityName}</a> + <a href="<@ofbizUrl>entitymaint</@ofbizUrl>" class="smallSubmit">${uiLabelMap.WebtoolsBackToEntityList}</a> + <a href="<@ofbizUrl>ViewRelations?entityName=${entityName}</@ofbizUrl>" class="smallSubmit">${uiLabelMap.WebtoolsViewRelations}</a> + <a href="<@ofbizUrl>FindGeneric?entityName=${entityName}&find=true&VIEW_SIZE=50&VIEW_INDEX=0</@ofbizUrl>" class="smallSubmit">${uiLabelMap.CommonFind} ${uiLabelMap.CommonAll}</a> + <#if hasCreatePermission == 'Y'> + <a href="<@ofbizUrl>ViewGeneric?entityName=${entityName}</@ofbizUrl>" class="smallSubmit">${uiLabelMap.CommonCreateNew} ${entityName}</a> + </#if> </div> -</#if> - -<#macro tableNav> - <div class="button-bar"> + <br/> + <div class="screenlet"> + <div class="screenlet-title-bar"> <ul> - <#if (viewIndex > 0)> - <li><a href='<@ofbizUrl>FindGeneric?${curFindString}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexFirst}</@ofbizUrl>' class="nav-next">${uiLabelMap.CommonFirst}</a></li> - <li>|</li> - <li><a href='<@ofbizUrl>FindGeneric?${curFindString}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexPrevious}</@ofbizUrl>' class="nav-previous">${uiLabelMap.CommonPrevious}</a></li> - <li>|</li> - </#if> - <#if (arraySize > 0)> - <li>${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${arraySize}</li> - </#if> - <#if (arraySize > highIndex)> - <li>|</li> - <li><a href='<@ofbizUrl>FindGeneric?${curFindString}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexNext}</@ofbizUrl>' class="nav-next">${uiLabelMap.CommonNext}</a></li> - <li>|</li> - <li><a href='<@ofbizUrl>FindGeneric?${curFindString}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexLast}</@ofbizUrl>' class="nav-next">${uiLabelMap.CommonLast}</a></li> - </#if> + <li class="head3">${uiLabelMap.WebtoolsToFindAll} ${entityName}, ${uiLabelMap.WebtoolsLeaveAllEntriesBlank}.</li> </ul> <br class="clear"/> + </div> + <div class="screenlet-body"> + <form method="post" action="<@ofbizUrl>FindGeneric?entityName=${entityName}</@ofbizUrl>"> + <input type="hidden" name="find" value="true"> + <table class="basic-table hover-bar" cellspacing="0"> + <tr class="header-row"> + <td>${uiLabelMap.WebtoolsFieldName}</td> + <td>${uiLabelMap.WebtoolsPk}</td> + <td>${uiLabelMap.WebtoolsFieldType}</td> + <td><input type="submit" value="${uiLabelMap.CommonFind}"></td> + </tr> + <#assign alt_row = false> + <#list fieldList as field> + <tr<#if alt_row> class="alternate-row"</#if>> + <td>${field.name}</td> + <td><#if field.isPk == 'Y'>*</#if></td> + <td>${field.javaType}, ${field.sqlType}</td> + <td><input type="text" name="${field.name}" value="${field.param}" size="40"></td> + </tr> + <#assign alt_row = !alt_row> + </#list> + <tr> + <td colspan="3"> </td> + <td><input type="submit" value="${uiLabelMap.CommonFind}"></td> + </tr> + </table> + </form> + <br/> + + <#if hasCreatePermission == 'Y'> + <div class="button-bar"> + <a href='<@ofbizUrl>ViewGeneric?entityName=${entityName}</@ofbizUrl>' class="smallSubmit">${uiLabelMap.CommonCreateNew} ${entityName}</a> + </div> + </#if> + + <#macro tableNav> + <div class="button-bar"> + <ul> + <#if (viewIndex > 0)> + <li><a href='<@ofbizUrl>FindGeneric?${curFindString}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexFirst}</@ofbizUrl>' class="nav-next">${uiLabelMap.CommonFirst}</a></li> + <li>|</li> + <li><a href='<@ofbizUrl>FindGeneric?${curFindString}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexPrevious}</@ofbizUrl>' class="nav-previous">${uiLabelMap.CommonPrevious}</a></li> + <li>|</li> + </#if> + <#if (arraySize > 0)> + <li>${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${arraySize}</li> + </#if> + <#if (arraySize > highIndex)> + <li>|</li> + <li><a href='<@ofbizUrl>FindGeneric?${curFindString}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexNext}</@ofbizUrl>' class="nav-next">${uiLabelMap.CommonNext}</a></li> + <li>|</li> + <li><a href='<@ofbizUrl>FindGeneric?${curFindString}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexLast}</@ofbizUrl>' class="nav-next">${uiLabelMap.CommonLast}</a></li> + </#if> + </ul> + <br class="clear"/> + </div> + </#macro> + <#if (arraySize > 0)> + <@tableNav/> + </#if> + </div> </div> -</#macro> -<#if (arraySize > 0)> - <@tableNav/> -</#if> - -<table class="basic-table light-grid hover-bar" cellspacing="0"> - <tr class="header-row"> - <td> </td> - <#list fieldList as field> - <td>${field.name}</td> - </#list> - </tr> - <#if resultPartialList?has_content> - <#assign alt_row = false> - <#list records as record> - <tr<#if alt_row> class="alternate-row"</#if>> - <td class="button-col"> - <a href='<@ofbizUrl>ViewGeneric?${record.findString}</@ofbizUrl>'>${uiLabelMap.CommonView}</a> - <#if hasDeletePermission == 'Y'> - <a href='<@ofbizUrl>UpdateGeneric?${record.findString}&UPDATE_MODE=DELETE</@ofbizUrl>'>${uiLabelMap.CommonDelete}</a> - </#if> - </td> + <div class="screenlet"> + <div class="screenlet-title-bar"> + <ul> + <li class="head3">${uiLabelMap.WebtoolsFindValuesResults}</li> + </ul> + <br class="clear"/> + </div> + <div class="screenlet-body"> + <table class="basic-table hover-bar" cellspacing="0"> + <tr class="header-row"> + <td> </td> <#list fieldList as field> - <td>${record.fields.get(field.name)?if_exists?string}</td> + <td>${field.name}</td> </#list> </tr> - <#assign alt_row = !alt_row> - </#list> - <#else> - <tr> - <td colspan="${columnCount}"> - <h2>${uiLabelMap.WebtoolsNoRecordsFound} ${entityName}.</h2> - </td> - </tr> - </#if> -</table> - -<#if (arraySize > 0)> - <@tableNav/> -</#if> - -<#if hasCreatePermission == 'Y'> - <a href='<@ofbizUrl>ViewGeneric?entityName=${entityName}</@ofbizUrl>' class="smallSubmit">${uiLabelMap.CommonCreateNew} ${entityName}</a> -<#else> - <h2>${uiLabelMap.WebtoolsMesseage17} ${entityName} ${plainTableName} ${uiLabelMap.WebtoolsMesseage18}.</h2> -</#if> + <#if resultPartialList?has_content> + <#assign alt_row = false> + <#list records as record> + <tr<#if alt_row> class="alternate-row"</#if>> + <td class="button-col"> + <a href='<@ofbizUrl>ViewGeneric?${record.findString}</@ofbizUrl>'>${uiLabelMap.CommonView}</a> + <#if hasDeletePermission == 'Y'> + <a href='<@ofbizUrl>UpdateGeneric?${record.findString}&UPDATE_MODE=DELETE</@ofbizUrl>'>${uiLabelMap.CommonDelete}</a> + </#if> + </td> + <#list fieldList as field> + <td>${record.fields.get(field.name)?if_exists?string}</td> + </#list> + </tr> + <#assign alt_row = !alt_row> + </#list> + <#else> + <tr> + <td colspan="${columnCount}"> + <h2>${uiLabelMap.WebtoolsNoRecordsFound} ${entityName}.</h2> + </td> + </tr> + </#if> + </table> + + <#if (arraySize > 0)> + <@tableNav/> + </#if> + + <#if hasCreatePermission == 'Y'> + <a href='<@ofbizUrl>ViewGeneric?entityName=${entityName}</@ofbizUrl>' class="smallSubmit">${uiLabelMap.CommonCreateNew} ${entityName}</a> + <#else> + <h2>${uiLabelMap.WebtoolsMesseage17} ${entityName} ${plainTableName} ${uiLabelMap.WebtoolsMesseage18}.</h2> + </#if> + </div> + </div> + </div> +</div> \ No newline at end of file Modified: ofbiz/trunk/framework/webtools/webapp/webtools/entity/ViewGeneric.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/entity/ViewGeneric.ftl?rev=629162&r1=629161&r2=629162&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/entity/ViewGeneric.ftl (original) +++ ofbiz/trunk/framework/webtools/webapp/webtools/entity/ViewGeneric.ftl Tue Feb 19 08:58:07 2008 @@ -20,8 +20,6 @@ <#assign enableEdit = parameters.enableEdit?default("false")> <style> - .topouter { overflow: visible; border-style: none; } - .topcontainer { POSITION: absolute; VISIBILITY: visible; width: 90%; border-style: none; } .topcontainerhidden { POSITION: absolute; VISIBILITY: hidden; } </style> @@ -29,241 +27,236 @@ var numTabs=${(entity.getRelationsSize()+1)}; function ShowTab(lname) { for(inc=1; inc <= numTabs; inc++) { - document.getElementById('area' + inc).className = (lname == 'tab' + inc) ? 'topcontainer' : 'topcontainerhidden'; + document.getElementById('area' + inc).className = (lname == 'tab' + inc) ? 'screenlet' : 'topcontainerhidden'; } } </script> -<h1>${uiLabelMap.WebtoolsViewValue}</h1> -<br /> -<h2>${uiLabelMap.WebtoolsForEntity}: ${entityName}</h2> -<h2>${uiLabelMap.WebtoolsWithPk}: ${findByPk}</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> - <#if enableEdit = "false"> - <#if hasCreatePermission> - <a href='<@ofbizUrl>ViewGeneric?entityName=${entityName}&enableEdit=true</@ofbizUrl>' class="smallSubmit">${uiLabelMap.CommonCreateNew}</a> - <a href=<@ofbizUrl>ViewGeneric?${curFindString}&enableEdit=true</@ofbizUrl> class="smallSubmit">${uiLabelMap.CommonEdit}</a> - </#if> - <#if value?has_content> - <#if hasDeletePermission> - <a href='<@ofbizUrl>UpdateGeneric?UPDATE_MODE=DELETE&${curFindString}</@ofbizUrl>' class="smallSubmit">${uiLabelMap.WebtoolsDeleteThisValue}</a> - </#if> - </#if> - </#if> -</div> -<br /> - -<#if value?has_content> - <form name="relationForm"> - <p>${uiLabelMap.CommonView}:</p> - <select name="viewRelated" onchange="javascript:ShowTab(this.options[this.selectedIndex].value)"> - <option value="tab1">${entityName}</option> - <#list relationFieldList as relation> - <option value="tab${(relation_index+2)}">${relation.title}${relation.relEntityName} (${relation.type})</option> - </#list> - </select> - </form> - <br /> -</#if> - -<div class="topouter"> -<div id="area1" class="topcontainer" width="1%"> - <div class="screenlet"> <div class="screenlet-title-bar"> - <h3>${uiLabelMap.WebtoolsEntityCurrentValue}</h3> - </div> - <#if value?has_content> - <#assign alt_row = false> - <table class="basic-table" cellspacing="0"> - <#list fields as field> - <tr<#if alt_row> class="alternate-row"</#if>> - <td class="label">${field.name}</td> - <td>${field.value}</td> - </tr> - <#assign alt_row = !alt_row> - </#list> - </table> - <#else> - ${uiLabelMap.WebtoolsSpecifiedEntity1} ${entityName} ${uiLabelMap.WebtoolsSpecifiedEntity2}. - </#if> -</div> - -<#if enableEdit = "true"> - <#if hasUpdatePermission || hasCreatePermission> - <#assign alt_row = false> - <div id="area2" class="screenlet"> + <ul> + <li class="head3">${uiLabelMap.WebtoolsViewValue}</li> + </ul> + <br class="clear"/> + </div> + <div class="screenlet-body"> + <h2>${uiLabelMap.WebtoolsForEntity}: ${entityName}</h2> + <h2>${uiLabelMap.WebtoolsWithPk}: ${findByPk}</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> + <#if enableEdit = "false"> + <#if hasCreatePermission> + <a href='<@ofbizUrl>ViewGeneric?entityName=${entityName}&enableEdit=true</@ofbizUrl>' class="smallSubmit">${uiLabelMap.CommonCreateNew}</a> + <a href=<@ofbizUrl>ViewGeneric?${curFindString}&enableEdit=true</@ofbizUrl> class="smallSubmit">${uiLabelMap.CommonEdit}</a> + </#if> + <#if value?has_content> + <#if hasDeletePermission> + <a href='<@ofbizUrl>UpdateGeneric?UPDATE_MODE=DELETE&${curFindString}</@ofbizUrl>' class="smallSubmit">${uiLabelMap.WebtoolsDeleteThisValue}</a> + </#if> + </#if> + </#if> + </div> + <#if value?has_content> + <form name="relationForm"> + <p><b>${uiLabelMap.CommonView}</b></p> + <select name="viewRelated" onchange="javascript:ShowTab(this.options[this.selectedIndex].value)"> + <option value="tab1">${entityName}</option> + <#list relationFieldList as relation> + <option value="tab${(relation_index+2)}">${relation.title}${relation.relEntityName} (${relation.type})</option> + </#list> + </select> + </form> + <br/> + </#if> + <div id="area1" class="screenlet"> <div class="screenlet-title-bar"> - <h3>${uiLabelMap.WebtoolsEntityEditValue}</h3> + <h3>${uiLabelMap.WebtoolsEntityCurrentValue}</h3> </div> - <#if pkNotFound> - <p>${uiLabelMap.WebtoolsEntityName} ${entityName} ${uiLabelMap.WebtoolsWithPk} ${findByPk} ${uiLabelMap.WebtoolsSpecifiedEntity2}.</p> - </#if> - <form action='<@ofbizUrl>UpdateGeneric?entityName=${entityName}</@ofbizUrl>' method="POST" name="updateForm"> - <#assign showFields = true> + <#if value?has_content> <#assign alt_row = false> <table class="basic-table" cellspacing="0"> - <#if value?has_content> - <#if hasUpdatePermission> - <#if newFieldPkList?has_content> - <input type="hidden" name="UPDATE_MODE" value="UPDATE"/> - <#list newFieldPkList as field> + <#list fields as field> + <tr<#if alt_row> class="alternate-row"</#if>> + <td class="label">${field.name}</td> + <td>${field.value}</td> + </tr> + <#assign alt_row = !alt_row> + </#list> + </table> + <#else> + ${uiLabelMap.WebtoolsSpecifiedEntity1} ${entityName} ${uiLabelMap.WebtoolsSpecifiedEntity2}. + </#if> + </div> + <#if enableEdit = "true"> + <#if hasUpdatePermission || hasCreatePermission> + <#assign alt_row = false> + <div id="area2" class="screenlet"> + <div class="screenlet-title-bar"> + <h3>${uiLabelMap.WebtoolsEntityEditValue}</h3> + </div> + <#if pkNotFound> + <p>${uiLabelMap.WebtoolsEntityName} ${entityName} ${uiLabelMap.WebtoolsWithPk} ${findByPk} ${uiLabelMap.WebtoolsSpecifiedEntity2}.</p> + </#if> + <form action='<@ofbizUrl>UpdateGeneric?entityName=${entityName}</@ofbizUrl>' method="POST" name="updateForm"> + <#assign showFields = true> + <#assign alt_row = false> + <table class="basic-table" cellspacing="0"> + <#if value?has_content> + <#if hasUpdatePermission> + <#if newFieldPkList?has_content> + <input type="hidden" name="UPDATE_MODE" value="UPDATE"/> + <#list newFieldPkList as field> + <tr<#if alt_row> class="alternate-row"</#if>> + <td class="label">${field.name}</td> + <td> + <input type="hidden" name="${field.name}" value="${field.value}"/> + ${field.value} + </td> + </tr> + <#assign alt_row = !alt_row> + </#list> + </#if> + <#else> + ${uiLabelMap.WebtoolsMesseage17} ${entityName} ${plainTableName} ${uiLabelMap.WebtoolsMesseage18} + <#assign showFields = false> + </#if> + <#else> + <#if hasCreatePermission> + <#if newFieldPkList?has_content> + <p>${uiLabelMap.WebtoolsMessage15} ${entityName} ${uiLabelMap.WebtoolsMessage16}.</p> + <input type="hidden" name="UPDATE_MODE" value="CREATE"/> + <#list newFieldPkList as field> + <tr<#if alt_row> class="alternate-row"</#if>> + <td class="label">${field.name}</td> + <td> + <#if field.fieldType == 'DateTime'> + DateTime(YYYY-MM-DD HH:mm:SS.sss):<input type="text" name="${field.name}" size="24" value="${field.value}"> + <a href="javascript:call_cal(document.updateForm.${field.name}, '${field.value}');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src='/images/cal.gif' width='16' height='16' border='0' alt='Click here For Calendar'></a> + <#elseif field.fieldType == 'Date'> + Date(YYYY-MM-DD):<input type="text" name="${field.name}" size="11" value="${field.value}"> + <a href="javascript:call_cal(document.updateForm.${field.name}, '${field.value}');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src='/images/cal.gif' width='16' height='16' border='0' alt='Click here For Calendar'></a> + <#elseif field.fieldType == 'Time'> + Time(HH:mm:SS.sss):<input type="text" size="6" maxlength="10" name="${field.name}" value="${field.value}"> + <#elseif field.fieldType == 'Integer'> + <input type="text" size="20" name="${field.name}" value="${field.value}"> + <#elseif field.fieldType == 'Long'> + <input type="text" size="20" name="${field.name}" value="${field.value}"> + <#elseif field.fieldType == 'Double'> + <input type="text" size="20" name="${field.name}" value="${field.value}"> + <#elseif field.fieldType == 'Float'> + <input type="text" size="20" name="${field.name}" value="${field.value}"> + <#elseif field.fieldType == 'StringOneRow'> + <input type="text" size="${field.stringLength}" maxlength="${field.stringLength}" name="${field.name}" value="${field.value}"> + <#elseif field.fieldType == 'String'> + <input type="text" size="80" maxlength="${field.stringLength}" name="${field.name}" value="${field.value}"> + <#elseif field.fieldType == 'Textarea'> + <textarea cols="60" rows="3" maxlength="${field.stringLength}" name="${field.name}">${field.value}</textarea> + </#if> + </td> + </tr> + <#assign alt_row = !alt_row> + </#list> + </#if> + <#else> + <p>${uiLabelMap.WebtoolsMesseage17} ${entityName} ${plainTableName} ${uiLabelMap.WebtoolsMesseage18}</p> + <#assign showFields = false> + </#if> + </#if> + <#if showFields> + <#if newFieldNoPkList?has_content> + <#assign alt_row = false> + <#list newFieldNoPkList as field> + <tr<#if alt_row> class="alternate-row"</#if>> + <td class="label">${field.name}</td> + <td> + <#if field.fieldType == 'DateTime'> + DateTime(YYYY-MM-DD HH:mm:SS.sss):<input type="text" name="${field.name}" size="24" value="${field.value}"> + <a href="javascript:call_cal(document.updateForm.${field.name}, '${field.value}');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src='/images/cal.gif' width='16' height='16' border='0' alt='Click here For Calendar'></a> + <#elseif field.fieldType == 'Date'> + Date(YYYY-MM-DD):<input type="text" name="${field.name}" size="11" value="${field.value}"> + <a href="javascript:call_cal(document.updateForm.${field.name}, '${field.value}');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src='/images/cal.gif' width='16' height='16' border='0' alt='Click here For Calendar'></a> + <#elseif field.fieldType == 'Time'> + Time(HH:mm:SS.sss):<input type="text" size="6" maxlength="10" name="${field.name}" value="${field.value}"> + <#elseif field.fieldType == 'Integer'> + <input type="text" size="20" name="${field.name}" value="${field.value}"> + <#elseif field.fieldType == 'Long'> + <input type="text" size="20" name="${field.name}" value="${field.value}"> + <#elseif field.fieldType == 'Double'> + <input type="text" size="20" name="${field.name}" value="${field.value}"> + <#elseif field.fieldType == 'Float'> + <input type="text" size="20" name="${field.name}" value="${field.value}"> + <#elseif field.fieldType == 'StringOneRow'> + <input type="text" size="${field.stringLength}" maxlength="${field.stringLength}" name="${field.name}" value="${field.value}"> + <#elseif field.fieldType == 'String'> + <input type="text" size="80" maxlength="${field.stringLength}" name="${field.name}" value="${field.value}"> + <#elseif field.fieldType == 'Textarea'> + <textarea cols="60" rows="3" maxlength="${field.stringLength}" name="${field.name}">${field.value}</textarea> + </#if> + </td> + </tr> + <#assign alt_row = !alt_row> + </#list> + <#if value?has_content> + <#assign button = "${uiLabelMap.CommonUpdate}"> + <#else> + <#assign button = "${uiLabelMap.CommonCreate}"> + </#if> <tr<#if alt_row> class="alternate-row"</#if>> - <td class="label">${field.name}</td> + <td> </td> <td> - <input type="hidden" name="${field.name}" value="${field.value}"/> - ${field.value} + <input type="submit" name="Update" value="${button}"> + <a href=<@ofbizUrl>ViewGeneric?${curFindString}</@ofbizUrl> class="smallSubmit">${uiLabelMap.CommonCancel}</a> </td> </tr> - <#assign alt_row = !alt_row> - </#list> + </#if> </#if> - <#else> - ${uiLabelMap.WebtoolsMesseage17} ${entityName} ${plainTableName} ${uiLabelMap.WebtoolsMesseage18} - <#assign showFields = false> - </#if> - <#else> - <#if hasCreatePermission> - <#if newFieldPkList?has_content> - <p>${uiLabelMap.WebtoolsMessage15} ${entityName} ${uiLabelMap.WebtoolsMessage16}.</p> - <input type="hidden" name="UPDATE_MODE" value="CREATE"/> - <#list newFieldPkList as field> + </table> + </form> + </div> + </#if> + </#if> + <#if relationFieldList?has_content> + <#list relationFieldList as relation> + <div id="area${(relation_index + 2)}" class="topcontainerhidden"> + <div class="screenlet-title-bar"> + <ul> + <li class="h3">${uiLabelMap.WebtoolsRelatedEntity}: ${relation.title}${relation.relatedTable} (${relation.type})</li> + <li><a href="<@ofbizUrl>FindGeneric?${relation.encodeRelatedEntityFindString}&find=true</@ofbizUrl>">${uiLabelMap.CommonFind}</a></li> + <#if relation.valueRelated?has_content> + <li><a href="<@ofbizUrl>ViewGeneric?${relation.encodeRelatedEntityFindString}</@ofbizUrl>">${uiLabelMap.CommonView}</a></li> + </#if> + <#if hasAllCreate || relCreate> + <li><a href="<@ofbizUrl>ViewGeneric?${relation.encodeRelatedEntityFindString}&enableEdit=true</@ofbizUrl>">${uiLabelMap.CommonCreate}</a></li> + </#if> + </ul> + <br class="clear"/> + </div> + <#if relation.valueRelated?has_content> + <table class="basic-table" cellspacing="0"> + <#assign alt_row = false> + <tr<#if alt_row> class="alternate-row"</#if>> + <td class="label">${uiLabelMap.WebtoolsPk}</td> + <td>${relation.valueRelatedPk}</td> + </tr> + <#list relation.relatedFieldsList as relatedField> <tr<#if alt_row> class="alternate-row"</#if>> - <td class="label">${field.name}</td> - <td> - <#if field.fieldType == 'DateTime'> - DateTime(YYYY-MM-DD HH:mm:SS.sss):<input type="text" name="${field.name}" size="24" value="${field.value}"> - <a href="javascript:call_cal(document.updateForm.${field.name}, '${field.value}');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src='/images/cal.gif' width='16' height='16' border='0' alt='Click here For Calendar'></a> - <#elseif field.fieldType == 'Date'> - Date(YYYY-MM-DD):<input type="text" name="${field.name}" size="11" value="${field.value}"> - <a href="javascript:call_cal(document.updateForm.${field.name}, '${field.value}');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src='/images/cal.gif' width='16' height='16' border='0' alt='Click here For Calendar'></a> - <#elseif field.fieldType == 'Time'> - Time(HH:mm:SS.sss):<input type="text" size="6" maxlength="10" name="${field.name}" value="${field.value}"> - <#elseif field.fieldType == 'Integer'> - <input type="text" size="20" name="${field.name}" value="${field.value}"> - <#elseif field.fieldType == 'Long'> - <input type="text" size="20" name="${field.name}" value="${field.value}"> - <#elseif field.fieldType == 'Double'> - <input type="text" size="20" name="${field.name}" value="${field.value}"> - <#elseif field.fieldType == 'Float'> - <input type="text" size="20" name="${field.name}" value="${field.value}"> - <#elseif field.fieldType == 'StringOneRow'> - <input type="text" size="${field.stringLength}" maxlength="${field.stringLength}" name="${field.name}" value="${field.value}"> - <#elseif field.fieldType == 'String'> - <input type="text" size="80" maxlength="${field.stringLength}" name="${field.name}" value="${field.value}"> - <#elseif field.fieldType == 'Textarea'> - <textarea cols="60" rows="3" maxlength="${field.stringLength}" name="${field.name}">${field.value}</textarea> - </#if> - </td> - </tr> + <td class="label">${relatedField.name}</td> + <td>${relatedField.value}</td> + </tr> <#assign alt_row = !alt_row> </#list> - </#if> + </table> <#else> - <p>${uiLabelMap.WebtoolsMesseage17} ${entityName} ${plainTableName} ${uiLabelMap.WebtoolsMesseage18}</p> - <#assign showFields = false> - </#if> - </#if> - <#if showFields> - <#if newFieldNoPkList?has_content> - <#assign alt_row = false> - <#list newFieldNoPkList as field> - <tr<#if alt_row> class="alternate-row"</#if>> - <td class="label">${field.name}</td> - <td> - <#if field.fieldType == 'DateTime'> - DateTime(YYYY-MM-DD HH:mm:SS.sss):<input type="text" name="${field.name}" size="24" value="${field.value}"> - <a href="javascript:call_cal(document.updateForm.${field.name}, '${field.value}');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src='/images/cal.gif' width='16' height='16' border='0' alt='Click here For Calendar'></a> - <#elseif field.fieldType == 'Date'> - Date(YYYY-MM-DD):<input type="text" name="${field.name}" size="11" value="${field.value}"> - <a href="javascript:call_cal(document.updateForm.${field.name}, '${field.value}');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src='/images/cal.gif' width='16' height='16' border='0' alt='Click here For Calendar'></a> - <#elseif field.fieldType == 'Time'> - Time(HH:mm:SS.sss):<input type="text" size="6" maxlength="10" name="${field.name}" value="${field.value}"> - <#elseif field.fieldType == 'Integer'> - <input type="text" size="20" name="${field.name}" value="${field.value}"> - <#elseif field.fieldType == 'Long'> - <input type="text" size="20" name="${field.name}" value="${field.value}"> - <#elseif field.fieldType == 'Double'> - <input type="text" size="20" name="${field.name}" value="${field.value}"> - <#elseif field.fieldType == 'Float'> - <input type="text" size="20" name="${field.name}" value="${field.value}"> - <#elseif field.fieldType == 'StringOneRow'> - <input type="text" size="${field.stringLength}" maxlength="${field.stringLength}" name="${field.name}" value="${field.value}"> - <#elseif field.fieldType == 'String'> - <input type="text" size="80" maxlength="${field.stringLength}" name="${field.name}" value="${field.value}"> - <#elseif field.fieldType == 'Textarea'> - <textarea cols="60" rows="3" maxlength="${field.stringLength}" name="${field.name}">${field.value}</textarea> - </#if> - </td> - </tr> - <#assign alt_row = !alt_row> - </#list> - <#if value?has_content> - <#assign button = "${uiLabelMap.CommonUpdate}"> - <#else> - <#assign button = "${uiLabelMap.CommonCreate}"> + <#if "one" = relation.type> + <b>${uiLabelMap.WebtoolsNoValueFoundFor}</b> ${relation.title}${relation.relatedTable}. + <#else/> + <a href="<@ofbizUrl>FindGeneric?${relation.encodeRelatedEntityFindString}&find=true</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonFind}</a> </#if> - <tr<#if alt_row> class="alternate-row"</#if>> - <td> </td> - <td> - <input type="submit" name="Update" value="${button}"> - <a href=<@ofbizUrl>ViewGeneric?${curFindString}</@ofbizUrl> class="smallSubmit">${uiLabelMap.CommonCancel}</a> - </td> - </tr> </#if> - </#if> - </table> - </form> - </div> - </#if> -</#if> -</div> - -<#if relationFieldList?has_content> - <#list relationFieldList as relation> - <div id="area${(relation_index + 2)}" class="topcontainerhidden" width="100%"> - <div class="screenlet"> - <div class="screenlet-title-bar"> - <ul> - <li class="h3">${uiLabelMap.WebtoolsRelatedEntity}: ${relation.title}${relation.relatedTable} (${relation.type})</li> - <li><a href="<@ofbizUrl>FindGeneric?${relation.encodeRelatedEntityFindString}&find=true</@ofbizUrl>">${uiLabelMap.CommonFind}</a></li> - <#if relation.valueRelated?has_content> - <li><a href="<@ofbizUrl>ViewGeneric?${relation.encodeRelatedEntityFindString}</@ofbizUrl>">${uiLabelMap.CommonView}</a></li> - </#if> - <#if hasAllCreate || relCreate> - <li><a href="<@ofbizUrl>ViewGeneric?${relation.encodeRelatedEntityFindString}&enableEdit=true</@ofbizUrl>">${uiLabelMap.CommonCreate}</a></li> - </#if> - </ul> - <br class="clear"/> - </div> - <#if relation.valueRelated?has_content> - <table class="basic-table" cellspacing="0"> - <#assign alt_row = false> - <tr<#if alt_row> class="alternate-row"</#if>> - <td class="label">${uiLabelMap.WebtoolsPk}</td> - <td>${relation.valueRelatedPk}</td> - </tr> - <#list relation.relatedFieldsList as relatedField> - <tr<#if alt_row> class="alternate-row"</#if>> - <td class="label">${relatedField.name}</td> - <td>${relatedField.value}</td> - </tr> - <#assign alt_row = !alt_row> - </#list> - </table> - <#else> - <#if "one" = relation.type> - <div>${uiLabelMap.WebtoolsNoValueFoundFor}: ${relation.title}${relation.relatedTable}.</div> - <#else/> - <div><a href="<@ofbizUrl>FindGeneric?${relation.encodeRelatedEntityFindString}&find=true</@ofbizUrl>">${uiLabelMap.CommonFind}</a></div> - </#if> - </#if> - </div> - </div> - </#list> -</#if> -<br class="clear"/> -</div> + </div> + </#list> + </#if> + </div> + <br class="clear"/> +</div> \ No newline at end of file |
Free forum by Nabble | Edit this page |