got events + current event from service (ajax) instead of jade.
Implemented block editing logic in events service.
added logic to test if events end date has passed. (Fixed start+end date saving for event)
Camp View
Fixed if statements for showing editing button for admin and camp manager.
Used event service to test if camp is editable.
Tradeoffs
Data is fetched through ajax instead of server rendered.
We should consider showing disabled buttons instead of hiding them.
What's the expected behavior for events without end_time.
Testing Done
Login as camp manager.
Login separately as admin.
disable editing for event (refresh as manager and see effects)
play with events end_time in admin panel (refresh as manager and see effects)
Proposed solution
if
statements for showing editing button for admin and camp manager.Tradeoffs
Data is fetched through ajax instead of server rendered. We should consider showing disabled buttons instead of hiding them. What's the expected behavior for events without end_time.
Testing Done