# Python imports

# Django imports
from django import forms

# LeakLess Monitor imports
NOTIFICATION_TYPE = (
    ('success'  , 'General'),
    ('info'     , 'Information'),
    ('warning'  , 'Warning'),
    ('danger'   , 'Danger'),
)

NOTIFICATION_ICON = (
    ('ok'     , 'Checkmark'),
    ('remove' , 'Cross'),
    ('cog'    , 'Mechanical wheel'),
    ('star'   , 'Star'),
)


class NewNotificationForm(forms.Form):
    notification_icon = forms.ChoiceField(choices=NOTIFICATION_ICON,required=True)
    notification_icon.group ='General'
    notification_icon.label ='Icon'
    notification_type = forms.ChoiceField(choices=NOTIFICATION_TYPE,required=True)
    notification_type.group ='General'
    notification_type.label ='Type'
    notification_valid = forms.IntegerField(max_value=10000,required=True,help_text="Number of days")
    notification_valid.initial=7
    notification_valid.group='General'
    notification_valid.label='Valid for'

    valid_cro = forms.BooleanField(required=False)
    valid_cro.group='Cro'
    valid_cro.label='Spremi'
    header_cro = forms.CharField(max_length=20,required=False)
    header_cro.group='Cro'
    header_cro.label='Podnaslov'
    title_cro = forms.CharField(max_length=40,required=False)
    title_cro.group='Cro'
    title_cro.label='Naslov'
    text_cro = forms.CharField(max_length=800,required=False,widget=forms.Textarea)
    text_cro.group='Cro'
    text_cro.label='Tekst'

    valid_eng = forms.BooleanField(required=False)
    valid_eng.group='Cro'
    valid_eng.label='Save'
    header_eng = forms.CharField(max_length=20, required=False)
    header_eng.group = 'Eng'
    header_eng.label='Header'
    title_eng = forms.CharField(max_length=40, required=False)
    title_eng.group = 'Eng'
    title_eng.label='Title'
    text_eng = forms.CharField(max_length=800, required=False,widget=forms.Textarea)
    text_eng.group = 'Eng'
    text_eng.label='Text'

