Exemplo n.º 1
0
def profservform(request, itemid):
    return simple_form(
        ProfessionalService,
        itemid,
        request,
        ProfessionalServiceForm,
        redirect='/account/edit/services/')
Exemplo n.º 2
0
def commentform(request, itemid, version, filename):
	return simple_form(DocComment, itemid, request, DocCommentForm,
		fixedfields={
			'version': version,
			'file': filename,
		},
		redirect='/docs/comment_submitted/'
	)
Exemplo n.º 3
0
def organisationform(request, itemid):
    if itemid != 'new':
        get_object_or_404(Organisation, pk=itemid, managers=request.user)

    return simple_form(Organisation,
                       itemid,
                       request,
                       OrganisationForm,
                       redirect='/account/edit/organisations/')
Exemplo n.º 4
0
def submitted_item_form(request, objtype, item):
    model = get_moderation_model_from_suburl(objtype)

    if item == 'new':
        extracontext = {}
    else:
        extracontext = {
            'notices': ModerationNotification.objects.filter(
                objecttype=model.__name__,
                objectid=item,
            ).order_by('-date')
        }

    return simple_form(model, item, request, model.get_formclass(),
                       redirect='/account/edit/{}/'.format(objtype),
                       formtemplate='account/submit_form.html',
                       extracontext=extracontext)
Exemplo n.º 5
0
def organisationform(request, itemid):
	return simple_form(Organisation, itemid, request, OrganisationForm,
					   redirect='/account/edit/organisations/')
Exemplo n.º 6
0
def form(request, itemid):
	return simple_form(Event, itemid, request, EventForm,
					   redirect='/account/edit/events/')
Exemplo n.º 7
0
def form(request, itemid):
    return simple_form(NewsArticle,
                       itemid,
                       request,
                       NewsArticleForm,
                       redirect='/account/edit/news/')
Exemplo n.º 8
0
Arquivo: views.py Projeto: jkatz/pgweb
def productform(request, itemid):
    return simple_form(Product, itemid, request, ProductForm,
                       redirect='/account/edit/products/')
Exemplo n.º 9
0
Arquivo: views.py Projeto: jkatz/pgweb
def organisationform(request, itemid):
    if itemid != 'new':
        get_object_or_404(Organisation, pk=itemid, managers=request.user)

    return simple_form(Organisation, itemid, request, OrganisationForm,
                       redirect='/account/edit/organisations/')
Exemplo n.º 10
0
def form(request, itemid):
    return simple_form(Event,
                       itemid,
                       request,
                       EventForm,
                       redirect='/account/edit/events/')
Exemplo n.º 11
0
def productform(request, itemid):
	return simple_form(Product, itemid, request, ProductForm,
					   redirect='/account/edit/products/')
Exemplo n.º 12
0
def organisationform(request, itemid):
	return simple_form(Organisation, itemid, request, OrganisationForm,
					   redirect='/account/edit/organisations/')
Exemplo n.º 13
0
Arquivo: views.py Projeto: jkatz/pgweb
def form(request, itemid):
    return simple_form(NewsArticle, itemid, request, NewsArticleForm,
                       redirect='/account/edit/news/')
Exemplo n.º 14
0
def profservform(request, itemid):
    return simple_form(ProfessionalService,
                       itemid,
                       request,
                       ProfessionalServiceForm,
                       redirect='/account/edit/services/')