Commit de9ddfb5d4755be9d86f3d61b20a8ddad7b23812
1 parent
b481bfac
Brand server without requiring access to FS
PT: 1243391 Added cancel button to apply logo form, also padded the preview border to match that of the previous pages border padding. Updated by: Charl Joseph Mert
Showing
2 changed files
with
4 additions
and
13 deletions
plugins/ktcore/admin/manageBranding.php
| ... | ... | @@ -308,6 +308,7 @@ class ManageBrandDispatcher extends KTAdminDispatcher { |
| 308 | 308 | 'label' => _kt('Apply Logo'), |
| 309 | 309 | 'submit_label' => _kt('Apply'), |
| 310 | 310 | 'action' => 'apply', |
| 311 | + 'cancel_action' => 'main', | |
| 311 | 312 | 'fail_action' => 'main', |
| 312 | 313 | 'encoding' => 'multipart/form-data', |
| 313 | 314 | 'context' => &$this, |
| ... | ... | @@ -329,7 +330,7 @@ class ManageBrandDispatcher extends KTAdminDispatcher { |
| 329 | 330 | 'value' => $logoFileName, |
| 330 | 331 | 'width' => $this->maxLogoWidth, |
| 331 | 332 | 'height' => $this->maxLogoHeight, |
| 332 | - 'widgetwidth' => 20 | |
| 333 | + 'div_border' => '1px solid #cccccc' | |
| 333 | 334 | )); |
| 334 | 335 | |
| 335 | 336 | // Adding the Hidden FileName Input String | ... | ... |
templates/ktcore/forms/widgets/image.smarty
| 1 | 1 | {if $options.has_div_border} |
| 2 | -<style> | |
| 3 | -.jq_select_image { | |
| 4 | - float: left; | |
| 5 | - border: {$options.div_border}; | |
| 6 | - margin-right: 5px; | |
| 7 | - padding: 0px; | |
| 8 | - display:inline; | |
| 9 | - height:70px; | |
| 10 | -} | |
| 11 | -</style> | |
| 12 | 2 | <fieldset> |
| 13 | 3 | <field> |
| 14 | 4 | <div style="float: left; |
| 15 | 5 | border: {$options.div_border}; |
| 16 | 6 | margin-right: 5px; |
| 17 | - padding: 0px; | |
| 7 | + padding: 10px; | |
| 18 | 8 | display:inline; |
| 19 | - height:70px;"> | |
| 9 | + height:50px;"> | |
| 20 | 10 | {/if} |
| 21 | 11 | |
| 22 | 12 | <img {if $has_id} id="{$id}" {/if} {if $has_value} src="{$value}"{/if} alt="{$name}" title="{$name}" {if $options.has_width} width="{$options.width}" {/if} {if $options.has_height} height="{$options.height}" {/if}/> | ... | ... |