Ignore:
Timestamp:
Nov 24, 2013, 6:09:57 PM (10 years ago)
Author:
mistic100
Message:

very big update for Piwigo 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/admin/template/export.tpl

    r20099 r25678  
    1 {combine_css path=$USER_COLLEC_PATH|@cat:"admin/template/style.css"}
     1{combine_css path=$USER_COLLEC_PATH|cat:'admin/template/style.css'}
    22
    3 {footer_script require='jquery.ui.sortable'}{literal}
    4 $( "#fields_active, #fields_inactive" ).sortable({
    5   connectWith: ".connectedSortable",
    6   items: "> li",
    7   placeholder: "sortable-moving"
     3{footer_script require='jquery.ui.sortable'}
     4$('#fields_active, #fields_inactive').sortable({
     5  connectWith: '.connectedSortable',
     6  items: '> li',
     7  placeholder: 'sortable-moving'
    88}).disableSelection();
    99
    10 $("input[name='generate']").click(function() {
    11   query = "ws.php?format=rest&method=pwg.collections.getSerialized&col_id={/literal}{$COL_ID}{literal}";
    12   $("#fields_active li").each(function() {
     10$('input[name="generate"]').click(function() {
     11  query = 'ws.php?format=rest&method=pwg.collections.getSerialized&col_id={$COL_ID}';
     12  $('#fields_active li').each(function() {
    1313    query+= '&content[]='+ $(this).data('name');
    1414  });
    15  
    16   $("#iframeWrapper").show();
    17   $("#invokeFrame").attr('src', query);
    18  
     15
     16  $('#iframeWrapper').show();
     17  $('#invokeFrame').attr('src', query);
     18
    1919  return false;
    2020});
    2121
    22 $("#invokeFrame").load(function() {
     22$('#invokeFrame').load(function() {
    2323  $(this).css('height', $(this).contents().find('body').outerHeight(true)+10);
    2424});
    2525
    26 $("input[name='download']").click(function() {
    27   $("#fields_active li").each(function() {
    28     $("#export_form").append('<input type="hidden" name="active[]" value="'+ $(this).data('name') +'"/>');
     26$('input[name="download"]').click(function() {
     27  $('#fields_active li').each(function() {
     28    $('#export_form').append('<input type="hidden" name="active[]" value="'+ $(this).data('name') +'"/>');
    2929  });
    30   $("#fields_inactive li").each(function() {
    31     $("#export_form").append('<input type="hidden" name="inactive[]" value="'+ $(this).data('name') +'"/>');
     30  $('#fields_inactive li').each(function() {
     31    $('#export_form').append('<input type="hidden" name="inactive[]" value="'+ $(this).data('name') +'"/>');
    3232  });
    3333});
    34 {/literal}{/footer_script}
     34{/footer_script}
    3535
    3636<div class="titrePage">
     
    4141<form method="post" action="" class="properties" id="export_form">
    4242<fieldset>
    43   <legend>{'Fields'|@translate}</legend>
     43  <legend>{'Fields'|translate}</legend>
    4444  <ul id="fields_active" class="connectedSortable">
    45     <h4>{'Active'|@translate}</h4>
     45    <h4>{'Active'|translate}</h4>
    4646  {foreach from=$active_fields item=field}
    4747    <li data-name="{$field}"><img src="{$themeconf.admin_icon_dir}/cat_move.png"> {$field}</li>
     
    4949  </ul>
    5050  <ul id="fields_inactive" class="connectedSortable">
    51     <h4>{'Inactive'|@translate}</h4>
     51    <h4>{'Inactive'|translate}</h4>
    5252  {foreach from=$inactive_fields item=field}
    5353    <li data-name="{$field}"><img src="{$themeconf.admin_icon_dir}/cat_move.png"> {$field}</li>
    5454  {/foreach}
    5555  </ul>
    56  
     56
    5757  <p class="formButtons">
    58     <input type="submit" name="generate" value="{'Preview'|@translate}">
    59     <input type="submit" name="download" value="{'Download CSV file'|@translate}">
    60   </p>   
     58    <input type="submit" name="generate" value="{'Preview'|translate}">
     59    <input type="submit" name="download" value="{'Download CSV file'|translate}">
     60  </p>
    6161</fieldset>
    6262
    6363<fieldset id="iframeWrapper" style="display:none;">
    64   <legend>{'Preview'|@translate}</legend>
     64  <legend>{'Preview'|translate}</legend>
    6565  <iframe src="" id="invokeFrame" name="invokeFrame"></iframe>
    6666</fieldset>
Note: See TracChangeset for help on using the changeset viewer.