Hello everyone,
I have my list of records, and I have an "edit" buttonWhen you click open the form that I have put, where I load the values of each field that were stored in the database.
And in theory, you can change the data and giving it to save are updated.But when I give him to save,
1) not written does not save me, only the dropdown option
2) When I enter and I do not modify some fields, or all, these I deleted them. I do not touch it and it erases it.I
made the form, and before that I kept the "value =" customer record "" and it appeared in the "customer record" list so I have removed it.
Reading in the forum, in several post, I understood, that you have to put in the form a "concept" "input" and call the record saved with the model name + the column.I copy a bit of my form in case someone sees my error.
Thanks
I have my list of records, and I have an "edit" buttonWhen you click open the form that I have put, where I load the values of each field that were stored in the database.
And in theory, you can change the data and giving it to save are updated.But when I give him to save,
1) not written does not save me, only the dropdown option
2) When I enter and I do not modify some fields, or all, these I deleted them. I do not touch it and it erases it.I
made the form, and before that I kept the "value =" customer record "" and it appeared in the "customer record" list so I have removed it.
Reading in the forum, in several post, I understood, that you have to put in the form a "concept" "input" and call the record saved with the model name + the column.I copy a bit of my form in case someone sees my error.
Thanks
<div class="inline three fields" id="area_fields_2">
<input type="hidden" name="trafico[id]" />
<div class="field inline " ><label for="NServicio" >Nº Servicio</label>
<input data-events="[]" placeholder="" name="NServicio" id="NServicio" value="{var:leer_registro_trafico.registrotrafico.aid}" type="text" readonly="readonly" /></div>
<!-- <div class="field inline hidden" ><label for="creado" >Fecha creado</label>
<input data-events="[]" data-firstday="1" data-startmode="day" data-type="date" data-dformat="DD/MM/YYYY" data-sformat="YYYY-MM-DD HH:mm:ss" data-mindate="" data-maxdate="" data-startcalendar="" data-endcalendar="" data-popuppos="top center" placeholder="" name="trafico[creado]" id="creado" value="" type="text" data-calendar="1" /></div>
-->
<div class="field inline " ><label for="servicio" >Estado del Servicio</label>
<select data-validationrules='{"identifier":"servicio-main","rules":[{"type":"required","prompt":"Estado del Servicio"}]}' data-validate="servicio-main" data-events="[]" name="trafico[servicio]" id="servicio" data-mincharacters="0" type="select" class="ui dropdown" >
<option value="" >{var:leer_registro_trafico.registrotrafico.servicio}</option>
<option value="Pendiente" >Pendiente</option>
<option value="En transito" >En transito</option>
<option value="Contenedor recogido" >Contenedor recogido</option>
<option value="En destino" >En destino</option>
<option value="Salida de fabrica" >Salida de fabrica</option>
<option value="Cola de terminal" >Cola de terminal</option>
<option value="Fin de trabajo" >Fin de trabajo</option></select></div>
<div class="field inline" style="text-align:right" >
<input type='button' onclick='history.back();' class="ui button yellow" value='Atras' />
<input type='button' onclick='window.print();' class="ui button blue" value='Imprimir' />
<input type='submit' class="ui button red" value='Guardar' /></div>
</div>
<div class="ui three column grid"><div class="column column1"><div class="field inline " ><label for="cliente" >Cliente</label>
<select data-events='[{"sign":"change","action":["reload"],"value":"","identifier":["tarifa"]}]' name="trafico[cliente]" id="cliente" data-mincharacters="0" type="select" class="ui dropdown" >
<option value="" >{var:leer_registro_trafico.registrotrafico.cliente}</option>
<option value="Boluda" >Boluda</option>
<option value="WEC" >WEC</option>
<option value="Geodis Wilson Spain S.L.U." >Geodis Wilson Spain S.L.U.</option>
<option value="TIBA SPAIN, S.A.U." >TIBA SPAIN, S.A.U.</option></select></div><div class="field inline " ><label for="linea" >Linea</label>