msg=MIMEText("A new report was submitted. To approve click here: %s/moderate/?key=%s\n"%(settings.ROOT_URLor'http://localhost:8001/',actid),_charset="utf-8")
returnHttpResponse(_("Thank you, this has been already activated"))
returnHttpResponse(_('Thank you, this key has been already activated'))
ifnotv:
messages.add_message(request,messages.INFO,_('No such key'))
returnHttpResponseRedirect('/')# Redirect after POST
ifrequest.GET.get('action','')=='approve':
messages.add_message(request,messages.INFO,_('Thank you for approving the <a href="/view/%s">submission</a>.'%v.id))
msg=MIMEText(_("Your report has been approved.\nTo see it, please visit: %s/view/%s")%(settings.ROOT_URLor'http://localhost:8001/',v.id),_charset="utf-8")
settings.TWITTER_API.PostUpdate(_("New infringement reported for %s (%s) %s")%(v.operator,v.country,v.contract))
settings.TWITTER_API.PostUpdate(_("New case reported for %s (%s) %s %s/view/%s")%(v.operator,v.country,v.contract,settings.ROOT_URLor'http://localhost:8001/',v.id))
except:
pass
v.activationid=''
v.save()
messages.add_message(request,messages.INFO,_('Thank you for approving the submission.'))
returnHttpResponseRedirect('/')# Redirect after POST
msg=MIMEText(_("Thank you for submitting a new report. To finalize your submission please confirm using your validation key.\nYour verification key is %s/%s%s\nPlease note that reports are moderated, it might take some time before your report appears online. Thank you for your patience.")%(settings.ROOT_URLor'http://localhost:8001/',service,actid),_charset="utf-8")
{% if field.html_name = 'comment' %}<divclass="hidden errorlist">{% trans "There are already some reports for this Operator/Contract, please check if yours is already among them:" %}<ulid="similar_cases"></ul></div>{%endif%}
{% if field.html_name = 'resource' %}<divid="show_optionals">{% trans "Provide optional details" %}</div><divid="optional">{%endif%}
<divclass="fieldWrapper">
{% if field.help_text %}<spanclass="help_text">{{ field.help_text }}</span>{% endif %}