mirrors: auto-rotate form and table
This commit is contained in:
parent
de2ca16913
commit
481e60fa45
2 changed files with 3 additions and 3 deletions
|
@ -133,7 +133,8 @@ def edit_origin(origin_id):
|
||||||
message="The requested origin could not be found."),
|
message="The requested origin could not be found."),
|
||||||
status=404)
|
status=404)
|
||||||
form = EditOriginForm(group=origin.group_id,
|
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()]
|
form.group.choices = [(x.id, x.group_name) for x in Group.query.all()]
|
||||||
if form.validate_on_submit():
|
if form.validate_on_submit():
|
||||||
origin.group_id = form.group.data
|
origin.group_id = form.group.data
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">Name</th>
|
<th scope="col">Name</th>
|
||||||
<th scope="col">Description</th>
|
<th scope="col">Description</th>
|
||||||
<th scope="col">Mirrors</th>
|
<th scope="col">Auto-rotation</th>
|
||||||
<th scope="col">Proxies</th>
|
|
||||||
<th scope="col">Group</th>
|
<th scope="col">Group</th>
|
||||||
<th scope="col">Actions</th>
|
<th scope="col">Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue