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="''"/>
7 <script type="text/javascript">
9 <span py:for="a in record.tareas_fuente" py:strip="True">
10 MochiKit.DOM.appendChildNodes("form_tareas_fuente_to", OPTION({"value":${a['id']}}, '${a['label']}'))
12 <span py:for="a in record.tareas_prueba" py:strip="True">
13 MochiKit.DOM.appendChildNodes("form_tareas_prueba_to", OPTION({"value":${a['id']}}, '${a['label']}'))
15 // Saco de FROM los que ya estan en TO
16 replaceChildNodes('form_tareas_fuente_from', list(ifilterfalse(
17 partial(esta_en_to, $('form_tareas_fuente_to').options),
18 $('form_tareas_fuente_from').options
20 replaceChildNodes('form_tareas_prueba_from', list(ifilterfalse(
21 partial(esta_en_to, $('form_tareas_prueba_to').options),
22 $('form_tareas_prueba_from').options
25 function esta_en_to (options, i) {
26 for (j=0; j < options.length; j++)
27 if (options[j].value == i.value)
31 MochiKit.DOM.addLoadEvent(init_data)
36 <h1>Modificación de <span py:replace="name">Objeto</span></h1>
38 <div py:replace="form(value=record, action=tg.url('/enunciado/update/%d' % record.id),
39 submit_text=_(u'Guardar'))">Formulario</div>
42 <a href="${tg.url('/enunciado/show/%d' % record.id)}">Ver (cancela)</a> |
43 <a href="${tg.url('/enunciado/list')}">Volver (cancela)</a>