From 481e60fa4583cfb1de0dc8688069177d93cc08b7 Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Sun, 1 May 2022 16:57:36 +0100 Subject: [PATCH] mirrors: auto-rotate form and table --- app/portal/__init__.py | 3 ++- app/portal/templates/tables.html.j2 | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/portal/__init__.py b/app/portal/__init__.py index 726ad8f..8d90fcb 100644 --- a/app/portal/__init__.py +++ b/app/portal/__init__.py @@ -133,7 +133,8 @@ def edit_origin(origin_id): message="The requested origin could not be found."), status=404) form = EditOriginForm(group=origin.group_id, - description=origin.description) + description=origin.description, + auto_rotate=origin.auto_rotation) form.group.choices = [(x.id, x.group_name) for x in Group.query.all()] if form.validate_on_submit(): origin.group_id = form.group.data diff --git a/app/portal/templates/tables.html.j2 b/app/portal/templates/tables.html.j2 index 5c7043c..ef7fddf 100644 --- a/app/portal/templates/tables.html.j2 +++ b/app/portal/templates/tables.html.j2 @@ -5,8 +5,7 @@ Name Description - Mirrors - Proxies + Auto-rotation Group Actions