add updated CCPO request index columns

This commit is contained in:
dandds
2018-09-10 14:31:03 -04:00
parent 6bbc68031e
commit 1f64344ca3
4 changed files with 24 additions and 14 deletions

View File

@@ -65,6 +65,13 @@ def renderList(value):
return app.jinja_env.filters["safe"]("<br>".join(value))
def formattedDate(value):
if value:
return value.strftime("%m/%d/%Y")
else:
return "-"
def register_filters(app):
app.jinja_env.filters["iconSvg"] = iconSvg
app.jinja_env.filters["dollars"] = dollars
@@ -74,3 +81,4 @@ def register_filters(app):
app.jinja_env.filters["mixedContentToJson"] = mixedContentToJson
app.jinja_env.filters["findFilter"] = findFilter
app.jinja_env.filters["renderList"] = renderList
app.jinja_env.filters["formattedDate"] = formattedDate