# Path: amon/apps/charts/forms.py
# class DurationForm(forms.Form):
#     duration = forms.ChoiceField(choices=DURATION_CHOICES)
# 
# class SystemChartsForm(forms.Form):
#     charts = forms.ChoiceField(choices=SYSTEM_CHARTS)
# 
# class ProcessChartsForm(forms.Form):
#     charts = forms.ChoiceField(choices=PROCESS_CHARTS)


from amon.apps.charts.forms import (
        DurationForm, 
        SystemChartsForm,
        ProcessChartsForm
)
# from amon.apps.servers.models import server_model


def charts_global_variables(request):

    if request.user.is_authenticated:
        # all_servers = server_model.get_all(account_itd=request.account_id)

        global_variables_dict = {
            'duration_form': DurationForm(),
            'system_charts_form': SystemChartsForm(), 

# Path: amon/apps/charts/forms.py
# class DurationForm(forms.Form):
#     duration = forms.ChoiceField(choices=DURATION_CHOICES)
# 
# class SystemChartsForm(forms.Form):
#     charts = forms.ChoiceField(choices=SYSTEM_CHARTS)
# 
# class ProcessChartsForm(forms.Form):
#     charts = forms.ChoiceField(choices=PROCESS_CHARTS)


# Path: amon/apps/charts/context_processors.py
from amon.apps.charts.forms import (
        DurationForm, 
        SystemChartsForm,
        ProcessChartsForm
)

# from amon.apps.servers.models import server_model


def charts_global_variables(request):

    if request.user.is_authenticated:
        # all_servers = server_model.get_all(account_itd=request.account_id)

        global_variables_dict = {
            'duration_form': DurationForm(),
            'system_charts_form': SystemChartsForm(), 

            'process_charts_form': ProcessChartsForm(),