You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by pr...@apache.org on 2016/06/06 06:52:40 UTC
svn commit: r1746970 -
/ofbiz/branches/release14.12/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl
Author: pranayp
Date: Mon Jun 6 06:52:39 2016
New Revision: 1746970
URL: http://svn.apache.org/viewvc?rev=1746970&view=rev
Log:
[OFBIZ-7162] No functional changes, corrected formatting.
Modified:
ofbiz/branches/release14.12/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl
Modified: ofbiz/branches/release14.12/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/release14.12/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl?rev=1746970&r1=1746969&r2=1746970&view=diff
==============================================================================
--- ofbiz/branches/release14.12/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl (original)
+++ ofbiz/branches/release14.12/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl Mon Jun 6 06:52:39 2016
@@ -47,9 +47,6 @@ under the License.
</#if>
</div>
<#if currentCustomTimePeriod?has_content>
- <form method="post" action="<@o...@ofbizUrl>" name="updateCustomTimePeriodForm">
- <input type="hidden" name="findOrganizationPartyId" value="${findOrganizationPartyId!}" />
- <input type="hidden" name="customTimePeriodId" value="${currentCustomTimePeriodId!}" />
<table class="basic-table" cellspacing="0">
<tr class="header-row">
<td>${uiLabelMap.CommonId}</td>
@@ -62,7 +59,10 @@ under the License.
<td>${uiLabelMap.CommonThruDate}</td>
<td colspan="2"> </td>
</tr>
- <tr>
+ <tr>
+ <form method="post" action="<@o...@ofbizUrl>" name="updateCustomTimePeriodForm">
+ <input type="hidden" name="findOrganizationPartyId" value="${findOrganizationPartyId!}" />
+ <input type="hidden" name="customTimePeriodId" value="${currentCustomTimePeriodId!}" />
<td>${currentCustomTimePeriod.customTimePeriodId}</td>
<td>
<select name="parentPeriodId">
@@ -125,14 +125,14 @@ under the License.
<td class="button-col">
<input type="submit" value='${uiLabelMap.CommonUpdate}'/>
</td>
- </form>
- <td class="button-col">
- <form method="post" action='<@o...@ofbizUrl>' name='deleteCustomTimePeriodForm'>
- <input type="hidden" name="customTimePeriodId" value="${currentCustomTimePeriod.customTimePeriodId!}" />
- <input type="submit" value='${uiLabelMap.CommonDelete}'/>
- </form>
- </td>
- </tr>
+ </form>
+ <td class="button-col">
+ <form method="post" action='<@o...@ofbizUrl>' name='deleteCustomTimePeriodForm'>
+ <input type="hidden" name="customTimePeriodId" value="${currentCustomTimePeriod.customTimePeriodId!}" />
+ <input type="submit" value='${uiLabelMap.CommonDelete}'/>
+ </form>
+ </td>
+ </tr>
</table>
<#else>
<div class="screenlet-body">${uiLabelMap.AccountingNoCurrentCustomTimePeriodSelected}</div>
@@ -165,73 +165,73 @@ under the License.
<tr>
<form method="post" action='<@o...@ofbizUrl>' name='lineForm${line}'>
<input type="hidden" name="customTimePeriodId" value="${customTimePeriod.customTimePeriodId!}" />
- <td>${customTimePeriod.customTimePeriodId}</td>
- <td>
- <select name="parentPeriodId">
- <option value=''> </option>
- <#list allCustomTimePeriods as allCustomTimePeriod>
- <#assign allPeriodType = allCustomTimePeriod.getRelatedOne("PeriodType", true)>
- <#assign isDefault = false>
- <#if (currentCustomTimePeriod.parentPeriodId)??>
- <#if currentCustomTimePeriod.customTimePeriodId = allCustomTimePeriod.customTimePeriodId>
- <#assign isDefault = true>
+ <td>${customTimePeriod.customTimePeriodId}</td>
+ <td>
+ <select name="parentPeriodId">
+ <option value=''> </option>
+ <#list allCustomTimePeriods as allCustomTimePeriod>
+ <#assign allPeriodType = allCustomTimePeriod.getRelatedOne("PeriodType", true)>
+ <#assign isDefault = false>
+ <#if (currentCustomTimePeriod.parentPeriodId)??>
+ <#if currentCustomTimePeriod.customTimePeriodId = allCustomTimePeriod.customTimePeriodId>
+ <#assign isDefault = true>
+ </#if>
</#if>
- </#if>
- <option value='${allCustomTimePeriod.customTimePeriodId}'<#if isDefault> selected="selected"</#if>>
- ${allCustomTimePeriod.organizationPartyId}
- <#if allPeriodType??> ${allPeriodType.description}: </#if>
- ${allCustomTimePeriod.periodNum!}
- [${allCustomTimePeriod.customTimePeriodId}]
- </option>
- </#list>
- </select>
- </td>
- <td><input type="text" size='12' name="organizationPartyId" value="${customTimePeriod.organizationPartyId!}" /></td>
- <td>
- <select name="periodTypeId">
- <#list periodTypes as periodType>
- <#assign isDefault = false>
- <#if (customTimePeriod.periodTypeId)??>
- <#if customTimePeriod.periodTypeId = periodType.periodTypeId>
- <#assign isDefault = true>
+ <option value='${allCustomTimePeriod.customTimePeriodId}'<#if isDefault> selected="selected"</#if>>
+ ${allCustomTimePeriod.organizationPartyId}
+ <#if allPeriodType??> ${allPeriodType.description}: </#if>
+ ${allCustomTimePeriod.periodNum!}
+ [${allCustomTimePeriod.customTimePeriodId}]
+ </option>
+ </#list>
+ </select>
+ </td>
+ <td><input type="text" size='12' name="organizationPartyId" value="${customTimePeriod.organizationPartyId!}" /></td>
+ <td>
+ <select name="periodTypeId">
+ <#list periodTypes as periodType>
+ <#assign isDefault = false>
+ <#if (customTimePeriod.periodTypeId)??>
+ <#if customTimePeriod.periodTypeId = periodType.periodTypeId>
+ <#assign isDefault = true>
+ </#if>
</#if>
- </#if>
- <option value='${periodType.periodTypeId}'<#if isDefault> selected="selected"</#if>>${periodType.description} [${periodType.periodTypeId}]</option>
- </#list>
- </select>
+ <option value='${periodType.periodTypeId}'<#if isDefault> selected="selected"</#if>>${periodType.description} [${periodType.periodTypeId}]</option>
+ </#list>
+ </select>
+ </td>
+ <td><input type="text" size='4' name="periodNum" value="${customTimePeriod.periodNum!}" /></td>
+ <td><input type="text" size='10' name="periodName" value="${customTimePeriod.periodName!}" /></td>
+ <td>
+ <#assign hasntStarted = false>
+ <#assign compareDate = customTimePeriod.getTimestamp("fromDate")>
+ <#if compareDate?has_content>
+ <#if nowTimestamp.before(compareDate)><#assign hasntStarted = true></#if>
+ </#if>
+ <input type="text" size='13' name="fromDate" value="${customTimePeriod.fromDate?string("yyyy-MM-dd")}"<#if hasntStarted> class="alert"</#if> />
+ </td>
+ <td>
+ <#assign hasExpired = false>
+ <#assign compareDate = customTimePeriod.getTimestamp("thruDate")>
+ <#if compareDate?has_content>
+ <#if nowTimestamp.after(compareDate)><#assign hasExpired = true></#if>
+ </#if>
+ <input type="text" size='13' name="thruDate" value="${customTimePeriod.thruDate?string("yyyy-MM-dd")}"<#if hasExpired> class="alert"</#if> />
+ </td>
+ <td class="button-col">
+ <input type="submit" value='${uiLabelMap.CommonUpdate}'/>
+ </td>
+ </form>
+ <td class="button-col">
+ <form method="post" action='<@o...@ofbizUrl>' name='lineForm${line}'>
+ <input type="hidden" name="customTimePeriodId" value="${customTimePeriod.customTimePeriodId!}" />
+ <input type="submit" value='${uiLabelMap.CommonDelete}'/>
+ </form>
</td>
- <td><input type="text" size='4' name="periodNum" value="${customTimePeriod.periodNum!}" /></td>
- <td><input type="text" size='10' name="periodName" value="${customTimePeriod.periodName!}" /></td>
- <td>
- <#assign hasntStarted = false>
- <#assign compareDate = customTimePeriod.getTimestamp("fromDate")>
- <#if compareDate?has_content>
- <#if nowTimestamp.before(compareDate)><#assign hasntStarted = true></#if>
- </#if>
- <input type="text" size='13' name="fromDate" value="${customTimePeriod.fromDate?string("yyyy-MM-dd")}"<#if hasntStarted> class="alert"</#if> />
+ <td class="button-col">
+ <a href='<@o...@ofbizUrl>'>
+ ${uiLabelMap.CommonSetAsCurrent}</a>
</td>
- <td>
- <#assign hasExpired = false>
- <#assign compareDate = customTimePeriod.getTimestamp("thruDate")>
- <#if compareDate?has_content>
- <#if nowTimestamp.after(compareDate)><#assign hasExpired = true></#if>
- </#if>
- <input type="text" size='13' name="thruDate" value="${customTimePeriod.thruDate?string("yyyy-MM-dd")}"<#if hasExpired> class="alert"</#if> />
- </td>
- <td class="button-col">
- <input type="submit" value='${uiLabelMap.CommonUpdate}'/>
- </td>
- </form>
- <td class="button-col">
- <form method="post" action='<@o...@ofbizUrl>' name='lineForm${line}'>
- <input type="hidden" name="customTimePeriodId" value="${customTimePeriod.customTimePeriodId!}" />
- <input type="submit" value='${uiLabelMap.CommonDelete}'/>
- </form>
- </td>
- <td class="button-col">
- <a href='<@o...@ofbizUrl>'>
- ${uiLabelMap.CommonSetAsCurrent}</a>
- </td>
</tr>
</#list>
</table>