@using (Html.BeginForm("CreateServiceRecord", "Main", FormMethod.Post, new { id = "createSRForm" }))
{
@@ -273,8 +287,17 @@
+
+ @{
+ var shouldShowServiceRecordList = "display: block";
- @using (Html.BeginForm("LoadServiceRecords", "Main", FormMethod.Post, new { id = "selectSCForm2" }))
+ if (Model.IsInGroupBookingMode && !Model.IsInEditingMode)
+ {
+ shouldShowServiceRecordList = "display: none";
+ }
+ }
+
+ @using (Html.BeginForm("LoadServiceRecords", "Main", FormMethod.Post, new { id = "selectSCForm2", style = shouldShowServiceRecordList }))
{
@@ -292,22 +315,29 @@
-
+
@foreach(var record in Model.ServiceRecords)
{