[Vtigercrm-commits] [vtiger-commits] r10731 - in /vtigercrm/branches/5.0.3: Smarty/templates/ActivityEditView.tpl modules/Calendar/addEventUI.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 19 07:38:22 EDT 2007
Author: richie
Date: Thu Apr 19 05:38:12 2007
New Revision: 10731
Log:
fix for modules calender - - - - - - - -> Repeat - -> Enable Repeat - -> Enter days,week( negative value check). Fixes #3358 --minnie
Modified:
vtigercrm/branches/5.0.3/Smarty/templates/ActivityEditView.tpl
vtigercrm/branches/5.0.3/modules/Calendar/addEventUI.php
Modified: vtigercrm/branches/5.0.3/Smarty/templates/ActivityEditView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/ActivityEditView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/ActivityEditView.tpl Thu Apr 19 05:38:12 2007
@@ -519,7 +519,16 @@
<table border=0 cellspacing=0 cellpadding=2>
<tr>
<td>{$MOD.LBL_REPEAT_ONCE}</td>
- <td><input type="text" name="repeat_frequency" class="textbox" style="width:20px" value="{$ACTIVITYDATA.repeat_frequency}" ></td>
+ <td>
+ <select name="repeat_frequency">
+ {section name="repeat" loop=15 start=1 step=1}
+ {if $smarty.section.repeat.iteration eq $ACTIVITYDATA.repeat_frequency}
+ {assign var="test" value="selected"}
+ {else} {assign var="test" value=""} {/if}
+ <option "{$test}" value="{$smarty.section.repeat.iteration}">{$smarty.section.repeat.iteration}</option>
+ {/section}
+ </select>
+ </td>
<td><select name="recurringtype">
<option value="Daily" onClick="ghide('repeatWeekUI'); ghide('repeatMonthUI');" {if $ACTIVITYDATA.eventrecurringtype eq 'Daily'} selected {/if}>{$MOD.LBL_DAYS}</option>
<option value="Weekly" onClick="gshow('repeatWeekUI'); ghide('repeatMonthUI');" {if $ACTIVITYDATA.eventrecurringtype eq 'Weekly'} selected {/if}>{$MOD.LBL_WEEKS}</option>
Modified: vtigercrm/branches/5.0.3/modules/Calendar/addEventUI.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Calendar/addEventUI.php (original)
+++ vtigercrm/branches/5.0.3/modules/Calendar/addEventUI.php Thu Apr 19 05:38:12 2007
@@ -507,7 +507,11 @@
<td>
<?php echo $mod_strings['LBL_REPEATEVENT']; ?>
</td>
- <td><input type="text" name="repeat_frequency" class="textbox" style="width:20px" value="" ></td>
+ <td><select name="repeat_frequency">
+ <?php for($i=1;$i<=14;$i++) { ?>
+ <option value="<?php echo $i ?>"><?php echo $i ?></option>
+ <?php } ?>
+ </select></td>
<td>
<select name="recurringtype">
<option value="Daily" onClick="ghide('repeatWeekUI'); ghide('repeatMonthUI');"><?php echo $mod_strings['LBL_DAYS']; ?></option>
More information about the vtigercrm-commits
mailing list