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