| <#-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <h1>${uiLabelMap.WorkflowReadXPDLFile}</h1> |
| <br /> |
| <p>${uiLabelMap.WorkflowImportXPDLPageDescription}</p> |
| <hr /> |
| <#if security.hasPermission("WORKFLOW_MAINT", session)> |
| <form method="post" action="<@ofbizUrl>readxpdl</@ofbizUrl>"> |
| <table class="basic-table form-widget-table"> |
| <tr> |
| <td class="label">${uiLabelMap.WorkflowXpdlFilenameOrUrl}</td> |
| <td><input name='XPDL_LOCATION' type="text" size='60' value='${parameters.XPDL_LOCATION?if_exists}'/></td> |
| <td><span class="label">${uiLabelMap.WorkflowDataIsUrl}</span><input type="checkbox" name='XPDL_IS_URL'<#if parameters.XPDL_IS_URL?has_content> checked="checked"</#if>/></td> |
| </tr> |
| <tr> |
| <td class="label">${uiLabelMap.WorkflowImportUpdateToDB}</td> |
| <td><input type="checkbox" name='XPDL_IMPORT'/></td> |
| <td> </td> |
| </tr> |
| <tr> |
| <td> </td> |
| <td><input type="submit" value='${uiLabelMap.CommonView}'/></td> |
| <td> </td> |
| </tr> |
| </table> |
| </form> |
| |
| <#if parameters.XPDL_LOCATION?has_content> |
| <#if messages?has_content> |
| <hr /> |
| <h1>${uiLabelMap.CommonErrorMessage3}:</h1> |
| <div> |
| <#list messages as message> |
| <p>${message}</p> |
| </#list> |
| </div> |
| </#if> |
| |
| <#if toBeStored?has_content> |
| <#list toBeStored as entity> |
| <pre>${entity}</pre> |
| </#list> |
| <hr /> |
| <div>${uiLabelMap.WorkflowReadAndPrintedNEntities}</div> |
| <#else> |
| <div>${uiLabelMap.WorkflowNoEntitiesRead}.</div> |
| </#if> |
| </#if> |
| <#else> |
| <h3>${uiLabelMap.WorkflowPermissionWorkflow}</h3> |
| </#if> |