X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/0c099354041335dc9a9248b7b791656e24b53138..093cc6f1322e48e79088a864addd7fff4c34c252:/sercom/subcontrollers/curso/templates/edit.kid diff --git a/sercom/subcontrollers/curso/templates/edit.kid b/sercom/subcontrollers/curso/templates/edit.kid index 0a13da4..7cbef82 100644 --- a/sercom/subcontrollers/curso/templates/edit.kid +++ b/sercom/subcontrollers/curso/templates/edit.kid @@ -9,8 +9,8 @@ function init_data() { // MochiKit.DOM.getElement('form_responsable').focus(); MochiKit.DOM.getElement('form_anio').focus(); - - MochiKit.DOM.appendChildNodes("form_docentes_curso", OPTION({"value":${d['id']}}, '${d['label']}')) + + MochiKit.DOM.appendChildNodes("form_docentes_to", OPTION({"value":${d['id']}}, '${d['label']}')) @@ -18,28 +18,6 @@ } MochiKit.DOM.addLoadEvent(init_data) - - function makeOption(option) { - return OPTION({"value": option.value}, option.text); - } - - function moveOption( fromSelect, toSelect) { - // add 'selected' nodes toSelect - appendChildNodes(toSelect, - map( makeOption,ifilter(itemgetter('selected'), $(fromSelect).options))); - // remove the 'selected' fromSelect - // replaceChildNodes(fromSelect, - // list(ifilterfalse(itemgetter('selected'), $(fromSelect).options))); - } - - function mover( src, dest ) { - moveOption(src, dest) - } - - function remover (src, dest) { - replaceChildNodes(src,list(ifilterfalse(itemgetter('selected'), $(src).options))) - } - @@ -47,7 +25,8 @@
Formulario
-Agregar Alumnos +
+Agregar Alumnos desde archivo

Ver (cancela) |