# Path: src/settings.py
# MAX_NUM_TOPICS = 200


import pdb
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.forms.forms import BoundField
from django.forms.widgets import  Select, HiddenInput
from django import forms
from src.settings import MAX_NUM_TOPICS
class AnalysisForm(forms.Form):
    # STANDARD FIELDS
    std_algo = forms.CharField(required=False, label = 'model',
       widget=Select(
           choices=(
           ('lda','Latent Dirichlet Allocation'),
           ('ctm','Correlated Topic Model'),
           ('hdp','Hierarchical Dirichlet Process')
           )), help_text='Select the desired topic-modeling algorithm -- specific details for the slected algorithm can be found under \'Advanced Options\'')

# Path: src/settings.py
# MAX_NUM_TOPICS = 200


# Path: src/backend/forms.py
import pdb
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.forms.forms import BoundField
from django.forms.widgets import  Select, HiddenInput
from django import forms
from src.settings import MAX_NUM_TOPICS

class AnalysisForm(forms.Form):
    # STANDARD FIELDS
    std_algo = forms.CharField(required=False, label = 'model',
       widget=Select(
           choices=(
           ('lda','Latent Dirichlet Allocation'),
           ('ctm','Correlated Topic Model'),
           ('hdp','Hierarchical Dirichlet Process')
           )), help_text='Select the desired topic-modeling algorithm -- specific details for the slected algorithm can be found under \'Advanced Options\'')

    std_ntopics = forms.IntegerField(required=False, label='number of topics', max_value=MAX_NUM_TOPICS,  initial='10', widget=forms.TextInput(attrs={"id":"numtops"}), help_text='Select the number of topics for parametric topic models (HDP does not require this parameter).')