Add an ID to main menu options.

This commit is contained in:
Dave Page
2015-02-20 10:26:25 -05:00
parent a36cb5ae10
commit 7179b79b8c
4 changed files with 24 additions and 15 deletions

View File

@@ -12,14 +12,14 @@
from flask import render_template, url_for
def get_file_menu_items():
"""Return a (set) of dicts of file menu items, with name, priority and URL."""
"""Return a (set) of dicts of file menu items, with name, label, priority and URL."""
return [
{'name': 'Generated Test HTML', 'priority': 100, 'url': url_for('test.generated')},
{'name': 'Test Alert', 'priority': 200, 'url': '#', 'onclick': 'test_alert()'},
{'name': 'Test Confirm', 'priority': 300, 'url': '#', 'onclick': 'test_confirm()'},
{'name': 'Test Dialog', 'priority': 400, 'url': '#', 'onclick': 'test_dialog()'},
{'name': 'Test Prompt', 'priority': 500, 'url': '#', 'onclick': 'test_prompt()'},
{'name': 'Test Notifier', 'priority': 600, 'url': '#', 'onclick': 'test_notifier()'},
{'name': 'mnu_generate_test_html', 'label': 'Generated Test HTML', 'priority': 100, 'url': url_for('test.generated')},
{'name': 'mnu_test_alert', 'label': 'Test Alert', 'priority': 200, 'url': '#', 'onclick': 'test_alert()'},
{'name': 'mnu_test_confirm', 'label': 'Test Confirm', 'priority': 300, 'url': '#', 'onclick': 'test_confirm()'},
{'name': 'mnu_test_dialog', 'label': 'Test Dialog', 'priority': 400, 'url': '#', 'onclick': 'test_dialog()'},
{'name': 'mnu_test_prompt', 'label': 'Test Prompt', 'priority': 500, 'url': '#', 'onclick': 'test_prompt()'},
{'name': 'mnu_test_notifier', 'label': 'Test Notifier', 'priority': 600, 'url': '#', 'onclick': 'test_notifier()'},
]
def get_scripts():