[*] BO : #PSCFV-3710 : select a current theme in AdminTranslations
This commit is contained in:
@@ -68,7 +68,8 @@
|
||||
</select>
|
||||
<select name="theme" style="float:left; margin-right:10px;">
|
||||
{foreach $themes as $theme}
|
||||
<option value="{$theme->directory}">{$theme->name} </option>
|
||||
|
||||
<option value="{$theme->directory}" {if $id_theme_current == $theme->id}selected=selected{/if}>{$theme->name} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{foreach $languages as $language}
|
||||
@@ -152,7 +153,7 @@
|
||||
|
||||
<select name="theme" style="margin-top:10px;">
|
||||
{foreach $themes as $theme}
|
||||
<option value="{$theme->directory}">{$theme->name}</option>
|
||||
<option value="{$theme->directory}" {if $id_theme_current == $theme->id}selected=selected{/if}>{$theme->name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="submit" class="button" name="submitExport" value="{l s='Export'}" />
|
||||
@@ -176,7 +177,7 @@
|
||||
|
||||
<select name="fromTheme">
|
||||
{foreach $themes as $theme}
|
||||
<option value="{$theme->directory}">{$theme->name}</option>
|
||||
<option value="{$theme->directory}" {if $id_theme_current == $theme->id}selected=selected{/if}>{$theme->name}</option>
|
||||
{/foreach}
|
||||
</select> <span style="font-style: bold; color: red;">*</span>
|
||||
</p>
|
||||
@@ -190,7 +191,7 @@
|
||||
|
||||
<select name="toTheme">
|
||||
{foreach $themes as $theme}
|
||||
<option value="{$theme->directory}">{$theme->name}</option>
|
||||
<option value="{$theme->directory}" {if $id_theme_current == $theme->id}selected=selected{/if}>{$theme->name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</p>
|
||||
|
||||
@@ -197,6 +197,7 @@ class AdminTranslationsControllerCore extends AdminController
|
||||
'packs_to_update' => $packs_to_update,
|
||||
'url_submit' => self::$currentIndex.'&token='.$this->token,
|
||||
'themes' => $this->themes,
|
||||
'id_theme_current' => $this->context->shop->id_theme,
|
||||
'url_create_language' => 'index.php?controller=AdminLanguages&addlang&token='.$token,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user