[fix] contact view

This commit is contained in:
Rushabh Mehta
2017-04-08 10:54:00 +05:30
parent 9a55423ffc
commit 4427d7925b
2 changed files with 3 additions and 2 deletions

View File

@@ -23,7 +23,7 @@
<h3>Details</h3> <h3>Details</h3>
<p>{{ description }}</p> <p>{{ description }}</p>
<h3>Contact</h3> <h3>Contact</h3>
{% if is_member %} {% if frappe.session.user != 'Guest' %}
<table class='table table-bordered small' style='max-width: 400px; margin-bottom: 0px;'> <table class='table table-bordered small' style='max-width: 400px; margin-bottom: 0px;'>
<tr> <tr>
<td style='width: 38.2%'>Email</td> <td style='width: 38.2%'>Email</td>
@@ -35,6 +35,6 @@
</tr> </tr>
</table> </table>
{% else %} {% else %}
<p><a href="/members">Become an ERPNext Foundation member to view contact details</a></p> <p><a href="/members">You must register and login to view contact details</a></p>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@@ -3,6 +3,7 @@
<a href="/{{ doc.route }}"> <a href="/{{ doc.route }}">
<h3 style='margin-top: 0px;'>{{ doc.title }}</h3> <h3 style='margin-top: 0px;'>{{ doc.title }}</h3>
<p> <p>
<span class='label'>{{ frappe.format_date(doc.creation) }}</span>
<span class='label'>{{ doc.country }}</span> <span class='label'>{{ doc.country }}</span>
<span class='label'>{{ doc.job_type }}</span> <span class='label'>{{ doc.job_type }}</span>
</p> </p>