(OFBIZ-8193) Adds a create Calendar tab bar in the main decorator to maintain the consistency throughout the tab bar of Calendar. Also a button in EditCalendar.ftl Thanks: Avnindra Sharma for the report and patch, Pierre Smits for testing git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867701 13f79535-47bb-0310-9956-ffa450edef68
81 lines
3.3 KiB
Plaintext
81 lines
3.3 KiB
Plaintext
<#--
|
|
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.
|
|
-->
|
|
|
|
<#if techDataCalendar?has_content>
|
|
<div class="screenlet">
|
|
<div class="screenlet-title-bar">
|
|
<ul>
|
|
<li class="h3">${uiLabelMap.ManufacturingUpdateCalendar}</li>
|
|
</ul>
|
|
<br class="clear"/>
|
|
</div>
|
|
<div class="screenlet-body">
|
|
<form name="calendarform" method="post" action="<@ofbizUrl>UpdateCalendar</@ofbizUrl>">
|
|
<input type="hidden" name="calendarId" value="${techDataCalendar.calendarId}" />
|
|
<#else>
|
|
<div class="screenlet">
|
|
<div class="screenlet-title-bar">
|
|
<ul>
|
|
<li class="h3">${uiLabelMap.ManufacturingCreateCalendar}</li>
|
|
</ul>
|
|
<br class="clear"/>
|
|
</div>
|
|
<div class="screenlet-body">
|
|
<a href="<@ofbizUrl>EditCalendar</@ofbizUrl>" class="buttontext">${uiLabelMap.ManufacturingNewCalendar}</a>
|
|
<form name="calendarform" method="post" action="<@ofbizUrl>CreateCalendar</@ofbizUrl>">
|
|
</#if>
|
|
<table class="basic-table" cellspacing="0">
|
|
<#if techDataCalendar?has_content>
|
|
<tr>
|
|
<td width='26%' align='right' valign='top' class="label">${uiLabelMap.ManufacturingCalendarId}</td>
|
|
<td width="5"> </td>
|
|
<td width="74%" valign="top"><span class="label">${techDataCalendar.calendarId!}</span> <span class="tooltip">(${uiLabelMap.CommonNotModifRecreat})</span></td>
|
|
</tr>
|
|
<#else>
|
|
<tr>
|
|
<td width='26%' align='right' valign="top" class="label">${uiLabelMap.ManufacturingCalendarId}</td>
|
|
<td width="5"> </td>
|
|
<td width="74%"><input type="text" size="12" name="calendarId" value="${calendarData.calendarId!}" /></td>
|
|
</tr>
|
|
</#if>
|
|
<tr>
|
|
<td width='26%' align='right' valign='top' class="label">${uiLabelMap.CommonDescription}</td>
|
|
<td width="5"> </td>
|
|
<td width="74%"><input type="text" size="40" name="description" value="${calendarData.description!}" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td width='26%' align='right' valign='top' class="label">${uiLabelMap.ManufacturingCalendarWeekId}</td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<select name="calendarWeekId">
|
|
<#list calendarWeeks as calendarWeek>
|
|
<option value="${calendarWeek.calendarWeekId}" <#if calendarData?has_content && calendarData.calendarWeekId?default("") == calendarWeek.calendarWeekId>SELECTED</#if>>${(calendarWeek.get("description",locale))!}</option>
|
|
</#list>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="top"></td>
|
|
<td width="5"> </td>
|
|
<td width="74%"><input type="submit" value="${uiLabelMap.CommonUpdate}" /></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div> |