Ignore:
Timestamp:
Apr 29, 2012, 9:34:44 AM (12 years ago)
Author:
plg
Message:

feature 2626: new design for the watermark configuration screen (tab in the "config > options")

TODO: the detection of derivatives that need to be updated is not working.

File:
1 edited

Legend:

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

    r14251 r14512  
    451451{/if}
    452452
     453{if isset($watermark)}
     454
     455{footer_script}{literal}
     456jQuery(document).ready(function() {
     457
     458  if (jQuery("input[name='w[position]']:checked").val() == 'custom') {
     459    jQuery("#positionCustomDetails").show();
     460  }
     461
     462  jQuery("input[name='w[position]']").change(function(){
     463    if (jQuery(this).val() == 'custom') {
     464      jQuery("#positionCustomDetails").show();
     465    }
     466    else {
     467      jQuery("#positionCustomDetails").hide();
     468    }
     469  });
     470});
     471{/literal}{/footer_script}
     472
     473
     474<fieldset id="watermarkConf">
     475  <legend></legend>
     476  <ul>
     477    <li>
     478      <label>{'Select a file'|@translate}</label>
     479      <select name="w[file]" id="wSelect">
     480        {html_options options=$watermark_files selected=$watermark.file}
     481      </select>
     482      <br>{'... or '|@translate}<a href="#" class="addWatermarkOpen" title="{'add a new watermark'|@translate}">{'add a new watermark'|@translate}</a>
     483    </li>
     484
     485{*
     486<p><img id="wImg"></img></p>
     487*}
     488
     489    <li>
     490      <label>
     491        {'Apply watermark if width is bigger than'|@translate}
     492        <input  size="4" maxlength="4" type="text" name="w[minw]" value="{$watermark.minw}"{if isset($ferrors.watermark.minw)}class="dError"{/if}>
     493      </label>
     494      {'pixels'|@translate}
     495    </li>
     496
     497    <li>
     498      <label>
     499        {'Apply watermark if height is bigger than'|@translate}
     500        <input  size="4" maxlength="4" type="text" name="w[minh]" value="{$watermark.minh}"{if isset($ferrors.watermark.minh)}class="dError"{/if}>
     501      </label>
     502      {'pixels'|@translate}
     503    </li>
     504
     505    <li>
     506      <label>{'Position'|@translate}</label>
     507      <br>
     508      <div id="watermarkPositionBox">
     509        <label class="right">{'top right corner'|@translate} <input name="w[position]" type="radio" value="topright"{if $watermark.position eq 'topright'} checked="checked"{/if}></label>
     510        <label><input name="w[position]" type="radio" value="topleft"{if $watermark.position eq 'topleft'} checked="checked"{/if}> {'top left corner'|@translate}</label>
     511        <label class="middle"><input name="w[position]" type="radio" value="middle"{if $watermark.position eq 'middle'} checked="checked"{/if}> {'middle'|@translate}</label>
     512        <label class="right">{'bottom right corner'|@translate} <input name="w[position]" type="radio" value="bottomright"{if $watermark.position eq 'bottomright'} checked="checked"{/if}></label>
     513        <label><input name="w[position]" type="radio" value="bottomleft"{if $watermark.position eq 'bottomleft'} checked="checked"{/if}> {'bottom left corner'|@translate}</label>
     514      </div>
     515      <label style="display:block;margin-top:10px;font-weight:normal;"><input name="w[position]" type="radio" value="custom"{if $watermark.position eq 'custom'} checked="checked"{/if}> {'custom'|@translate}</label>
     516      <div id="positionCustomDetails">
     517        <label>{'X Position'|@translate}
     518          <input size="3" maxlength="3" type="text" name="w[xpos]" value="{$watermark.xpos}"{if isset($ferrors.watermark.xpos)}class="dError"{/if}>%
     519        </label>
     520
     521        <br>
     522        <label>{'Y Position'|@translate}
     523          <input size="3" maxlength="3" type="text" name="w[ypos]" value="{$watermark.ypos}"{if isset($ferrors.watermark.ypos)}class="dError"{/if}>%
     524        </label>
     525
     526        <br>
     527        <label>{'X Repeat'|@translate}
     528          <input size="3" maxlength="3" type="text" name="w[xrepeat]" value="{$watermark.xrepeat}"{if isset($ferrors.watermark.xrepeat)}class="dError"{/if}>
     529        </label>
     530      </div>
     531    </li>
     532
     533    <li>
     534      <label>{'Opacity'|@translate}</label>
     535      <input size="3" maxlength="3" type="text" name="w[opacity]" value="{$watermark.opacity}"{if isset($ferrors.watermark.opacity)}class="dError"{/if}> %
     536    </li>
     537  </ul>
     538</fieldset>
     539
     540{/if} {* end of watermark section *}
     541
    453542{if isset($display)}
    454543<fieldset id="indexDisplayConf">
Note: See TracChangeset for help on using the changeset viewer.