use proper names for new form fields
This commit is contained in:
		| @@ -198,7 +198,7 @@ function initNewChoice(select: HTMLInputElement) { | |||||||
| 	const name = event.detail.label; | 	const name = event.detail.label; | ||||||
|  |  | ||||||
| 	if (event.detail.customProperties.is_cox) { | 	if (event.detail.customProperties.is_cox) { | ||||||
| 		const coxSelect = <HTMLSelectElement>document.querySelector('#cox'); | 		const coxSelect = <HTMLSelectElement>document.querySelector('#shipmaster'); | ||||||
| 		if (coxSelect){ | 		if (coxSelect){ | ||||||
| 			coxSelect.add(new Option(name, user_id)); | 			coxSelect.add(new Option(name, user_id)); | ||||||
| 		} | 		} | ||||||
| @@ -215,7 +215,7 @@ function initNewChoice(select: HTMLInputElement) { | |||||||
|  |  | ||||||
| 		const user_id = event.detail.value; | 		const user_id = event.detail.value; | ||||||
|  |  | ||||||
| 		const coxSelect = <HTMLSelectElement>document.querySelector('#cox'); | 		const coxSelect = <HTMLSelectElement>document.querySelector('#shipmaster'); | ||||||
| 		if (coxSelect) { | 		if (coxSelect) { | ||||||
| 			for (var i=0; i<coxSelect.length; i++) { | 			for (var i=0; i<coxSelect.length; i++) { | ||||||
| 	    			if (coxSelect.options[i].value == user_id) | 	    			if (coxSelect.options[i].value == user_id) | ||||||
|   | |||||||
| @@ -41,7 +41,7 @@ | |||||||
| 		{% if not only_ones %} | 		{% if not only_ones %} | ||||||
| 			{{ log::rower_select(id="newrower", selected=[], class="col-span-4", init=true) }} | 			{{ log::rower_select(id="newrower", selected=[], class="col-span-4", init=true) }} | ||||||
| 		{% endif %} | 		{% endif %} | ||||||
| 		{{ macros::select(label="Schiffsführer", data=[], name='cox', wrapper_class="col-span-2") }} | 		{{ macros::select(label="Schiffsführer", data=[], name='shipmaster', wrapper_class="col-span-2") }} | ||||||
| 		{{ macros::select(label="Steuerperson", data=[], name='steering_person', wrapper_class="col-span-2") }} | 		{{ macros::select(label="Steuerperson", data=[], name='steering_person', wrapper_class="col-span-2") }} | ||||||
| 		{{ macros::input(label='Abfahrtszeit', name='departure', type='datetime-local', required=true, wrapper_class='col-span-2') }} | 		{{ macros::input(label='Abfahrtszeit', name='departure', type='datetime-local', required=true, wrapper_class='col-span-2') }} | ||||||
| 		{{ macros::input(label='Ankunftszeit', name='arrival', type='datetime-local', wrapper_class='col-span-2') }} | 		{{ macros::input(label='Ankunftszeit', name='arrival', type='datetime-local', wrapper_class='col-span-2') }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user