source: trunk/calendar/templates/default/holiday.tpl @ 5132

Revision 5132, 1.3 KB checked in by wmerlotto, 12 years ago (diff)

Ticket #2305 - Enviando alteracoes, desenvolvidas internamente na Prognus, do modulo calendar.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<!-- BEGIN form -->
2
3
4<script type="text/javascript"> 
5        function valida(){
6                if (document.getElementsByName("holiday[locale]")[0].selectedIndex == 0){
7                         alert("Por favor, selecione um país para inclusão deste feríado.");
8                         return false;
9                }
10                if( (document.getElementsByName("holiday[mday]")[0].selectedIndex == 0) ||
11                   (document.getElementsByName("holiday[month_num]")[0].selectedIndex == 0) ||
12                   (document.getElementsByName("holiday[year]")[0].selectedIndex == 0) ){
13                         alert("Por favor, informe uma data.");
14                         return false;
15                }else{
16                        document.forms["form"].submit();
17                }
18        }
19</script>
20
21<center>
22{message}<br>
23<table border="0" width="80%" cellspacing="2" cellpadding="2"> 
24 <form name="form" action="{actionurl}" method="POST">
25  {hidden_vars}
26{rows}
27 <tr>
28  <td colspan="2">
29   <table width="100%" border="0" cellspacing="5">
30    <tr>
31     <td>
32      <input type="button" onclick="javascript:valida();" value="{lang_add}"></form>
33     </td>
34     <td>
35      {cancel_button}
36     </td>
37     <td align="right" width="80%">
38      {delete_button}
39     </td>
40    </tr>
41   </table>
42  <td>
43 </tr>
44</table>
45</center>
46<!-- END form -->
47<!-- BEGIN list -->
48 <tr bgcolor="{tr_color}">
49  <td valign="top" width="35%"><b>{field}:</b></td>
50  <td valign="top" width="65%">{data}</td>
51 </tr>
52<!-- END list -->
Note: See TracBrowser for help on using the repository browser.