Ignore:
Timestamp:
May 18, 2014, 12:04:36 AM (10 years ago)
Author:
mistic100
Message:

feature 3080 : simpler date inputs (one input + fontello + picker selects)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/picture_modify.tpl

    r28496 r28497  
    7777
    7878{* <!-- DATEPICKER --> *}
    79 pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set");
     79jQuery(function(){ {* <!-- onLoad needed to wait localization loads --> *}
     80  jQuery('[data-datepicker]').pwgDatepicker();
     81});
    8082}());
    8183{/footer_script}
     
    139141      <strong>{'Creation date'|@translate}</strong>
    140142      <br>
    141       <select id="date_creation_day" name="date_creation_day">
    142         <option value="0">--</option>
    143 {section name=day start=1 loop=32}
    144         <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY_VALUE}selected="selected"{/if}>{$smarty.section.day.index}</option>
    145 {/section}
    146       </select>
    147 
    148       <select id="date_creation_month" name="date_creation_month">
    149         {html_options options=$month_list selected=$DATE_CREATION_MONTH_VALUE}
    150       </select>
    151 
    152       <input id="date_creation_year" name="date_creation_year" type="text" size="4" maxlength="4" value="{$DATE_CREATION_YEAR_VALUE}">
    153       <input id="date_creation_linked_date" name="date_creation_linked_date" type="hidden" size="10" disabled="disabled">
    154       <input name="date_creation_time" type="hidden" value="{$DATE_CREATION_TIME_VALUE}">
    155       <a href="#" id="unset_date_creation" style="display:none">unset</a>
     143      <input type="hidden" name="date_creation_time" value="{$DATE_CREATION_TIME}">
     144      <input type="hidden" name="date_creation" value="{$DATE_CREATION}">
     145      <label>
     146        <i class="icon-calendar"></i>
     147        <input type="text" data-datepicker="date_creation" data-datepicker-unset="date_creation_unset" readonly>
     148      </label>
     149      <a href="#" class="icon-cancel-circled" id="date_creation_unset">{'unset'|translate}</a>
    156150    </p>
    157151
Note: See TracChangeset for help on using the changeset viewer.