Esempio n. 1
0
def communities(page, search):

	communities = linkage_views.show_list(['A', search, 4, page])

	form = SearchForm()

	if form.validate_on_submit():

		return redirect(url_for('unregistered.communities', page='1', search=form.search.data))

	return render_template('/unregistered/communities/index.html', form=form, communities=communities, search=search, active='communities')
Esempio n. 2
0
def linkages(page, search):

	linkages = linkage_views.show_list(['A', search, 3, page])

	photo = user_photo.photo(current_user.info_id)

	form = SearchForm()

	if form.validate_on_submit():

		return redirect(url_for('registered.linkages', page='1', search=form.search.data))

	return render_template('/registered/linkages/index.html', title="linkages", form=form, linkages=linkages, page=page, search=search, photo=photo, active='linkages')
Esempio n. 3
0
def communities(page, search):

	communities = linkage_views.show_list(['all',search,4, page])

	photo = user_photo.photo(current_user.info_id)

	form = SearchForm()

	if form.validate_on_submit():

		return redirect(url_for('registered.communities', page='1', search=form.search.data))

	return render_template('/registered/communities/index.html', form=form, communities=communities, search=search, photo=photo, active='communities')
Esempio n. 4
0
def linkages(page, search):

    linkages = linkage_views.show_list(['A', search, 3, page])

    form = SearchForm()

    if form.validate_on_submit():

        return redirect(
            url_for('religious_admin.linkages',
                    page='1',
                    search=form.search.data))

    return render_template('/religious_admin/linkages/index.html',
                           title="Communities",
                           form=form,
                           linkages=linkages,
                           page=page,
                           search=search,
                           active='linkages')
Esempio n. 5
0
def linkages_show(page, search):

    linkages = linkage_views.show_list(['A', search, 3, page])

    photo = user_photo.photo(current_user.info_id)

    form = SearchForm()

    if form.validate_on_submit():

        return redirect(
            url_for('linkages.linkages_show',
                    page='1',
                    search=form.search.data))

    return render_template('/linkages/linkages/index.html',
                           linkages=linkages,
                           form=form,
                           search=search,
                           user=current_user.info_id,
                           photo=photo,
                           active='linkages')