Author: benj
Date: Thu Feb  5 11:19:38 2015
New Revision: 1637

URL: http://svn.gna.org/viewcvs/gdtc?rev=1637&view=rev
Log:
Add possibility to change contact dates

Modified:
    trunk/gdtc/include/utils.php
    trunk/gdtc/templates/smarty/admin/edit_contact.tpl

Modified: trunk/gdtc/include/utils.php
URL: 
http://svn.gna.org/viewcvs/gdtc/trunk/gdtc/include/utils.php?rev=1637&r1=1636&r2=1637&view=diff
==============================================================================
--- trunk/gdtc/include/utils.php        (original)
+++ trunk/gdtc/include/utils.php        Thu Feb  5 11:19:38 2015
@@ -436,7 +436,7 @@
 
                $oldval = sprintf ( "'%s'", $line [ $key ] );
            }
-           else if ( $type == 'date' || $type == 'datetime' )
+           else if ( $type == 'date' || $type == 'datetime'  || $type == 
'timestamp' )
              {
                $newval = arg2sqldate ( $value );
                $oldval = arg2sqldate ( $line [ $key ] );

Modified: trunk/gdtc/templates/smarty/admin/edit_contact.tpl
URL: 
http://svn.gna.org/viewcvs/gdtc/trunk/gdtc/templates/smarty/admin/edit_contact.tpl?rev=1637&r1=1636&r2=1637&view=diff
==============================================================================
--- trunk/gdtc/templates/smarty/admin/edit_contact.tpl  (original)
+++ trunk/gdtc/templates/smarty/admin/edit_contact.tpl  Thu Feb  5 11:19:38 2015
@@ -22,10 +22,16 @@
 </td>
 </tr>
 
+<tr><td>Date</td>
+<td>
+<input value="{$additional.contact_date}" name="contact_date" 
class="date-picker">
+</td>
+</tr>
+
 <tr><td>Nom du contact April</td> <!-- TODO: Préremplir avec nom de -->
 <!-- l'user connecté. -->
 <td>
-<input value="{$additional.contact_name}" name="contact_name">
+<input value="{$additional.contact_name|escape}" name="contact_name">
 </td>
 </tr>
 


_______________________________________________
Gdtc-commits mailing list
[email protected]
https://mail.gna.org/listinfo/gdtc-commits

Reply via email to