# TODO: jquery.autocomplete.js should rather be downloaded from an official source. The issue
# is that the version we use is not available anymore on the Internet, and the latest version
# we could use is not backward compatible with our current code.
-jquery: htdocs/javascript/jquery.js $(JQUERY_PLUGINS_PATHES) $(JQUERY_UI_PATHES) $(JQUERY_TMPL_PATH) $(JSTREE_PATH)
+jquery: htdocs/javascript/jquery.js $(JQUERY_PLUGINS_PATHES) $(JQUERY_UI_PATHES) $(JQUERY_TMPL_PATH) $(JSTREE_PATH) htdocs/javascript/jquery.ui.datepicker-fr.js
htdocs/javascript/jquery-$(JQUERY_VERSION).min.js: DOWNLOAD_SRC = http://jquery.com/src/$(@F)
htdocs/javascript/jquery-$(JQUERY_VERSION).min.js:
htdocs/javascript/jquery.ui-$(JQUERY_UI_VERSION).%.js:
@$(download)
-$(JQUERY_UI_PATHES): htdocs/javascript/jquery.ui.%.js: htdocs/javascript/jquery.ui-$(JQUERY_UI_VERSION).%.js
+htdocs/javascript/jquery.ui-$(JQUERY_UI_VERSION).datepicker-fr.js: DOWNLOAD_SRC = http://jquery-ui.googlecode.com/svn/tags/$(JQUERY_UI_VERSION)/ui/minified/i18n/jquery.ui.datepicker-fr.min.js
+htdocs/javascript/jquery.ui-$(JQUERY_UI_VERSION).datepicker-fr.js:
+ @$(download)
+
+$(JQUERY_UI_PATHES) htdocs/javascript/jquery.ui.datepicker-fr.js: htdocs/javascript/jquery.ui.%.js: htdocs/javascript/jquery.ui-$(JQUERY_UI_VERSION).%.js
ln -snf $(<F) $@
htdocs/javascript/jquery.tmpl-$(JQUERY_TMPL_VERSION).js: DOWNLOAD_SRC = https://github.com/jquery/jquery-tmpl/raw/$(JQUERY_TMPL_VERSION)/jquery.tmpl.min.js --no-check-certificate
overflow: hidden;
}
+.ui-datepicker-calendar {
+ border-collapse: collapse;
+ text-align: right;
+}
+
+.ui-datepicker-calendar td {
+ width: 20px;
+}
+
.ui-datepicker-week-end {
background-color: #eee;
}
})(jQuery);
+$(function() {
+ $(".datepicker").datepicker({
+ hideIfNoPrevNext: true,
+ minDate: new Date()
+ });
+});
+
+
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
$page->addJsLink('jquery.ui.core.js');
$page->addJsLink('jquery.ui.widget.js');
$page->addJsLink('jquery.ui.datepicker.js');
+ $page->addJsLink('jquery.ui.datepicker-fr.js');
$page->addJsLink('jquery.tmpl.js');
$page->addJsLink('survey.js');
$page->changeTpl('survey/edit.tpl');
Titre : <input type="text" name="title" /><br />
Nom : <input type="text" name="shortname" /><br />
+ Description :<br /><textarea name="description" style="width: 100%"></textarea>
+ </fieldset>
+ <fieldset>
+ <legend>Déroulement du sondage</legend>
Premier jour : <input type="text" class="datepicker" name="begin" /><br />
Dernier jour : <input type="text" class="datepicker" name="end" /><br />
</fieldset>
</form>
-{literal}
-<script type="text/javascript">
- //<![CDATA[
- $($(".datepicker").datepicker({
- dateFormat: 'dd/mm/yyyy',
- firstDay: 1,
- hideIfNoPrevNext: true,
- minDate: new Date()
- }));
- //]]>
-</script>
-{/literal}
-
{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
</div>
</form>
-{include file="survey/questions.tpl"}
+{include file="survey/vote.questions.tpl"}
<script type="text/javascript">
//<![CDATA[