Development

This commit is contained in:
Matthew Grotke 2026-05-24 03:52:26 -04:00
parent 867911f276
commit 375e8cf8b6
2 changed files with 8 additions and 8 deletions

View file

@ -1075,7 +1075,7 @@ def _render_item(item, tokens, inherited_req=None):
return f'<select name="{name}" class="form-select"{extra}>{options}</select>' return f'<select name="{name}" class="form-select"{extra}>{options}</select>'
if t == 'spacer': if t == 'spacer':
return '<span style="flex:1"></span>' return '<span style="margin-left:auto"></span>'
if t == 'button_row': if t == 'button_row':
inner = render_items(item.get('items', []), tokens, req) inner = render_items(item.get('items', []), tokens, req)

View file

@ -525,18 +525,18 @@
"type": "button_row", "type": "button_row",
"items": [ "items": [
{ {
"type": "button_danger", "type": "button_ghost",
"action": "/action/clear_ddns_log", "action": "/action/download_ddns_log",
"method": "post", "text": "Download Log"
"text": "Clear Log"
}, },
{ {
"type": "spacer" "type": "spacer"
}, },
{ {
"type": "button_ghost", "type": "button_danger",
"action": "/action/download_ddns_log", "action": "/action/clear_ddns_log",
"text": "Download Log" "method": "post",
"text": "Clear Log"
} }
] ]
}, },