📄 editfeaturegroupappls.ftl
字号:
<#--
* Copyright (c) 2003 The Open For Business Project - www.ofbiz.org
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
* OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
* THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*@author Andy Zeneski (jaz@ofbiz.org)
*@version $Revision: 1.3 $
*@since 3.0
-->
<#assign uiLabelMap = requestAttributes.uiLabelMap>
<#if hasPermission>
${pages.get("/feature/FeatureTabBar.ftl")}
<div class="head1">Product Feature Group Applications</div>
<br>
<table border="1" cellpadding='2' cellspacing='0'>
<tr>
<td><div class="tableheadtext">ID</div></td>
<td><div class="tableheadtext">Feature</div></td>
<td><div class="tableheadtext">Type</div></td>
<td><div class="tableheadtext">Category</div></td>
<td><div class="tableheadtext"> </div></td>
</tr>
<#list featureGroupAppls as groupAppl>
<#assign feature = groupAppl.getRelatedOne("ProductFeature")>
<#assign type = feature.getRelatedOne("ProductFeatureType")>
<#assign category = feature.getRelatedOne("ProductFeatureCategory")>
<tr>
<td><div class="tabletext">${feature.productFeatureId}</div></td>
<td><div class="tabletext">${feature.description?if_exists}</div></td>
<td><div class="tabletext">${type.description}</div></td>
<td><div class="tabletext">${category.description} (${category.productFeatureCategoryId})</div></td>
<td><a href="<@ofbizUrl>/RemoveProductFeatureGroupAppl?productFeatureGroupId=${groupAppl.productFeatureGroupId}&productFeatureId=${groupAppl.productFeatureId}&fromDate=${groupAppl.fromDate?string}</@ofbizUrl>" class="buttontext">[Remove]</a>
</tr>
</#list>
</table>
<br>
<form method="POST" action="<@ofbizUrl>/CreateProductFeatureGroupAppl</@ofbizUrl>" style='margin: 0;'>
<input type="hidden" name="productFeatureGroupId" value="${requestParameters.productFeatureGroupId}">
<div class='head2'>Quick Apply Product Feature:</div>
<br>
<table>
<tr>
<td><div class='tabletext'>Product Feature ID:</div></td>
<td><input type=text class='inputBox' size='30' name='productFeatureId' value=''></td>
</tr>
<tr>
<td colspan='2'><input type="submit" value="${uiLabelMap.CommonCreate}"></td>
</tr>
</table>
</form>
<br>
<#if !productFeatures?has_content>
<form method="POST" action="<@ofbizUrl>/EditFeatureGroupAppls</@ofbizUrl>" style='margin: 0;'>
<input type="hidden" name="productFeatureGroupId" value="${requestParameters.productFeatureGroupId}">
<div class='head2'>Apply Product Feature(s) From Category:</div>
<br>
<table>
<tr>
<td><div class='tabletext'>Product Feature Category:</div></td>
<td>
<select class="selectBox" name="productFeatureCategoryId">
<#list productFeatureCategories as category>
<option value="${category.productFeatureCategoryId}">${category.description}</option>
</#list>
</select>
</td>
</tr>
<tr>
<td colspan='2'><input type="submit" value="Continue"></td>
</tr>
</table>
</form>
<#else>
<div class='head2'>Apply Product Feature(s) From Category:</div>
<br>
<table border="1" cellpadding='2' cellspacing='0'>
<tr>
<td><div class='tableheadtext'>ID</div></td>
<td><div class='tableheadtext'>Type</div></td>
<td><div class='tableheadtext'>Description</div></td>
<td><div class='tableheadtext'>ID Code</div></td>
<td><div class='tableheadtext'>Abbrev</div></td>
<td><div class='tableheadtext'> </div></td>
</tr>
<#list productFeatures as feature>
<#assign type = feature.getRelatedOne("ProductFeatureType")>
<form method="POST" action="<@ofbizUrl>/CreateProductFeatureGroupAppl</@ofbizUrl>" style='margin: 0;'>
<input type="hidden" name="productFeatureGroupId" value="${requestParameters.productFeatureGroupId}">
<input type="hidden" name="productFeatureCategoryId" value="${requestParameters.productFeatureCategoryId}">
<input type="hidden" name="productFeatureId" value="${feature.productFeatureId}">
<tr>
<td><div class="tabletext">${feature.productFeatureId}</div></td>
<td><div class="tabletext">${type.description}</div></td>
<td><div class="tabletext">${feature.description?if_exists}</div></td>
<td><div class="tabletext">${feature.idCode?if_exists}</div></td>
<td><div class="tabletext">${feature.abbrev?if_exists}</div></td>
<td><input type="submit" value="Apply">
</tr>
</form>
</#list>
</table>
<a href="<@ofbizUrl>/EditFeatureGroupAppls?productFeatureGroupId=${requestParameters.productFeatureGroupId}</@ofbizUrl>" class="buttontext">[Finished w/ This Category]</a>
</#if>
<#else>
<h3>${uiLabelMap.ProductCatalogViewPermissionError}</h3>
</#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -