Changeset 14513 for trunk/admin/themes


Ignore:
Timestamp:
Apr 29, 2012, 1:41:34 PM (12 years ago)
Author:
plg
Message:

feature 2626: manage inline errors on form submission

Location:
trunk/admin/themes/default
Files:
2 edited

Legend:

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

    r14512 r14513  
    320320
    321321{html_style}{literal}
    322 input[type="text"].dError {border-color:#ff7070; background-color:#FFe5e5;}
    323 .dErrorDesc {background-color:red; color:white; padding:0 5px;border-radius:10px; font-weight:bold;cursor:help;}
    324322.sizeEnable {width:50px;}
    325323.sizeEditForm {margin:0 0 10px 20px;}
     
    490488      <label>
    491489        {'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}>
     490        <input  size="4" maxlength="4" type="text" name="w[minw]" value="{$watermark.minw}"{if isset($ferrors.watermark.minw)} class="dError"{/if}>
    493491      </label>
    494492      {'pixels'|@translate}
     
    498496      <label>
    499497        {'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}>
     498        <input  size="4" maxlength="4" type="text" name="w[minh]" value="{$watermark.minh}"{if isset($ferrors.watermark.minh)} class="dError"{/if}>
    501499      </label>
    502500      {'pixels'|@translate}
     
    516514      <div id="positionCustomDetails">
    517515        <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}>%
     516          <input size="3" maxlength="3" type="text" name="w[xpos]" value="{$watermark.xpos}"{if isset($ferrors.watermark.xpos)} class="dError"{/if}>%
     517          {if isset($ferrors.watermark.xpos)}<span class="dErrorDesc" title="{$ferrors.watermark.xpos}">!</span>{/if}
    519518        </label>
    520519
    521520        <br>
    522521        <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}>%
     522          <input size="3" maxlength="3" type="text" name="w[ypos]" value="{$watermark.ypos}"{if isset($ferrors.watermark.ypos)} class="dError"{/if}>%
     523          {if isset($ferrors.watermark.ypos)}<span class="dErrorDesc" title="{$ferrors.watermark.ypos}">!</span>{/if}
    524524        </label>
    525525
    526526        <br>
    527527        <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}>
     528          <input size="3" maxlength="3" type="text" name="w[xrepeat]" value="{$watermark.xrepeat}"{if isset($ferrors.watermark.xrepeat)} class="dError"{/if}>
     529          {if isset($ferrors.watermark.xrepeat)}<span class="dErrorDesc" title="{$ferrors.watermark.xrepeat}">!</span>{/if}
    529530        </label>
    530531      </div>
     
    533534    <li>
    534535      <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      <input size="3" maxlength="3" type="text" name="w[opacity]" value="{$watermark.opacity}"{if isset($ferrors.watermark.opacity)} class="dError"{/if}> %
     537      {if isset($ferrors.watermark.opacity)}<span class="dErrorDesc" title="{$ferrors.watermark.opacity}">!</span>{/if}
    536538    </li>
    537539  </ul>
  • trunk/admin/themes/default/theme.css

    r14512 r14513  
    11091109  font-weight:normal;
    11101110}
     1111
     1112input[type="text"].dError {border-color:#ff7070; background-color:#FFe5e5;}
     1113.dErrorDesc {background-color:red; color:white; padding:0 5px;border-radius:10px; font-weight:bold;cursor:help;}
Note: See TracChangeset for help on using the changeset viewer.