Exemple #1
0
def search():

    search_form = SearchForm()

    if request.method == 'GET':
        return render_template('search.html', form=search_form, result=None)
    else:
        return render_template('search.html',
                               form=search_form,
                               result=search_form.get_result_by_Group())
Exemple #2
0
def search():

    search_form = SearchForm()

    if request.method == 'GET':
        return render_template('search.html',
                               form=search_form,
                               result=None,
                               action='search',
                               name='Variable')
    else:
        return render_template('search.html',
                               form=search_form,
                               result=search_form.get_result_by_Name(),
                               action='search',
                               name='Variable')
Exemple #3
0
def searchUser():

    search_form = SearchForm()

    if request.method == 'GET':
        #search_form.user_email.label='user email:'
        return render_template('search.html',
                               form=search_form,
                               result=None,
                               action='searchUser',
                               name='User')
    else:
        #search_form.user_email.label = 'user email:'
        return render_template('search.html',
                               form=search_form,
                               result=search_form.get_result_Email(),
                               action='searchUser',
                               name='user')
Exemple #4
0
def searchGroup():

    search_form = SearchForm()

    if request.method == 'GET':
        search_form.group_name.label = 'Group name:'
        return render_template('search.html',
                               form=search_form,
                               result=None,
                               action='searchGroup',
                               name='Group')
    else:
        search_form.group_name.label = 'Group name:'
        return render_template('search.html',
                               form=search_form,
                               result=search_form.get_result_by_Group(),
                               action='searchGroup',
                               name='Group')
Exemple #5
0
def searchSchedule():

    search_form = SearchForm()

    if request.method == 'GET':
        search_form.schedule_data.label = 'schedule data:'
        return render_template('search.html',
                               form=search_form,
                               result=None,
                               action='searchSchedule',
                               name='Schedule')
    else:
        search_form.schedule_data.label = 'schedule data:'
        return render_template('search.html',
                               form=search_form,
                               result=search_form.get_result_by_Schedule(),
                               action='searchSchedule',
                               name='Schedule')