Changeset 14221 for trunk/admin/themes
- Timestamp:
- Apr 19, 2012, 4:43:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/configuration.tpl
r13883 r14221 320 320 {/literal}{/footer_script} 321 321 322 {literal} 323 <style> 322 {html_head}{literal} 323 <style type="text/css"> 324 input[type="text"].dError {border-color:#ff7070; background-color:#FFe5e5;} 325 .dErrorDesc {background-color:red; color:white; padding:0 5px;border-radius:10px; font-weight:bold;cursor:help;} 324 326 .sizeEnable {width:50px;} 325 327 .sizeEditForm {margin:0 0 10px 20px;} … … 330 332 .sizeEditOpen {margin-left:10px;} 331 333 </style> 332 {/literal} 334 {/literal}{/html_head} 333 335 334 336 <fieldset id="sizesConf"> … … 345 347 <tr> 346 348 <th>{'Maximum Width'|@translate}</th> 347 <td><input type="text" name="original_resize_maxwidth" value="{$sizes.original_resize_maxwidth}" size="4" maxlength="4"> {'pixels'|@translate}</td> 349 <td> 350 <input type="text" name="original_resize_maxwidth" value="{$sizes.original_resize_maxwidth}" size="4" maxlength="4"{if isset($ferrors.original_resize_maxwidth)} class="dError"{/if}> {'pixels'|@translate} 351 {if isset($ferrors.original_resize_maxwidth)}<span class="dErrorDesc" title="{$ferrors.original_resize_maxwidth}">!</span>{/if} 352 </td> 348 353 </tr> 349 354 <tr> 350 355 <th>{'Maximum Height'|@translate}</th> 351 <td><input type="text" name="original_resize_maxheight" value="{$sizes.original_resize_maxheight}" size="4" maxlength="4"> {'pixels'|@translate}</td> 356 <td> 357 <input type="text" name="original_resize_maxheight" value="{$sizes.original_resize_maxheight}" size="4" maxlength="4"{if isset($ferrors.original_resize_maxheight)} class="dError"{/if}> {'pixels'|@translate} 358 {if isset($ferrors.original_resize_maxheight)}<span class="dErrorDesc" title="{$ferrors.original_resize_maxheight}">!</span>{/if} 359 </td> 352 360 </tr> 353 361 <tr> 354 362 <th>{'Image Quality'|@translate}</th> 355 <td><input type="text" name="original_resize_quality" value="{$sizes.original_resize_quality}" size="3" maxlength="3"> %</td> 363 <td> 364 <input type="text" name="original_resize_quality" value="{$sizes.original_resize_quality}" size="3" maxlength="3"{if isset($ferrors.original_resize_quality)} class="dError"{/if}> % 365 {if isset($ferrors.original_resize_quality)}<span class="dErrorDesc" title="{$ferrors.original_resize_quality}">!</span>{/if} 366 </td> 356 367 </tr> 357 368 </table> … … 359 370 </fieldset> 360 371 361 <div class="warnings">Warning: the following fields are for test "user interface" test only. Any change won't be saved.<br>See screen [Administration > Configuration > Multiple Size] to configure sizes.</div>362 363 372 <fieldset id="multiSizesConf"> 364 373 <legend>{'Multiple Size'|@translate}</legend> 365 374 366 375 <div class="showDetails"> 367 <a href="#" id="showDetails"{if $show_details } style="display:none"{/if}>{'show details'|@translate}</a>376 <a href="#" id="showDetails"{if $show_details or isset($ferrors)} style="display:none"{/if}>{'show details'|@translate}</a> 368 377 </div> 369 378 … … 385 394 386 395 <td> 387 <span class="sizeDetails" >{$d.w} x {$d.h} {'pixels'|@translate}{if $d.crop}, {'Crop'|@translate|lower}{/if}</span>396 <span class="sizeDetails"{if isset($ferrors)} style="display:inline"{/if}>{$d.w} x {$d.h} {'pixels'|@translate}{if $d.crop}, {'Crop'|@translate|lower}{/if}</span> 388 397 </td> 389 398 390 399 <td> 391 <span class="sizeDetails" >400 <span class="sizeDetails"{if isset($ferrors) and !isset($ferrors.$type)} style="display:inline"{/if}> 392 401 <a href="#" id="sizeEditOpen-{$type}" class="sizeEditOpen">{'edit'|@translate}</a> 393 402 </span> … … 395 404 </tr> 396 405 397 <tr id="sizeEdit-{$type}" class="sizeEdit" >406 <tr id="sizeEdit-{$type}" class="sizeEdit" {if isset($ferrors.$type)} style="display:block"{/if}> 398 407 <td colspan="3"> 399 408 <table class="sizeEditForm"> … … 412 421 <td class="sizeEditWidth">{if $d.must_square or $d.crop}{'Width'|@translate}{else}{'Maximum Width'|@translate}{/if}</td> 413 422 <td> 414 <input type="text" name="d[{$type}][w]" maxlength="4" size="4" value="{$d.w}"{if isset($ferrors.$type.w)} class="dError"{/if}>423 <input type="text" name="d[{$type}][w]" maxlength="4" size="4" value="{$d.w}"{if isset($ferrors.$type.w)} class="dError"{/if}> 415 424 {'pixels'|@translate} 416 425 {if isset($ferrors.$type.w)}<span class="dErrorDesc" title="{$ferrors.$type.w}">!</span>{/if} … … 422 431 <td class="sizeEditHeight">{if $d.crop}{'Height'|@translate}{else}{'Maximum Height'|@translate}{/if}</td> 423 432 <td> 424 <input type="text" name="d[{$type}][h]" maxlength="4" size="4" value="{$d.h}"{if isset($ferrors.$type.h)} class="dError"{/if}>433 <input type="text" name="d[{$type}][h]" maxlength="4" size="4" value="{$d.h}"{if isset($ferrors.$type.h)} class="dError"{/if}> 425 434 {'pixels'|@translate} 426 435 {if isset($ferrors.$type.h)}<span class="dErrorDesc" title="{$ferrors.$type.h}">!</span>{/if} … … 434 443 </table> 435 444 436 <p style="margin:20px 0 0 0 " class="sizeDetails">445 <p style="margin:20px 0 0 0;{if isset($ferrors)} display:block;{/if}" class="sizeDetails"> 437 446 {'Image Quality'|@translate} 438 <input type="text" name="original_resize_quality" value="{$sizes.original_resize_quality}" size="3" maxlength="3"> % 447 <input type="text" name="resize_quality" value="{$resize_quality}" size="3" maxlength="3"{if isset($ferrors.resize_quality)} class="dError"{/if}> % 448 {if isset($ferrors.resize_quality)}<span class="dErrorDesc" title="{$ferrors.resize_quality}">!</span>{/if} 439 449 </p> 440 450 </fieldset>
Note: See TracChangeset
for help on using the changeset viewer.