Parcourir la source

moved membership/fee information to settings

Jocelyn Delande il y a 10 ans
Parent
commit
6c993a4019

+ 1 - 1
coin/members/templates/members/detail.html

@@ -56,7 +56,7 @@
             </p>
             <p>Date de fin de cotisation : {{ user.end_date_of_membership }}</p>
 
-            <a href="https://www.illyse.org/projects/failocal/wiki/Cotisation" target="_blank" class="button small radius expand"><i class="fa fa-heart"></i>
+            <a href="{{ membership_info_url }}" target="_blank" class="button small radius expand"><i class="fa fa-heart"></i>
  Renouveler ma cotisation</a>
         </div>
         <!--<div class="pa nel">

+ 2 - 0
coin/members/views.py

@@ -18,7 +18,9 @@ def index(request):
 
 @login_required
 def detail(request):
+    membership_info_url = settings.MEMBER_MEMBERSHIP_INFO_URL
     return render_to_response('members/detail.html',
+                              {'membership_info_url': membership_info_url},
                               context_instance=RequestContext(request))
 
 

+ 4 - 0
coin/settings.py

@@ -230,6 +230,10 @@ VPN_CONF_BASE_DN = None
 # Default cotisation in €, per year
 MEMBER_DEFAULT_COTISATION = 20
 
+# Link to a page with information on how to become a member or pay the
+# membership fee
+MEMBER_MEMBERSHIP_INFO_URL = '#'
+
 # Reset session if cookie older than 2h.
 SESSION_COOKIE_AGE = 7200
 

+ 2 - 0
coin/settings_local.example-illyse.py

@@ -43,3 +43,5 @@ DEFAULT_FROM_EMAIL = "adminsys@illyse.org"
 
 FEEDS = (('isp', 'http://www.illyse.net/feed/', 3),
          ('ffdn', 'http://www.ffdn.org/fr/rss.xml', 3))
+
+MEMBER_MEMBERSHIP_INFO_URL = 'https://www.illyse.org/projects/failocal/wiki/Cotisation'