diff --git a/hasjob/models/jobpost.py b/hasjob/models/jobpost.py index 93c26457f..61891095c 100644 --- a/hasjob/models/jobpost.py +++ b/hasjob/models/jobpost.py @@ -306,6 +306,8 @@ def url_for(self, action='view', _external=False, **kwargs): return url_for('editjob', hashid=self.hashid, domain=domain, _external=_external, **kwargs) elif action == 'withdraw': return url_for('withdraw', hashid=self.hashid, domain=domain, _external=_external, **kwargs) + elif action == 'report': + return url_for('reportjob', hashid=self.hashid, domain=domain, _external=_external, **kwargs) elif action == 'close': return url_for('close', hashid=self.hashid, domain=domain, _external=_external, **kwargs) elif action == 'viewstats': diff --git a/hasjob/templates/inc/reportform.html.jinja2 b/hasjob/templates/inc/reportform.html.jinja2 index 4756df43d..93bdce463 100644 --- a/hasjob/templates/inc/reportform.html.jinja2 +++ b/hasjob/templates/inc/reportform.html.jinja2 @@ -1,5 +1,5 @@ {% from "baseframe/forms.html.jinja2" import renderfield, ajaxform %} -