You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by er...@apache.org on 2011/07/11 20:58:26 UTC
svn commit: r1145293 -
/ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl
Author: erwan
Date: Mon Jul 11 18:58:26 2011
New Revision: 1145293
URL: http://svn.apache.org/viewvc?rev=1145293&view=rev
Log:
Using the type time for a field, when input-method=time-dropdown doesn't remove the date fields. Now, only hours and minutes are visible.
Modified:
ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl
Modified: ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl?rev=1145293&r1=1145292&r2=1145293&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl (original)
+++ ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl Mon Jul 11 18:58:26 2011
@@ -103,12 +103,14 @@ under the License.
<#macro renderDateTimeField name className alert title value size maxlength id dateType shortDateInput timeDropdownParamName defaultDateTimeString localizedIconTitle timeDropdown timeHourName classString hour1 hour2 timeMinutesName minutes isTwelveHour ampmName amSelected pmSelected compositeType formName mask="" event="" action="" step="" timeValues="">
<span class="view-calendar">
+ <#if dateType!="time" >
<input type="text" name="${name}_i18n" <@renderClass className alert /><#rt/>
<#if title?has_content> title="${title}"</#if>
<#if value?has_content> value="${value}"</#if>
<#if size?has_content> size="${size}"</#if><#rt/>
<#if maxlength?has_content> maxlength="${maxlength}"</#if>
<#if id?has_content> id="${id}_i18n"</#if>/><#rt/>
+ </#if>
<#-- the style attribute is a little bit messy but when using disply:none the timepicker is shown on a wrong place -->
<input type="text" name="${name}" style="height:1px;width:1px;border:none;background-color:transparent" <#if event?has_content && action?has_content> ${event}="${action}"</#if> <@renderClass className alert /><#rt/>
<#if title?has_content> title="${title}"</#if>