aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/picture_modify.tpl
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-05-17 22:04:36 +0000
committermistic100 <mistic@piwigo.org>2014-05-17 22:04:36 +0000
commit914b6d96d2cae67507ef848a7a229fd5319d7968 (patch)
tree97d0c9f0741ddb6ddee8cfbb20717b6b0fd9b75e /admin/themes/default/template/picture_modify.tpl
parentce8a29810abe6f7fdf82043b32ca87ba0f14220c (diff)
feature 3080 : simpler date inputs (one input + fontello + picker selects)
git-svn-id: http://piwigo.org/svn/trunk@28497 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/picture_modify.tpl')
-rw-r--r--admin/themes/default/template/picture_modify.tpl26
1 files changed, 10 insertions, 16 deletions
diff --git a/admin/themes/default/template/picture_modify.tpl b/admin/themes/default/template/picture_modify.tpl
index 50392f7ab..99a53b247 100644
--- a/admin/themes/default/template/picture_modify.tpl
+++ b/admin/themes/default/template/picture_modify.tpl
@@ -76,7 +76,9 @@ tagsCache.get(function(tags) {
});
{* <!-- DATEPICKER --> *}
-pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set");
+jQuery(function(){ {* <!-- onLoad needed to wait localization loads --> *}
+ jQuery('[data-datepicker]').pwgDatepicker();
+});
}());
{/footer_script}
@@ -138,21 +140,13 @@ pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#da
<p>
<strong>{'Creation date'|@translate}</strong>
<br>
- <select id="date_creation_day" name="date_creation_day">
- <option value="0">--</option>
-{section name=day start=1 loop=32}
- <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY_VALUE}selected="selected"{/if}>{$smarty.section.day.index}</option>
-{/section}
- </select>
-
- <select id="date_creation_month" name="date_creation_month">
- {html_options options=$month_list selected=$DATE_CREATION_MONTH_VALUE}
- </select>
-
- <input id="date_creation_year" name="date_creation_year" type="text" size="4" maxlength="4" value="{$DATE_CREATION_YEAR_VALUE}">
- <input id="date_creation_linked_date" name="date_creation_linked_date" type="hidden" size="10" disabled="disabled">
- <input name="date_creation_time" type="hidden" value="{$DATE_CREATION_TIME_VALUE}">
- <a href="#" id="unset_date_creation" style="display:none">unset</a>
+ <input type="hidden" name="date_creation_time" value="{$DATE_CREATION_TIME}">
+ <input type="hidden" name="date_creation" value="{$DATE_CREATION}">
+ <label>
+ <i class="icon-calendar"></i>
+ <input type="text" data-datepicker="date_creation" data-datepicker-unset="date_creation_unset" readonly>
+ </label>
+ <a href="#" class="icon-cancel-circled" id="date_creation_unset">{'unset'|translate}</a>
</p>
<p>