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,140 +16,148 @@ KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<h1>${uiLabelMap.WebtoolsDataFileMainTitle}</h1>
|
||||
<br />
|
||||
<p>${uiLabelMap.WebtoolsDataFileMessage1}.</p>
|
||||
<hr/>
|
||||
<#if security.hasPermission("DATAFILE_MAINT", session)>
|
||||
<form method="post" action="<@ofbizUrl>viewdatafile</@ofbizUrl>">
|
||||
<table class="basic-table form-widget-table">
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.WebtoolsDataDefinitionFileName}</td>
|
||||
<td><input name="DEFINITION_LOCATION" type="text" size="60" value="${parameters.DEFINITION_LOCATION?if_exists}"></td>
|
||||
<td><span class="label">${uiLabelMap.WebtoolsDataIsUrl}</span><input type="checkbox" name="DEFINITION_IS_URL"<#if parameters.DEFINITION_IS_URL?has_content> checked="checked"</#if>></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.WebtoolsDataDefinitionName}</td>
|
||||
<td>
|
||||
<#if definitionNames?has_content>
|
||||
<select name="DEFINITION_NAME">
|
||||
<option value=""></option>
|
||||
<#list definitionNames as oneDefinitionName>
|
||||
boolean isSelected = definitionName != null && definitionName.equals(oneDefinitionName);
|
||||
<option value="${oneDefinitionName}" <#if parameters.DEFINITION_NAME?exists && parameters.DEFINITION_NAME == oneDefinitionName> selected </#if>>${oneDefinitionName}</option>
|
||||
</#list>
|
||||
</select>
|
||||
<#else>
|
||||
<input name="DEFINITION_NAME" type="text" size="30" value="${definitionName?if_exists}">
|
||||
</#if>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.WebtoolsDataFileName}</td>
|
||||
<td><input name="DATAFILE_LOCATION" type="text" size="60" value="${parameters.DATAFILE_LOCATION?if_exists}"></td>
|
||||
<td><span class="label">${uiLabelMap.WebtoolsDataIsUrl}</span><input type="checkbox" name="DATAFILE_IS_URL"<#if parameters.DATAFILE_IS_URL?has_content> checked="checked"</#if>></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.WebtoolsDataSaveToFile}</td>
|
||||
<td><input name="DATAFILE_SAVE" type="text" size="60" value="${parameters.DATAFILE_SAVE?if_exists}"/></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.WebtoolsDataSaveToXml}</td>
|
||||
<td><input name="ENTITYXML_FILE_SAVE" type="text" size="60" value="${parameters.ENTITYXML_FILE_SAVE?if_exists}"></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><input type="submit" value="${uiLabelMap.CommonRun}"></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<#if messages?has_content>
|
||||
<hr/>
|
||||
<h1>${uiLabelMap.CommonFollowingOccurred}:</h1>
|
||||
<div>
|
||||
<#list messages as message>
|
||||
<p>${message}</p>
|
||||
</#list>
|
||||
</div>
|
||||
</#if>
|
||||
|
||||
<#macro displayrecords records>
|
||||
<#assign lastRecordName = null>
|
||||
<#list records as record>
|
||||
<#assign modelRecord = record.getModelRecord()>
|
||||
<#-- if record is different than the last displayed, make a new table and header row -->
|
||||
<#if !modelRecord.name.equals(lastRecordName)>
|
||||
<#if lastRecordName != null>
|
||||
</table><br />
|
||||
</#if>
|
||||
<table class="dark-grid" cellspacing="0">
|
||||
<div class="screenlet">
|
||||
<div class="screenlet-title-bar">
|
||||
<ul>
|
||||
<li class="head3">${uiLabelMap.WebtoolsDataFileMainTitle}</li>
|
||||
</ul>
|
||||
<br class="clear"/>
|
||||
</div>
|
||||
<div class="screenlet-body">
|
||||
<br/>
|
||||
<p>${uiLabelMap.WebtoolsDataFileMessage1}.</p>
|
||||
<br/>
|
||||
<#if security.hasPermission("DATAFILE_MAINT", session)>
|
||||
<form method="post" action="<@ofbizUrl>viewdatafile</@ofbizUrl>">
|
||||
<table class="basic-table" cellspacing="0">
|
||||
<tr>
|
||||
<td><b>Record: ${modelRecord.name}</b></td>
|
||||
<#if (modelRecord.parentName)?has_content>
|
||||
<td><b>Parent: ${modelRecord.parentName}</b></td>
|
||||
</#if>
|
||||
<td>${modelRecord.description}</td>
|
||||
</tr>
|
||||
<td class="label">${uiLabelMap.WebtoolsDataDefinitionFileName}</td>
|
||||
<td><input name="DEFINITION_LOCATION" type="text" size="60" value="${parameters.DEFINITION_LOCATION?if_exists}"></td>
|
||||
<td><span class="label">${uiLabelMap.WebtoolsDataIsUrl}</span><input type="checkbox" name="DEFINITION_IS_URL"<#if parameters.DEFINITION_IS_URL?has_content> checked="checked"</#if>></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.WebtoolsDataDefinitionName}</td>
|
||||
<td>
|
||||
<#if definitionNames?has_content>
|
||||
<select name="DEFINITION_NAME">
|
||||
<option value=""></option>
|
||||
<#list definitionNames as oneDefinitionName>
|
||||
boolean isSelected = definitionName != null && definitionName.equals(oneDefinitionName);
|
||||
<option value="${oneDefinitionName}" <#if parameters.DEFINITION_NAME?exists && parameters.DEFINITION_NAME == oneDefinitionName> selected </#if>>${oneDefinitionName}</option>
|
||||
</#list>
|
||||
</select>
|
||||
<#else>
|
||||
<input name="DEFINITION_NAME" type="text" size="30" value="${definitionName?if_exists}">
|
||||
</#if>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.WebtoolsDataFileName}</td>
|
||||
<td><input name="DATAFILE_LOCATION" type="text" size="60" value="${parameters.DATAFILE_LOCATION?if_exists}"></td>
|
||||
<td><span class="label">${uiLabelMap.WebtoolsDataIsUrl}</span><input type="checkbox" name="DATAFILE_IS_URL"<#if parameters.DATAFILE_IS_URL?has_content> checked="checked"</#if>></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.WebtoolsDataSaveToFile}</td>
|
||||
<td><input name="DATAFILE_SAVE" type="text" size="60" value="${parameters.DATAFILE_SAVE?if_exists}"/></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.WebtoolsDataSaveToXml}</td>
|
||||
<td><input name="ENTITYXML_FILE_SAVE" type="text" size="60" value="${parameters.ENTITYXML_FILE_SAVE?if_exists}"></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><input type="submit" value="${uiLabelMap.CommonRun}"></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="dark-grid" cellspacing='0'>
|
||||
</form>
|
||||
|
||||
<#if messages?has_content>
|
||||
<hr/>
|
||||
<h1>${uiLabelMap.CommonFollowingOccurred}:</h1>
|
||||
<div>
|
||||
<#list messages as message>
|
||||
<p>${message}</p>
|
||||
</#list>
|
||||
</div>
|
||||
</#if>
|
||||
|
||||
<#macro displayrecords records>
|
||||
<#assign lastRecordName = null>
|
||||
<#list records as record>
|
||||
<#assign modelRecord = record.getModelRecord()>
|
||||
<#-- if record is different than the last displayed, make a new table and header row -->
|
||||
<#if !modelRecord.name.equals(lastRecordName)>
|
||||
<#if lastRecordName != null>
|
||||
</table><br/>
|
||||
</#if>
|
||||
<table class="basic-table hover-bar" cellspacing="0">
|
||||
<tr>
|
||||
<td><b>Record: ${modelRecord.name}</b></td>
|
||||
<#if (modelRecord.parentName)?has_content>
|
||||
<td><b>Parent: ${modelRecord.parentName}</b></td>
|
||||
</#if>
|
||||
<td>${modelRecord.description}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="dark-grid" cellspacing='0'>
|
||||
<tr>
|
||||
<#list modelRecord.fields as modelField>
|
||||
<td><b>${modelField.name}</b></td>
|
||||
</#list>
|
||||
</tr>
|
||||
<#assign lastRecordName = modelRecord.name>
|
||||
</#if>
|
||||
|
||||
<tr>
|
||||
<#list modelRecord.fields as modelField>
|
||||
<td><b>${modelField.name}</b></td>
|
||||
<#assign value = record.get(modelField.name)>
|
||||
<#if value?has_content>
|
||||
<td>${value}</td>
|
||||
<#else>
|
||||
<td>${modelField.defaultValue}</td>
|
||||
</#if>
|
||||
</#list>
|
||||
</tr>
|
||||
<#assign lastRecordName = modelRecord.name>
|
||||
</#if>
|
||||
|
||||
<tr>
|
||||
<#list modelRecord.fields as modelField>
|
||||
<#assign value = record.get(modelField.name)>
|
||||
<#if value?has_content>
|
||||
<td>${value}</td>
|
||||
<#else>
|
||||
<td>${modelField.defaultValue}</td>
|
||||
<#if record.getChildRecords() != null && (record.getChildRecords().size() > 0)>
|
||||
<@displayrecords records = record.getChildRecords()/>
|
||||
</#if>
|
||||
</#list>
|
||||
</tr>
|
||||
<#if record.getChildRecords() != null && (record.getChildRecords().size() > 0)>
|
||||
<@displayrecords records = record.getChildRecords()/>
|
||||
</#if>
|
||||
</#list>
|
||||
</table>
|
||||
</#macro>
|
||||
</table>
|
||||
</#macro>
|
||||
|
||||
<#if dataFile?has_content && modelDataFile?has_content && (!parameters.ENTITYXML_FILE_SAVE?has_content || parameters.ENTITYXML_FILE_SAVE.length() == 0) && (parameters.DATAFILE_SAVE == null || parameters.DATAFILE_SAVE.length() == 0)>
|
||||
<hr/>
|
||||
<table class="basic-table" cellspacing="0">
|
||||
<tr class="header-row">
|
||||
<td>Name</td>
|
||||
<td>Type-Code</td>
|
||||
<td>Sender</td>
|
||||
<td>Receiver</td>
|
||||
<td>Record Length</td>
|
||||
<td>Separator Style</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>${modelDataFile.name}</td>
|
||||
<td>${modelDataFile.typeCode}</td>
|
||||
<td>${modelDataFile.sender}</td>
|
||||
<td>${modelDataFile.receiver}</td>
|
||||
<td>${modelDataFile.recordLength}</td>
|
||||
<td>${modelDataFile.separatorStyle}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Description</td>
|
||||
<td colspan="">${modelDataFile.description}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<@displayrecords records = dataFile.getRecords()/>
|
||||
</#if>
|
||||
<#else>
|
||||
<h3>You do not have permission to use this page (DATAFILE_MAINT needed)</h3>
|
||||
</#if>
|
||||
<#if dataFile?has_content && modelDataFile?has_content && (!parameters.ENTITYXML_FILE_SAVE?has_content || parameters.ENTITYXML_FILE_SAVE.length() == 0) && (parameters.DATAFILE_SAVE == null || parameters.DATAFILE_SAVE.length() == 0)>
|
||||
<hr/>
|
||||
<table class="basic-table" cellspacing="0">
|
||||
<tr class="header-row">
|
||||
<td>Name</td>
|
||||
<td>Type-Code</td>
|
||||
<td>Sender</td>
|
||||
<td>Receiver</td>
|
||||
<td>Record Length</td>
|
||||
<td>Separator Style</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>${modelDataFile.name}</td>
|
||||
<td>${modelDataFile.typeCode}</td>
|
||||
<td>${modelDataFile.sender}</td>
|
||||
<td>${modelDataFile.receiver}</td>
|
||||
<td>${modelDataFile.recordLength}</td>
|
||||
<td>${modelDataFile.separatorStyle}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Description</td>
|
||||
<td colspan="">${modelDataFile.description}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<@displayrecords records = dataFile.getRecords()/>
|
||||
</#if>
|
||||
<#else>
|
||||
<h3>You do not have permission to use this page (DATAFILE_MAINT needed)</h3>
|
||||
</#if>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user