Browse Source

Display ISP's phone_number in contact and invoice template.

opi 8 years ago
parent
commit
d73589355b

+ 3 - 1
coin/billing/templates/billing/invoice_pdf.html

@@ -80,7 +80,9 @@
 				<p>
                 {% multiline_isp_addr branding %}
 				<p>{{ branding.email }}<br/>
-				<a href="{{ branding.website }}">{{ branding.website }}</a></p>
+				<a href="{{ branding.website }}">{{ branding.website }}</a><br />
+				{{ branding.phone_number }}
+				</p>
 			</td>
 			<td id="coordonnees_client">
 				<strong>Facturé à :</strong><br/>

+ 6 - 0
coin/members/templates/members/contact.html

@@ -28,6 +28,12 @@
             <p><a href="{{ branding.chatroom_set.first.url }}">{{ branding.main_chat_verbose }}</a></p>
         </div>
         {% endif %}
+        {% if branding.phone_number %}
+        <div class="panel">
+            <h3>Téléphone</h3>
+            <p><a href="tel:{{ branding.phone_number }}">{{ branding.phone_number }}</a></p>
+        </div>
+        {% endif %}
     </div>
 </div>
 {% endblock %}