""" Add Composer in main menu
"""
from django.core.urlresolvers import reverse
from menu import Menu, MenuItem

Menu.add_item(
    "main", MenuItem("Composer", reverse("core_composer_index"))
)


types_children = (
    MenuItem("Type List", reverse("admin:core_composer_app_types"), icon="list"),
    MenuItem("Upload New Type", reverse("admin:core_composer_app_upload_type"), icon="upload")
)

Menu.add_item(
    "admin", MenuItem("TYPES", None, children=types_children)
)
