You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by bu...@apache.org on 2010/02/17 18:17:52 UTC

svn commit: r911079 - in /ofbiz/trunk: framework/widget/templates/ themes/bizznesstime/webapp/bizznesstime/css/ themes/bluelight/webapp/bluelight/ themes/droppingcrumbs/webapp/droppingcrumbs/css/ themes/flatgrey/webapp/flatgrey/ themes/tomahawk/webapp/...

Author: buscob
Date: Wed Feb 17 17:17:52 2010
New Revision: 911079

URL: http://svn.apache.org/viewvc?rev=911079&view=rev
Log:
The Visual Theme can now re-define the calendar button icon

Modified:
    ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl
    ofbiz/trunk/themes/bizznesstime/webapp/bizznesstime/css/legacy.css
    ofbiz/trunk/themes/bluelight/webapp/bluelight/style.css
    ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/css/style.css
    ofbiz/trunk/themes/flatgrey/webapp/flatgrey/maincss.css
    ofbiz/trunk/themes/tomahawk/webapp/tomahawk/css/style.css

Modified: ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl?rev=911079&r1=911078&r2=911079&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl (original)
+++ ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl Wed Feb 17 17:17:52 2010
@@ -82,20 +82,24 @@
 </#macro>
 
 <#macro renderDateTimeField name className alert title value size maxlength id dateType shortDateInput timeDropdownParamName defaultDateTimeString calGif localizedIconTitle timeDropdown timeHourName classString hour1 hour2 timeMinutesName minutes isTwelveHour ampmName amSelected pmSelected compositeType formName>
-    <input type="text" name="${name}" <@renderClass className alert /><#rt/>
+<div class="view-calendar"><ul>
+<li><input type="text" name="${name}" <@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}"</#if>/><#rt/>
+<#if maxlength?has_content>  maxlength="${maxlength}"</#if><#if id?has_content> id="${id}"</#if>/><#rt/></li>
 <#if dateType!="time" >
+<li>
 <#if shortDateInput?exists && shortDateInput>
  <a href="javascript:call_cal_notime(document.<#rt/>
 <#else>
  <a href="javascript:call_cal(document.<#rt/>
 </#if>
-${formName}.<#if timeDropdownParamName?has_content>${timeDropdownParamName}</#if><#if defaultDateTimeString?has_content>,'${defaultDateTimeString}'</#if>);"><#rt/>
-<#if calGif?has_content><img src="${calGif}" width="16" height="16" border="0" alt="<#if localizedIconTitle?has_content>${localizedIconTitle}</#if>" title="<#if localizedIconTitle?has_content>${localizedIconTitle}</#if>"/><#rt/></#if>
+${formName}.<#if timeDropdownParamName?has_content>${timeDropdownParamName}</#if><#if defaultDateTimeString?has_content>,'${defaultDateTimeString}'</#if>);" 
+title="<#if localizedIconTitle?has_content>${localizedIconTitle}</#if>"<#rt/>
 </a><#rt/>
+</li>
 </#if>
 <#if timeDropdown?has_content && timeDropdown=="time-dropdown">
+<li>
  <select name="${timeHourName}" <#if classString?has_content>class="${classString}"</#if>><#rt/>
  <#if isTwelveHour>
 <#assign x=11>
@@ -113,15 +117,20 @@
 <#list 0..x as i>
 <option value="${i}"<#if minutes?has_content><#if i=minutes> selected="selected"</#if></#if>>${i}</option><#rt/>
 </#list>
-</select><#rt/>
+</select></li>
+<#rt/>
 <#if isTwelveHour>
+<li>
  <select name="${ampmName}" <#if classString?has_content>class="${classString}"</#if>><#rt/>
  <option value="AM" ${amSelected}>AM</option><#rt/>
  <option value="PM" ${pmSelected}>PM</option><#rt/>
- </select><#rt/>
+ </select>
+</li><#rt/>
 </#if>
+</ul>
 <input type="hidden" name="${compositeType}" value="Timestamp"/>
 </#if>
+</div>
 </#macro>
 
 <#macro renderDropDownField name className alert id multiple formName otherFieldName event action size firstInList currentValue explicitDescription allowEmpty options fieldName otherFieldName otherValue otherFieldSize dDFCurrent ajaxEnabled noCurrentSelectedKey ajaxOptions frequency minChars choices autoSelect partialSearch partialChars ignoreCase fullSearch>
@@ -339,16 +348,20 @@
 </#macro>
 
 <#macro renderDateFindField className alert name localizedInputTitle value size maxlength dateType formName defaultDateTimeString imgSrc localizedIconTitle titleStyle defaultOptionFrom defaultOptionThru opEquals opSameDay opGreaterThanFromDayStart opGreaterThan opGreaterThan opLessThan opUpToDay opUpThruDay opIsEmpty>
-<input type="text" <@renderClass className alert /><#if name?has_content> name="${name?html}_fld0_value"</#if><#if localizedInputTitle?has_content> title="${localizedInputTitle}"</#if><#if value?has_content> value="${value}"</#if><#if size?has_content> size="${size}"</#if><#if maxlength?has_content> maxlength="${maxlength}"</#if>/><#rt/>
+<div class="view-calendar"><ul>
+<li><input type="text" <@renderClass className alert /><#if name?has_content> name="${name?html}_fld0_value"</#if><#if localizedInputTitle?has_content> title="${localizedInputTitle}"</#if><#if value?has_content> value="${value}"</#if><#if size?has_content> size="${size}"</#if><#if maxlength?has_content> maxlength="${maxlength}"</#if>/></li><#rt/>
 <#if dateType != "time">
+<li>
 <#if dateType == "date">
 <a href="javascript:call_cal_notime(document.<#rt/>
 <#else>
 <a href="javascript:call_cal(document.<#rt/>
 </#if>
-<#if formName?has_content>${formName}.</#if><#if name?has_content>${name}_fld0_value,</#if>'<#if defaultDateTimeString?has_content>${defaultDateTimeString}</#if>');"><#rt/>
-<img src="${imgSrc}" width="16" height="16" border="0" alt="${localizedIconTitle}" title="${localizedIconTitle}" /></a><#rt/>
+<#if formName?has_content>${formName}.</#if><#if name?has_content>${name}_fld0_value,</#if>'<#if defaultDateTimeString?has_content>${defaultDateTimeString}</#if>');" title="${localizedIconTitle}"><#rt/>
+</a><#rt/>
+</li>
 </#if>
+<li>
 <#if titleStyle?has_content>
 <span class="${titleStyle}"><#rt/>
 </#if>
@@ -361,17 +374,21 @@
 <#if titleStyle?has_content>
  </span><#rt/>
 </#if>
-<br/><#rt/>
-<input type="text" <@renderClass className alert /><#if name?has_content> name="${name}_fld1_value"</#if><#if localizedInputTitle?exists> title="${localizedInputTitle?html}"</#if><#if value2?has_content> value="${value2}"</#if><#if size?has_content> size="${size}"</#if><#if maxlength?has_content> maxlength="${maxlength}"</#if>/><#rt/>
+</li></ul>
+<ul><#rt/>
+<li><input type="text" <@renderClass className alert /><#if name?has_content> name="${name}_fld1_value"</#if><#if localizedInputTitle?exists> title="${localizedInputTitle?html}"</#if><#if value2?has_content> value="${value2}"</#if><#if size?has_content> size="${size}"</#if><#if maxlength?has_content> maxlength="${maxlength}"</#if>/></li><#rt/>
 <#if dateType != "time">
+<li>
 <#if dateType == "date">
 <a href="javascript:call_cal_notime(document.<#rt/>
 <#else>
 <a href="javascript:call_cal(document.<#rt/>
 </#if>
-<#if formName?has_content>${formName}.</#if><#if name?has_content>${name}_fld1_value,'</#if><#if defaultDateTimeString?has_content>${defaultDateTimeString}</#if>');"><#rt/>
-<img src="${imgSrc}" width="16" height="16" border="0" alt="${localizedIconTitle}" title="${localizedIconTitle}" /></a><#rt/>
+<#if formName?has_content>${formName}.</#if><#if name?has_content>${name}_fld1_value,'</#if><#if defaultDateTimeString?has_content>${defaultDateTimeString}</#if>');" title="${localizedIconTitle}"><#rt/>
+</a><#rt/>
 </#if>
+</li>
+<li>
 <#if titleStyle?has_content>
  <span class="${titleStyle}"><#rt/>
 </#if>
@@ -384,6 +401,7 @@
 <#if titleStyle?has_content>
 </span>
 </#if>
+</li></ul>
 </#macro>
 
 <#macro renderRangeFindField className alert name value size maxlength autocomplete titleStyle defaultOptionFrom opEquals opGreaterThan opGreaterThanEquals opLessThan opLessThanEquals value2 defaultOptionThru>

Modified: ofbiz/trunk/themes/bizznesstime/webapp/bizznesstime/css/legacy.css
URL: http://svn.apache.org/viewvc/ofbiz/trunk/themes/bizznesstime/webapp/bizznesstime/css/legacy.css?rev=911079&r1=911078&r2=911079&view=diff
==============================================================================
--- ofbiz/trunk/themes/bizznesstime/webapp/bizznesstime/css/legacy.css (original)
+++ ofbiz/trunk/themes/bizznesstime/webapp/bizznesstime/css/legacy.css Wed Feb 17 17:17:52 2010
@@ -502,8 +502,21 @@
 height:16px;
 }
 
-.view-calendar {
-	background: url(/images/cal.gif) no-repeat;
+.view-calendar ul{
+height: 22px;
+}
+
+.view-calendar ul li{
+float: left;
+margin: 0px;
+}
+
+.view-calendar ul li a{
+background: url(/images/cal.gif) no-repeat;
+display: block;
+margin: 3px 10px 0px 4px;
+width:16px;
+height:16px;
 }
 
 .calendar {

Modified: ofbiz/trunk/themes/bluelight/webapp/bluelight/style.css
URL: http://svn.apache.org/viewvc/ofbiz/trunk/themes/bluelight/webapp/bluelight/style.css?rev=911079&r1=911078&r2=911079&view=diff
==============================================================================
--- ofbiz/trunk/themes/bluelight/webapp/bluelight/style.css (original)
+++ ofbiz/trunk/themes/bluelight/webapp/bluelight/style.css Wed Feb 17 17:17:52 2010
@@ -1894,8 +1894,20 @@
 padding: 0 30px 0 30px;
 }
 
-.view-calendar {
-    background: url(/images/cal.gif) no-repeat;
+.view-calendar ul{
+height: 25px;
+}
+
+.view-calendar ul li{
+float: left;
+}
+
+.view-calendar ul li a{
+background: url(/images/cal.gif) no-repeat;
+display: block;
+margin: 3px 10px 0px 4px;
+width:22px;
+height:22px;
 }
 
 .field-lookup ul li {

Modified: ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/css/style.css
URL: http://svn.apache.org/viewvc/ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/css/style.css?rev=911079&r1=911078&r2=911079&view=diff
==============================================================================
--- ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/css/style.css (original)
+++ ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/css/style.css Wed Feb 17 17:17:52 2010
@@ -1871,7 +1871,23 @@
 }
 
 .view-calendar {
+display: inline;
+}
+
+.view-calendar ul{
+height: 25px;
+}
+
+.view-calendar ul li{
+float: left;
+}
+
+.view-calendar ul li a{
 background: url(/images/cal.gif) no-repeat;
+display: block;
+margin: 3px 10px 0px 4px;
+width:22px;
+height:22px;
 }
 
 .field-lookup ul li {

Modified: ofbiz/trunk/themes/flatgrey/webapp/flatgrey/maincss.css
URL: http://svn.apache.org/viewvc/ofbiz/trunk/themes/flatgrey/webapp/flatgrey/maincss.css?rev=911079&r1=911078&r2=911079&view=diff
==============================================================================
--- ofbiz/trunk/themes/flatgrey/webapp/flatgrey/maincss.css (original)
+++ ofbiz/trunk/themes/flatgrey/webapp/flatgrey/maincss.css Wed Feb 17 17:17:52 2010
@@ -1932,9 +1932,20 @@
 /* ================================= */
 /* ===== Visual Embellishments ===== */
 /* ================================= */
+.view-calendar ul{
+height: 22px;
+}
+
+.view-calendar ul li{
+float: left;
+}
 
-.view-calendar {
+.view-calendar ul li a{
 background: url(/images/cal.gif) no-repeat;
+display: block;
+margin: 3px 10px 0px 4px;
+width:16px;
+height:16px;
 }
 
 .field-lookup ul li {

Modified: ofbiz/trunk/themes/tomahawk/webapp/tomahawk/css/style.css
URL: http://svn.apache.org/viewvc/ofbiz/trunk/themes/tomahawk/webapp/tomahawk/css/style.css?rev=911079&r1=911078&r2=911079&view=diff
==============================================================================
--- ofbiz/trunk/themes/tomahawk/webapp/tomahawk/css/style.css (original)
+++ ofbiz/trunk/themes/tomahawk/webapp/tomahawk/css/style.css Wed Feb 17 17:17:52 2010
@@ -2046,9 +2046,22 @@
 padding: 0 30px 0 30px;
 }
 
-.view-calendar {
+.view-calendar ul{
+height: 26px;
+}
+
+.view-calendar ul li{
+float: left;
+}
+
+.view-calendar ul li a{
 background: url(../images/cal.png) no-repeat;
+display: block;
+margin: 3px 10px 0px 4px;
+width:22px;
+height:22px;
 }
+
 .CalLookupImage {
 display:inline-block;
 background: url(../images/cal.png) no-repeat;



Re: svn commit: r911079 - in /ofbiz/trunk: framework/widget/templates/ themes/bizznesstime/webapp/bizznesstime/css/ themes/bluelight/webapp/bluelight/ themes/droppingcrumbs/webapp/droppingcrumbs/css/ themes/flatgrey/webapp/flatgrey/ themes/tomahawk/webapp/...

Posted by Adam Heath <do...@brainfood.com>.
buscob@apache.org wrote:
> Author: buscob
> Date: Wed Feb 17 17:17:52 2010
> New Revision: 911079
> 
> URL: http://svn.apache.org/viewvc?rev=911079&view=rev
> Log:
> The Visual Theme can now re-define the calendar button icon
> 
> Modified:
>     ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl

You need to modify the other macro form libraries too, there are 2 others.