Gruppen, Hilfepläne und Mitarbeiter werden bei änderung der Checkbox in der Auswahlliste der Gruppenbuchung hinzugefügt bzw. entnommen. Der Hinzufügen-Button wurde entfernt.

This commit is contained in:
Lyndon
2019-04-17 18:00:40 +02:00
parent 19678aa365
commit 09c7cb679f
2 changed files with 3 additions and 9 deletions

View File

@@ -107,8 +107,6 @@ function openGroupBookingTab(isSupportConceptTab) {
}
function addSupportConcepts() {
hideGroupBookingPopup();
addSupportConceptsViaGet();
}
@@ -164,8 +162,6 @@ function hideEmployeePopup() {
}
function addEmployees() {
hideEmployeePopup();
addEmployeesViaGet();
}

View File

@@ -636,7 +636,7 @@
{
<tr>
<td style="width: 1%; white-space: nowrap;">
<input type="checkbox" value="@hp.Value" name="costbearer2supportconcept_@hp.Value" id="costbearer2supportconcept_@hp.Value" @if (Model.SelectedCostbearerRelOids.Contains(long.Parse(hp.Value))) { @Html.Raw("checked=\"checked\"") } />
<input type="checkbox" value="@hp.Value" onchange="addSupportConcepts()" name="costbearer2supportconcept_@hp.Value" id="costbearer2supportconcept_@hp.Value" @if (Model.SelectedCostbearerRelOids.Contains(long.Parse(hp.Value))) { @Html.Raw("checked=\"checked\"") } />
</td>
<td class="group-booking-text-cell">
@hp.Text
@@ -651,7 +651,7 @@
{
<tr>
<td style="width: 1px; white-space: nowrap;">
<input type="checkbox" value="@gruppe.Value" name="group_@gruppe.Value" id="group_@gruppe.Value" @if (Model.SelectedGroupOfPeopleOids.Contains(long.Parse(gruppe.Value))) { @Html.Raw("checked=\"checked\"") } />
<input type="checkbox" value="@gruppe.Value" onchange="addSupportConcepts()" name="group_@gruppe.Value" id="group_@gruppe.Value" @if (Model.SelectedGroupOfPeopleOids.Contains(long.Parse(gruppe.Value))) { @Html.Raw("checked=\"checked\"") } />
</td>
<td class="group-booking-text-cell">
@gruppe.Text
@@ -661,7 +661,6 @@
</table>
</div>
</div>
<input type="button" onclick="addSupportConcepts()" value="Hinzufügen" />
</div>
<div id="employeePopupContainer" class="see-thru-popup-container" onclick="hideEmployeePopup()"></div>
@@ -675,7 +674,7 @@
{
<tr>
<td style="width: 1%; white-space: nowrap;">
<input type="checkbox" value="@ma.Value" name="employee_@i" id="employee_@i" @if (Model.SelectedEmployees.Any(a => a.EmployeeOid == long.Parse(ma.Value))) { @Html.Raw("checked=\"checked\"") } />
<input type="checkbox" value="@ma.Value" onchange="addEmployees()" name="employee_@i" id="employee_@i" @if (Model.SelectedEmployees.Any(a => a.EmployeeOid == long.Parse(ma.Value))) { @Html.Raw("checked=\"checked\"") } />
</td>
<td class="group-booking-text-cell">
@ma.Text
@@ -686,7 +685,6 @@
</table>
}
</div>
<input type="button" onclick="addEmployees()" value="Hinzufügen" />
</div>
@{