Changeset 26016 for extensions/birthdate/admin
- Timestamp:
- Dec 18, 2013, 10:50:52 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/birthdate/admin/template/birthdates.tpl
r19773 r26016 8 8 9 9 {combine_script id='jquery.chosen' load='footer' path='themes/default/js/plugins/chosen.jquery.min.js'} 10 {combine_css path="themes/default/js/plugins/chosen.css"} 10 11 11 {combine_css path="themes/default/js/plugins/chosen.css"}12 12 {combine_css path="themes/default/js/ui/theme/jquery.ui.datepicker.css"} 13 13 {combine_css path="themes/default/js/ui/theme/jquery.ui.slider.css"} 14 14 15 {footer_script require='jquery.timepicker'} {literal}15 {footer_script require='jquery.timepicker'} 16 16 jQuery(document).ready(function() { 17 jQuery("#who").chosen( );17 jQuery("#who").chosen({ "width":"300px" }); 18 18 19 19 jQuery('#birthdateSelect').datetimepicker({ … … 23 23 yearRange: "1900:+1", 24 24 dateFormat: "yy-mm-dd", 25 timeText: '{ /literal}{'selection'|@translate|escape:javascript}{literal}',26 hourText: '{ /literal}{'Hour'|@translate|escape:javascript}{literal}',27 minuteText: '{ /literal}{'Minute'|@translate|escape:javascript}{literal}',28 currentText: '{ /literal}{'Now'|@translate|escape:javascript}{literal}',29 closeText: '{ /literal}{'Validate'|@translate|escape:javascript}{literal}'25 timeText: '{'selection'|@translate|escape:javascript}', 26 hourText: '{'Hour'|@translate|escape:javascript}', 27 minuteText: '{'Minute'|@translate|escape:javascript}', 28 currentText: '{'Now'|@translate|escape:javascript}', 29 closeText: '{'Validate'|@translate|escape:javascript}' 30 30 }); 31 31 … … 57 57 58 58 jQuery("[name=add_birthdate]").show(); 59 jQuery("#who").val("~~"+tag_id+"~~").trigger(" liszt:updated");59 jQuery("#who").val("~~"+tag_id+"~~").trigger("chosen:updated"); 60 60 jQuery("#birthdateSelect").val(birthdate); 61 61 … … 87 87 88 88 }); 89 {/ literal}{/footer_script}89 {/footer_script} 90 90 91 92 {literal} 93 <style> 91 {html_style}{literal} 94 92 form fieldset p {text-align:left;margin:0 0 1.5em 0;line-height:20px;} 95 93 .rowSelected {background-color:#C2F5C2 !important} … … 97 95 .birthdateActions {text-align:center;} 98 96 .birthdateActions a:hover {border:none} 97 .ui-datepicker-current {display:none} 99 98 100 99 #editLegend {display:none} 101 </style> 102 {/literal} 100 .birthdateActions a {display:inline-block;} 101 .birthdateActions a:hover {text-decoration:none;} 102 {/literal}{/html_style} 103 103 104 104 <div class="titrePage"> … … 120 120 <strong>{'Who?'|@translate}</strong> 121 121 <br> 122 <select id="who" name="who" data-placeholder="{'Select a tag'|@translate}" style="width:250px;">122 <select id="who" name="who" data-placeholder="{'Select a tag'|@translate}"> 123 123 <option value=""></option> 124 124 {foreach from=$tags item=tag} … … 157 157 <td>{$birthdate.PHOTOS}</td> 158 158 <td class="birthdateActions"> 159 <a href="#" class="editBirthdate" data-tag_id="{$birthdate.TAG_ID}" data-birthdate="{$birthdate.BIRTHDATE_RAW}"> 160 <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/edit_s.png" alt="{'edit'|@translate}" title="{'edit'|@translate}" /> 161 </a> 162 <a href="{$birthdate.U_DELETE}" onclick="return confirm( document.getElementById('btn_delete{$birthdate.TAG_ID}').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');"> 163 <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" id="btn_delete{$birthdate.TAG_ID}" alt="{'delete'|@translate}" title="{'Delete birthdate for %s'|@translate|@sprintf:$birthdate.NAME}" /> 164 </a> 159 <a href="#" class="editBirthdate icon-pencil" data-tag_id="{$birthdate.TAG_ID}" data-birthdate="{$birthdate.BIRTHDATE_RAW}" title="{'edit'|@translate}"></a> 160 <a href="{$birthdate.U_DELETE}" onclick="return confirm( document.getElementById('btn_delete{$birthdate.TAG_ID}').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');" class="icon-trash" title="{'Delete birthdate for %s'|@translate|@sprintf:$birthdate.NAME}"></a> 165 161 </td> 166 162 </tr>
Note: See TracChangeset
for help on using the changeset viewer.