8243eb1daf5ba5ec2cba030cfe20597102ac102d
[timetracker.git] / WEB-INF / templates / cf_monthly_quota.tpl
1 {$forms.monthlyQuotaForm.open}
2 <table>
3     <tr>
4         <td>{$i18n.label.year}</td>
5         <td>{$forms.monthlyQuotaForm.years.control}</td>
6     </tr>
7     <tr>
8         <td colspan="2">
9             <table> 
10             <tr>
11                 <td class="tableHeader">{$i18n.label.month}</td>
12                 <td class="tableHeader">{$i18n.label.quota}</td>
13             </tr>
14  {foreach $months as $month}
15                 <tr>
16                     <td>{$month}</td>
17                     <td>{$forms.monthlyQuotaForm.$month.control}</td>
18                 </tr>
19  {/foreach}         
20                 <tr>
21                     <td colspan="2" style="text-align:center;">
22                         <input type="submit" value="{$i18n.button.save}">
23                     </td>
24                 </tr>
25             </table>
26         </td>
27     </tr>
28 </table>
29 {$forms.monthlyQuotaForm.close}
30 <script>
31 function yearChange(value){
32     var url = window.location.href;
33     
34     if (url.indexOf('?') > 0){
35         var parameter = url.substring(url.indexOf('?') + 1, url.length);
36         url = url.replace(parameter, 'year=' + value);
37     } else {
38         url = '?year=' + value;
39     }
40     
41     window.location = url;
42 }
43 </script>