# Path: premis_event_service/settings.py
# EVENT_ID_TYPE_XML = getattr(
#     settings, 'EVENT_ID_TYPE_XML',
#     "http://purl.org/net/untl/vocabularies/identifier-qualifiers/#UUID"
# )
# LINK_AGENT_ID_TYPE_XML = getattr(
#     settings, 'LINK_AGENT_ID_TYPE_XML',
#     "http://purl.org/net/untl/vocabularies/identifier-qualifiers/#URL"
# )
# LINK_AGENT_ID_ROLE_XML = getattr(
#     settings, 'LINK_AGENT_ID_ROLE_XML',
#     "http://id.loc.gov/vocabulary/preservation/eventRelatedAgentRole/exe"
# )
# BAGATOM_BAG_NAMESPACE = getattr(
#     settings, 'BAGATOM_BAG_NAMESPACE', "TODO"
# )
# BAGATOM_QXML_NAMESPACE = getattr(
#     settings, 'BAGATOM_QXML_NAMESPACE', "TODO"
# )
# BAGATOM_NODE_NAMESPACE = getattr(
#     settings, 'BAGATOM_NODE_NAMESPACE', "TODO"
# )
# EVENT_OUTCOME_CHOICES = getattr(
#     settings, 'EVENT_OUTCOME_CHOICES',
#     (
#         ('', 'None'),
#         ('http://purl.org/net/untl/vocabularies/eventOutcomes/#success', 'Success'),
#         ('http://purl.org/net/untl/vocabularies/eventOutcomes/#failure', 'Failure'),
#     )
# )
# EVENT_TYPE_CHOICES = getattr(
#     settings, 'EVENT_TYPE_CHOICES',
#     (
#         ('', 'None'),
#         ('http://purl.org/net/untl/vocabularies/preservationEvents/#fixityCheck', 'Fixity Check'),
#         ('http://purl.org/net/untl/vocabularies/preservationEvents/#replication', 'Replication'),
#         ('http://purl.org/net/untl/vocabularies/preservationEvents/#ingestion', 'Ingestion'),
#         ('http://purl.org/net/untl/vocabularies/preservationEvents/#migration', 'Migration'),
#     )
# )
# ARK_NAAN = getattr(settings, 'ARK_NAAN', 67531)


from django import forms
from premis_event_service import settings


OUTCOME_CHOICES = settings.EVENT_OUTCOME_CHOICES
EVENT_TYPE_CHOICES = settings.EVENT_TYPE_CHOICES


class EventSearchForm(forms.Form):
    event_outcome = forms.ChoiceField(
        widget=forms.Select(attrs={'id': 'prependedInput', 'class': 'input-small'}),
        choices=OUTCOME_CHOICES,
        required=False)

    event_type = forms.ChoiceField(
        widget=forms.Select(attrs={'id': 'prependedInput', 'class': 'input-medium'}),
        choices=EVENT_TYPE_CHOICES,
        required=False)

    start_date = forms.DateField(
        widget=forms.DateInput(attrs={'id': 'startdatepicker', 'placeholder': 'Start Date', 'class': 'input-small'}),  # noqa
        required=False)

    end_date = forms.DateField(

# Path: premis_event_service/settings.py
# EVENT_ID_TYPE_XML = getattr(
#     settings, 'EVENT_ID_TYPE_XML',
#     "http://purl.org/net/untl/vocabularies/identifier-qualifiers/#UUID"
# )
# LINK_AGENT_ID_TYPE_XML = getattr(
#     settings, 'LINK_AGENT_ID_TYPE_XML',
#     "http://purl.org/net/untl/vocabularies/identifier-qualifiers/#URL"
# )
# LINK_AGENT_ID_ROLE_XML = getattr(
#     settings, 'LINK_AGENT_ID_ROLE_XML',
#     "http://id.loc.gov/vocabulary/preservation/eventRelatedAgentRole/exe"
# )
# BAGATOM_BAG_NAMESPACE = getattr(
#     settings, 'BAGATOM_BAG_NAMESPACE', "TODO"
# )
# BAGATOM_QXML_NAMESPACE = getattr(
#     settings, 'BAGATOM_QXML_NAMESPACE', "TODO"
# )
# BAGATOM_NODE_NAMESPACE = getattr(
#     settings, 'BAGATOM_NODE_NAMESPACE', "TODO"
# )
# EVENT_OUTCOME_CHOICES = getattr(
#     settings, 'EVENT_OUTCOME_CHOICES',
#     (
#         ('', 'None'),
#         ('http://purl.org/net/untl/vocabularies/eventOutcomes/#success', 'Success'),
#         ('http://purl.org/net/untl/vocabularies/eventOutcomes/#failure', 'Failure'),
#     )
# )
# EVENT_TYPE_CHOICES = getattr(
#     settings, 'EVENT_TYPE_CHOICES',
#     (
#         ('', 'None'),
#         ('http://purl.org/net/untl/vocabularies/preservationEvents/#fixityCheck', 'Fixity Check'),
#         ('http://purl.org/net/untl/vocabularies/preservationEvents/#replication', 'Replication'),
#         ('http://purl.org/net/untl/vocabularies/preservationEvents/#ingestion', 'Ingestion'),
#         ('http://purl.org/net/untl/vocabularies/preservationEvents/#migration', 'Migration'),
#     )
# )
# ARK_NAAN = getattr(settings, 'ARK_NAAN', 67531)


# Path: premis_event_service/forms.py
from django import forms
from premis_event_service import settings



OUTCOME_CHOICES = settings.EVENT_OUTCOME_CHOICES
EVENT_TYPE_CHOICES = settings.EVENT_TYPE_CHOICES


class EventSearchForm(forms.Form):
    event_outcome = forms.ChoiceField(
        widget=forms.Select(attrs={'id': 'prependedInput', 'class': 'input-small'}),
        choices=OUTCOME_CHOICES,
        required=False)

    event_type = forms.ChoiceField(
        widget=forms.Select(attrs={'id': 'prependedInput', 'class': 'input-medium'}),
        choices=EVENT_TYPE_CHOICES,
        required=False)

    start_date = forms.DateField(
        widget=forms.DateInput(attrs={'id': 'startdatepicker', 'placeholder': 'Start Date', 'class': 'input-small'}),  # noqa
        required=False)

    end_date = forms.DateField(

        widget=forms.DateInput(attrs={'id': 'enddatepicker', 'placeholder': 'End Date', 'class': 'input-small'}),  # noqa