contacts: include links to formdata
This commit is contained in:
parent
c9ce33de4f
commit
e4eaacc1f9
|
@ -13,10 +13,9 @@
|
|||
{% endif %}
|
||||
|
||||
{% if forms %}
|
||||
<p>{% trans "Forms" %}</p>
|
||||
<ul>
|
||||
<ul class="formdatas">
|
||||
{% for form in forms %}
|
||||
<li>{{form.title}}, {{form.form_receipt_date}}</li>
|
||||
<li><a href="{{form.form_url_backoffice}}">{{form.name}} <span>({{form.status}}), {{form.form_receipt_date}}</span></a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
|
|
@ -89,6 +89,7 @@ class ContactDetailFragmentView(TemplateView):
|
|||
user_details = get_wcs_data('api/users/%s/' % user_id)
|
||||
context.update(user_details)
|
||||
context['forms'] = get_wcs_data('api/users/%s/forms' % user_id)
|
||||
print context['forms']
|
||||
context['user_id'] = user_id
|
||||
|
||||
if 'source_pk' in self.request.GET:
|
||||
|
|
|
@ -206,6 +206,7 @@ ul.result {
|
|||
list-style: none;
|
||||
}
|
||||
|
||||
.contacts ul.formdatas li,
|
||||
.qualif ul.formdatas li,
|
||||
ul.result li {
|
||||
margin: -1px 1em 0 2px;
|
||||
|
@ -233,6 +234,10 @@ ul.formdatas a.remove {
|
|||
top: 0;
|
||||
}
|
||||
|
||||
.contacts ul.formdatas li span {
|
||||
color: #3c3c33;
|
||||
}
|
||||
|
||||
ul.result li a span.more {
|
||||
display: block;
|
||||
color: #666;
|
||||
|
|
Loading…
Reference in New Issue