Transferred the loading of the arrays for the booking forms into a own separate
method. Impemented the booking.edit view and controller method. Fixed the bug in the bookings.index view that only months with cashflow are listed.
This commit is contained in:
@@ -25,7 +25,8 @@
|
||||
<th>Projekt</th>
|
||||
</tr>
|
||||
@for ($month = 1; $month <= 12; $month++)
|
||||
@if (isset($bookings[$month]))
|
||||
@if (date('Y') > $year
|
||||
or (date('Y') == $year and date('m') >= $month))
|
||||
<tr style='color: red; font-weight: bold'>
|
||||
<td></td>
|
||||
<td></td>
|
||||
@@ -37,6 +38,8 @@
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
@endif
|
||||
@if (isset($bookings[$month]))
|
||||
@foreach($bookings[$month] as $booking)
|
||||
<tr>
|
||||
<td>
|
||||
@@ -99,6 +102,9 @@
|
||||
@endforeach
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
@if (date('Y') > $year
|
||||
or (date('Y') == $year and date('m') >= $month))
|
||||
<tr style='color: #000080; font-weight: bold'>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
||||
Reference in New Issue
Block a user