Reservation calendar 4
This commit is contained in:
		@ -686,7 +686,9 @@ func (m *Repository) AdminReservationsCalendar(w http.ResponseWriter, r *http.Re
 | 
			
		||||
				}
 | 
			
		||||
			} else {
 | 
			
		||||
				// it's a block
 | 
			
		||||
				blockMap[y.StartDate.Format("2006-01-2")] = y.ReservationID
 | 
			
		||||
				for d := y.StartDate; !d.After(y.EndDate); d = d.AddDate(0, 0, 1) {
 | 
			
		||||
					blockMap[d.Format("2006-01-2")] = y.ID
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		data[fmt.Sprintf("reservation_map_%d", x.ID)] = reservationMap
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user