2012-09-25 - Re: [GRASE-Hotspot] #78: control of general terms and conditions

Header Data

From: GRASE Trac <tr***c@grasehotspot.org>
Message Hash: 1df696a96d46a9a412c4b12b5a95914a754df9038699d00e45fd09bf08c22cf7
Message ID: <065.fcfc2950c9d208258455db82ee27254b@grasehotspot.org>
Reply To: <050.bbfa613c0b83a1d1d9f9fe4ba00245cf@grasehotspot.org>
UTC Datetime: 2012-09-25 03:10:48 UTC
Raw Date: Tue, 25 Sep 2012 10:10:48 -0000

Raw message

#78: control of general terms and conditions
-------------------------+-------------------------------------------------
  Reporter:  sean        |      Owner:  tim
  schneeweiß             |     Status:  new
      Type:              |  Milestone:  3.8
  enhancement            |    Version:  3.7
  Priority:  critical    |   Keywords:  agb general terms and conditions
 Component:  Splash      |  landing page
  Screens                |
Resolution:              |
-------------------------+-------------------------------------------------

Comment (by peter boon):

 Hi sean,

 We solved this by putting the gerneral terms and condition in a html file
 and placed this in /usr/share/grase/voorwaarden.html

 Then we adjusted the /usr/share/grase/www/uam/json_html.tmpl and added
 after line 35 the following code
             To login you must accept the general terms and conditions<BR>
             <span id='VoorwaardenInfo'>&nbsp;</span>
             <INPUT TYPE="checkbox"  NAME="voorwaarden" id="voorwaarden"/>I
 agree with the  <a href="/grase/voorwaarden.html">terms and conditions</a>
 <BR><BR>

 Then in the /usr/share/grase/www/uam/js/chilliLib.js we added after line
 1006

     var voorwaarden =  document.getElementById('voorwaarden').checked ;

     if (voorwaarden == false)
     {
         showErrorMessage('U heeft de voorwaarden niet geacepteerd');
         return $('#logonMessage').text('U heeft de voorwaarden niet
 geacepteerd');
         }


 Hope this will work for you

-- 
Ticket URL: <http://trac.grasehotspot.org/ticket/78#comment:1>
GRASE Hotspot <http://grasehotspot.org/>
GRASE Hotspot bug tracker




Thread