Parcourir la source

added support address

Jocelyn Delande il y a 10 ans
Parent
commit
eeb7b8a201

+ 1 - 1
coin/isp_database/admin.py

@@ -65,7 +65,7 @@ class ISPInfoAdmin(SingleInstanceAdminMixin, admin.ModelAdmin):
             ('email', 'mainMailingList'),
             'website')}),
         ('Extras', {
-            'fields': ('administrative_email',),
+            'fields': ('administrative_email', 'support_email'),
             'description':
                 'Ces champs ne font pas partie de la spécification db.ffdn.org mais sont utilisés sur le site'
         }),

+ 2 - 1
coin/isp_database/fixtures/illyse.json

@@ -13,7 +13,8 @@
     "creationDate": "2011-07-20",
     "email": "contact@illyse.org",
     "description": "Fournisseur d'acc\u00e8s \u00e0 Internet \u00e0 Lyon et dans la r\u00e9gion.",
-    "administrative_email": "bureau@illyse.org"
+    "administrative_email": "bureau@illyse.org",
+    "support_email": "support@illyse.org"
   },
   "model": "isp_database.ispinfo",
   "pk": 1

+ 20 - 0
coin/isp_database/migrations/0004_ispinfo_support_email.py

@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('isp_database', '0003_auto_20141109_1539'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='ispinfo',
+            name='support_email',
+            field=models.EmailField(default='', help_text='Adresse pour les demandes de support technique', max_length=254, verbose_name='Contact de support', blank=True),
+            preserve_default=False,
+        ),
+    ]

+ 4 - 0
coin/isp_database/models.py

@@ -79,6 +79,10 @@ class ISPInfo(SingleInstanceMixin, models.Model):
         max_length=254, blank=True, verbose_name="Contact administratif",
         help_text='Adresse pour les contacts administratifs (ex: bureau)')
 
+    support_email = models.EmailField(
+        max_length=254, blank=True, verbose_name="Contact de support",
+        help_text="Adresse pour les demandes de support technique")
+
     @property
     def memberCount(self):
         """Number of members"""

+ 2 - 1
coin/members/templates/members/contact.html

@@ -8,7 +8,8 @@
             <h3>Courriel</h3>
             <p>
               <a href="mailto:{{ branding.email }}">{{ branding.email }}</a> (questions générales)<br />
-              <a href="mailto:{{ branding.administrative_email }}">{{ branding.administrative_email }}</a> (questions administratives)
+              <a href="mailto:{{ branding.administrative_email }}">{{ branding.administrative_email }}</a> (questions administratives)<br />
+              <a href="mailto:{{ branding.support_email }}">{{ branding.support_email }}</a> (support technique)
             </p>
             <h3>IRC</h3>
             <p><a href="{{ branding.chatroom_set.first.url }}">{{ branding.main_chat_verbose }}</a></p>