]> git.llucax.com Git - software/sercom.git/blob - sercom/subcontrollers/curso/templates/new.kid
vuelvo a poner en el widget el tip
[software/sercom.git] / sercom / subcontrollers / curso / templates / new.kid
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
3     py:extends="'../../../templates/master.kid'">
4 <head>
5
6 <script type="text/javascript">
7     function makeOption(option) {
8         return OPTION({"value": option.value}, option.text);
9     }
10                    
11     function moveOption( fromSelect, toSelect) {
12         // add 'selected' nodes toSelect
13         appendChildNodes(toSelect,
14         map( makeOption,ifilter(itemgetter('selected'), $(fromSelect).options)));
15         // remove the 'selected' fromSelect
16         replaceChildNodes(fromSelect,
17             list(ifilterfalse(itemgetter('selected'), $(fromSelect).options))
18         );
19     }
20     
21     function mover(src, dest) {
22         moveOption(src, dest)
23     }
24     
25     function remover( src, dest ) {
26         moveOption(src, dest)
27     }
28 </script>
29 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
30 <title>new</title>
31 </head>
32 <body>
33
34 <h1>Crear Nuevo <span py:replace="name">Objeto</span></h1>
35
36 <p py:replace="form(action=tg.url('/curso/create'), value=values, submit_text=_('Crear'))">Formulario</p>
37 <br/>
38 <a href="${tg.url('/curso/list')}">Cancelar</a>
39
40 </body>
41 </html>