# Path: twobuntu/touch/generator.py
# TEMPLATES = {
#     'bq-aquaris': {
#         'title': 'BQ Aquaris E4.5 Ubuntu Edition',
#         'frame': (671, 1305),
#         'screen': (540, 960),
#         'offset': (65, 145),
#         'panel': 37,
#     },
#     'meizu-mx3': {
#         'title': 'Meizu MX3',
#         'frame': (1346, 2313),
#         'screen': (1080, 1800),
#         'offset': (131, 213),
#         'panel': 73,
#     },
# }


from django import forms
from twobuntu.touch.generator import TEMPLATES



class DeviceArtForm(forms.Form):
    """
    Form for uploading an app image.
    """

    template = forms.TypedChoiceField(
        initial='bq-aquaris',

# Path: twobuntu/touch/generator.py
# TEMPLATES = {
#     'bq-aquaris': {
#         'title': 'BQ Aquaris E4.5 Ubuntu Edition',
#         'frame': (671, 1305),
#         'screen': (540, 960),
#         'offset': (65, 145),
#         'panel': 37,
#     },
#     'meizu-mx3': {
#         'title': 'Meizu MX3',
#         'frame': (1346, 2313),
#         'screen': (1080, 1800),
#         'offset': (131, 213),
#         'panel': 73,
#     },
# }


# Path: twobuntu/touch/forms.py
from django import forms
from twobuntu.touch.generator import TEMPLATES




class DeviceArtForm(forms.Form):
    """
    Form for uploading an app image.
    """

    template = forms.TypedChoiceField(
        initial='bq-aquaris',

        choices=[(k, TEMPLATES[k]['title']) for k in sorted(TEMPLATES.keys())],