adds device page and form for new device

- form added to push new device id to backend
- device added to db model (needs to be pushed still)
- form return right now just prints
- design for device list created, still needs some updates
This commit is contained in:
2020-05-21 18:33:58 +02:00
parent 46eece9b98
commit 3c6d950bbc
7 changed files with 86 additions and 16 deletions

View File

@ -104,7 +104,7 @@ def calendarsFromDb():
calendars = dbCalendar.getCalendars(dbCalendar, current_user.id)
pyCalendars = []
for calendar in calendars:
name = calendar.name
name = (calendar.name[:16] + '..') if len(calendar.name)> 18 else calendar.name
calendarId = calendar.calendar_id
toggle = calendar.toggle
color = calendar.color