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'">
6 <script type="text/javascript">
7 function makeOption(option) {
8 return OPTION({"value": option.value}, option.text);
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))
21 function mover(src, dest) {
25 function remover( src, dest ) {
29 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
34 <h1>Crear Nuevo <span py:replace="name">Objeto</span></h1>
36 <p py:replace="form(action=tg.url('/curso/create'), value=values, submit_text=_('Crear'))">Formulario</p>
39 <a href="${tg.url('/curso/list')}">Cancelar</a>