[Fusionforge-commits] FusionForge branch master updated. v6.0.2-252-gfdbc4c1

Franck Villaume nerville at libremir.placard.fr.eu.org
Sun Sep 20 13:23:05 CEST 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  fdbc4c10d7f25fa6a02eeb3e76b5ae545268d484 (commit)
      from  87f96404504b845de1645b426f8e3893c5e733e8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=fdbc4c10d7f25fa6a02eeb3e76b5ae545268d484

commit fdbc4c10d7f25fa6a02eeb3e76b5ae545268d484
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sun Sep 20 13:21:14 2015 +0200

    activity: introduce usage of jquery ui datepicker

diff --git a/src/www/activity/index.php b/src/www/activity/index.php
index 728e126..c153d1e 100644
--- a/src/www/activity/index.php
+++ b/src/www/activity/index.php
@@ -39,6 +39,7 @@ $show = getArrayFromRequest("show");
 session_require_perm('project_read', $group_id);
 
 $date_format = _('%Y-%m-%d');
+$date_format_js = _('yy-mm-dd');
 
 if (!$received_begin || $received_begin==0) {
 	$begin = (time()-(30*86400));
@@ -95,6 +96,8 @@ if (!$group || !is_object($group)) {
 	exit_project_disabled();
 }
 
+html_use_jqueryui();
+
 site_project_header(array('title'=>_('Activity'), 'group'=>$group_id, 'toptab'=>'activity'));
 
 $ids = array();
@@ -202,12 +205,12 @@ echo html_e('input', array('type' => 'hidden', 'name' => 'group_id', 'value' =>
 
 <div id="activity_startdate" >
 <div id="activity_label_startdate"><?php echo _('Start Date')._(':'); ?></div>
-<input name="start_date" value="<?php echo util_html_encode($rendered_begin) ?>" size="10" maxlength="10" />
+<input id="datepicker_start" name="start_date" value="<?php echo util_html_encode($rendered_begin) ?>" size="10" maxlength="10" />
 </div>
 
 <div id="activity_enddate" >
 <div id="activity_label_enddate"><?php echo _('End Date')._(':'); ?></div>
-<input name="end_date" value="<?php echo util_html_encode($rendered_end) ?>" size="10" maxlength="10" />
+<input id="datepicker_end" name="end_date" value="<?php echo util_html_encode($rendered_end) ?>" size="10" maxlength="10" />
 </div>
 
 <div id="activity_submit" >
@@ -390,4 +393,19 @@ echo $HTML->closeForm();
 	echo '</div>';
 }
 
+echo html_ao('script', array('type' => 'text/javascript'));
+?>
+//<![CDATA[
+
+jQuery('#datepicker_start').datepicker({
+  dateFormat: "<?php echo $date_format_js ?>"
+});
+jQuery('#datepicker_end').datepicker({
+  dateFormat: "<?php echo $date_format_js ?>"
+});
+
+//]]>
+<?php
+echo html_ac(html_ap() - 1);
+
 site_project_footer();

-----------------------------------------------------------------------

Summary of changes:
 src/www/activity/index.php | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list