Skip to content
Snippets Groups Projects
Commit fbd51b8f authored by Alice Heaton's avatar Alice Heaton :speech_balloon:
Browse files

Make the body text in the view&edit table link to the edit form.

parent a2c2cef2
No related branches found
No related tags found
1 merge request!39Make the body text in the view&edit table link to the edit form.
......@@ -28,7 +28,10 @@ class ItemTable(tables.Table):
verbose_name=_('Created'),
format=settings.SHORT_DATETIME_FORMAT,
)
body = tables.Column(verbose_name=_('Item'))
body = tables.TemplateColumn(
template_name='hid/body_column.html',
verbose_name=_('Item')
)
network_provider = tables.Column(
verbose_name=_('Network Provider')
)
......
{% if request %}
<a href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'>{{ record.body }}</a>
{% else %}
{{ record.body }}
{% endif %}
......@@ -159,3 +159,7 @@ form.header-upload-form {
color:white;
padding:20px 20px;
}
.view-items-form table .body a {
text-decoration: none;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment