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'">
5 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
8 <script type="text/javascript">
10 // MochiKit.DOM.getElement('form_responsable').focus();
11 MochiKit.DOM.getElement('form_anio').focus();
12 <span py:for="d in record.docentes_curso" py:strip="True">
13 MochiKit.DOM.appendChildNodes("form_docentes_curso", OPTION({"value":${d['id']}}, '${d['label']}'))
16 <span py:for="a in record.alumnos_inscriptos" py:strip="True">
17 MochiKit.DOM.appendChildNodes("form_alumnos", OPTION({"value":${a['id']}}, '${a['label']}'))
20 MochiKit.DOM.addLoadEvent(init_data)
22 function makeOption(option) {
23 return OPTION({"value": option.value}, option.text);
26 function moveOption( fromSelect, toSelect) {
27 // add 'selected' nodes toSelect
28 appendChildNodes(toSelect,
29 map( makeOption,ifilter(itemgetter('selected'), $(fromSelect).options)));
30 // remove the 'selected' fromSelect
31 // replaceChildNodes(fromSelect,
32 // list(ifilterfalse(itemgetter('selected'), $(fromSelect).options)));
35 function mover( src, dest ) {
39 function remover (src, dest) {
40 replaceChildNodes(src,list(ifilterfalse(itemgetter('selected'), $(src).options)))
46 <h1>Modificación de <span py:replace="name">Objeto</span></h1>
48 <div py:replace="form(value=record, action=tg.url('/curso/update/%d' % record.id),
49 submit_text=_(u'Guardar'))">Formulario</div>
51 <a href="${tg.url('/curso/from_file/%d' % record.id)}">Agregar Alumnos desde archivo</a>
54 <a href="${tg.url('/curso/show/%d' % record.id)}">Ver (cancela)</a> |
55 <a href="${tg.url('/curso/list')}">Volver (cancela)</a>