Changeset 255 for trunk/root/templates


Ignore:
Timestamp:
12/05/09 18:48:26 (15 years ago)
Author:
nanardon
Message:
  • use prototype to validate poll date
Location:
trunk/root/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/root/templates/admin/date.tt

    r253 r255  
    77[% IF poll.status == 'BEFORE' %] 
    88<div class="box" style="float: left; width: 55%;"> 
    9 <form action="[% c.uri_for(poll.uid, 'date') %]" method="POST"> 
     9<form action="[% c.uri_for(poll.uid, 'date') %]" method="POST" id="dateform"> 
    1010 
    1111<!-- http://www.mattkruse.com/javascript/calendarpopup/ --> 
     
    2929<br> 
    3030<hr> 
    31 <input type="submit" name="pollparam" value="Enregistrer"> 
     31[% c.prototype.observe_form('dateform', 
     32    url => c.uri_for('/ajax', 'datecheck'), 
     33    update => 'datesub', 
     34    frequency => 2, 
     35) %] 
     36<div id="datesub"> 
     37</div> 
    3238</form> 
    3339</div> 
  • trunk/root/templates/includes/header.tt

    r252 r255  
    88 
    99<script language="JavaScript" src="[% c.uri_for('/static', 'js', 'CalendarPopup.js') %]"></SCRIPT> 
     10<script language="JavaScript" src="[% c.uri_for('/static', 'js', 'prototype', 
     11    'controls.js') %]"></SCRIPT> 
     12<script language="JavaScript" src="[% c.uri_for('/static', 'js', 'prototype', 
     13    'dragdrop.js') %]"></SCRIPT> 
     14<script language="JavaScript" src="[% c.uri_for('/static', 'js', 'prototype', 
     15    'effects.js') %]"></SCRIPT> 
     16<script language="JavaScript" src="[% c.uri_for('/static', 'js', 'prototype', 
     17    'prototype.js') %]"></SCRIPT> 
    1018 
    1119</head> 
Note: See TracChangeset for help on using the changeset viewer.