Changeset 32162 for extensions/manage_properties_photos/admin/admin.tpl
- Timestamp:
- May 2, 2020, 6:46:21 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/manage_properties_photos/admin/admin.tpl
r32161 r32162 1 1 {combine_script id='jquery.ui.sortable' require='jquery.ui' load='footer' path='themes/default/js/ui/minified/jquery.ui.sortable.min.js'} 2 2 {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 3 {combine_script id='jquery.timepicker' require='jquery.ui.datepicker,jquery.ui.slider' load='footer' path=$ADD_PROP_PHOTO_PATH|@cat:"js/jquery-ui-timepicker-addon.js"} 4 {assign var="datepicker_language" value="themes/default/js/ui/i18n/jquery.ui.datepicker-`$lang_info.code`.js"} 5 {if "PHPWG_ROOT_PATH"|@constant|@cat:$datepicker_language|@file_exists} 6 {combine_script id="jquery.ui.datepicker-$lang_info.code" load='footer' path=$datepicker_language} 7 {/if} 3 {include file='include/datepicker.inc.tpl'} 8 4 9 5 {combine_script id='jquery.chosen' load='footer' path='themes/default/js/plugins/chosen.jquery.min.js'} 10 6 {combine_css path="themes/default/js/plugins/chosen.css"} 11 12 {combine_css path="themes/default/js/ui/theme/jquery.ui.datepicker.css"}13 7 {combine_css path="themes/default/js/ui/theme/jquery.ui.slider.css"} 14 8 … … 16 10 {footer_script} 17 11 jQuery(document).ready(function(){ 12 13 {* <!-- DATEPICKER --> *} 14 jQuery(function(){ {* <!-- onLoad needed to wait localization loads --> *} 15 jQuery('[data-datepicker]').pwgDatepicker({ 16 showTimepicker: true, 17 cancelButton: '{'Cancel'|translate}' 18 }); 19 }); 18 20 19 21 var x = 1; … … 53 55 54 56 jQuery('#aip_sumit').click(function(){ 55 jQuery("#add_info_edit"). show();57 jQuery("#add_info_edit").toggle(); 56 58 jQuery("#leg_add").show(); 57 59 jQuery("#leg_edit").hide(); … … 244 246 $(wrapper).on("click",".remove_field", function(e){ 245 247 e.preventDefault(); $(this).parent('div').remove(); x--; 246 }) 247 248 $('.dateSelect').datetimepicker({ 249 numberOfMonths: 1, 250 changeMonth: true, 251 changeYear: true, 252 yearRange: "1900:+1", 253 dateFormat: "yy-mm-dd", 254 timeText: '{'selection'|@translate|escape:javascript}', 255 hourText: '{'Hour'|@translate|escape:javascript}', 256 minuteText: '{'Minute'|@translate|escape:javascript}', 257 currentText: '{'Now'|@translate|escape:javascript}', 258 closeText: '{'Validate'|@translate|escape:javascript}' 259 }); 260 248 }) 261 249 }); 262 250 {/footer_script} … … 268 256 margin-right:40px; 269 257 } 258 #aip_sumit{ 259 border: 1px solid #D6D6D6; 260 color: #5B5B5B; 261 padding: 7px 15px; 262 font-weight: bold; 263 font-size: 11px; 264 } 265 #aip_sumit:hover{ 266 border: 1px solid #aaa; 267 text-decoration: none; 268 } 269 .showCreatempp{ 270 text-align: left; 271 margin: 0 1em 25px 20px; 272 line-height: 22px; 273 } 270 274 {/html_style} 271 275 … … 275 279 </div> 276 280 {if isset ($addinfotemplate)} 277 <p class="showCreate Album">278 <a href="#" id="aip_sumit" >{'Create new Property photo'|@translate} </a>281 <p class="showCreatempp"> 282 <a href="#" id="aip_sumit" class="icon-plus">{'Create new Property photo'|@translate} </a> 279 283 </p> 280 284 <div id="add_info_edit" style="display: none;"> 281 285 <form method="post" > 282 <fieldset >286 <fieldset class="with-border"> 283 287 <legend><span id="leg_add">{'Create new Property photo'|@translate}</span><span id="leg_edit">{'Edit Property photo'|@translate}</span></legend> 284 288 <input id="hideid" data-maxfield="{$MPPMAXFIELD}" type="hidden" name="invisibleID" value="{$addinfo_edit2.AIPID}"></input> … … 292 296 293 297 <p id="wordingta" class="input"> 294 <label for="inserwording"> {'Wording'|@translate}</label><br />298 <label for="inserwording"><strong>{'Wording'|@translate}</strong></label><br /> 295 299 <textarea {if $useED==1}placeholder="{'Use Extended Description tags...'|@translate}"{/if} style="margin-left:50px" rows="5" cols="50" class="description" name="inserwording" id="aip_add">{$addinfo_edit2.AIPDESC}</textarea> 296 300 {if $useED==1} … … 308 312 </div> 309 313 <div id="exifselect" class="exifselect"> 314 {if empty ($rm_exif)}<span style="margin: 0 0 0 20px">{'The reference photo doesn\'t have exif'|@translate} 315 {else} 310 316 <select name="selectexif" id="selectexif"> 311 317 <option value="">-----</option> … … 314 320 <option value="{if isset ($rm.RM_SECTION) and ($rm.RM_SECTION)!='1'}{$rm.RM_SECTION}:{/if}{$rm.RM_KEY}">{if isset ($rm.RM_SECTION) and ($rm.RM_SECTION)!='1'} {/if}{$rm.RM_KEY}</option> 315 321 {/foreach} 316 </select>{if empty ($rm_exif)}<span style="margin: 0 0 0 20px">{'The reference photo doesn\'t have exif'|@translate}{/if} 322 </select> 323 {/if} 317 324 </div> 318 325 <div id="iptcselect" class="iptcselect"> 326 {if empty ($rm_iptc)}<span style="margin: 0 0 0 20px">{'The reference photo doesn\'t have IPTC'|@translate} 327 {else} 319 328 <select name="selectiptc" id="selectiptc"> 320 329 <option value="">-----</option> … … 322 331 <option value="{$rm.RM_KEY}">{$rm.RM_KEY}</option> 323 332 {/foreach} 324 </select>{if empty ($rm_iptc)}<span style="margin: 0 0 0 20px">{'The reference photo doesn\'t have IPTC'|@translate}{/if} 333 </select> 334 {/if} 325 335 </div> 326 336 <p class="actionButtons"> 327 <input class="submit" name="submitaddAIP" type="submit" value="{'Submit'|@translate}" /> 328 <a href="#" id="addinfoClose">{'Cancel'|@translate}</a> 337 <button name="submitaddAIP" type="submit" class="buttonLike"> 338 <i class="icon-plus-circled"></i> {'Create'|translate} 339 </button> 340 <a href="#" id="addinfoClose" class="icon-cancel-circled">{'Cancel'|@translate}</a> 329 341 </p> 330 342 </fieldset> … … 376 388 {/if} 377 389 {if $infophoto.AIPTYP==2} 378 <td><input type="text" class="dateSelect" id="dateSelect[{$infophoto.IDINFOPHO}]" name="datadate[{$infophoto.IDINFOPHO}]" style="width:120px;" value="{$infophoto.AIPDATA}"></td> 390 <td> 391 <input type="hidden" name="datadate[{$infophoto.IDINFOPHO}]" value="{$infophoto.AIPDATA}"> 392 <label> 393 <i class="icon-calendar"></i> 394 <input type="text" data-datepicker="datadate[{$infophoto.IDINFOPHO}]" readonly> 395 </label> 396 </td> 379 397 {/if} 380 398 {if $infophoto.AIPTYP==4}
Note: See TracChangeset
for help on using the changeset viewer.