// replace fieldset with div for responsive table

This commit is contained in:
Kevin Granger
2013-10-15 18:09:53 +02:00
parent a85c1d7933
commit 0e7a7f8be4
70 changed files with 259 additions and 258 deletions
@@ -61,7 +61,7 @@
</script>
<form method="get" action="index.php" id="typeTranslationForm" class="form-horizontal">
<fieldset>
<div class="panel">
<h3>
<i class="icon-file-text"></i>
{l s='Modify translations'}
@@ -113,10 +113,10 @@
</div>
<input type="hidden" name="token" value="{$token}" />
</div>
</fieldset>
</div>
</form>
<form action="{$url_submit}" method="post" enctype="multipart/form-data" class="form-horizontal">
<fieldset>
<div class="panel">
<h3>
<i class="icon-download"></i>
{l s='Add / Update a language'}
@@ -147,11 +147,11 @@
<p class="text-danger">{l s='Cannot connect to the PrestaShop website to get the language list.'}</p>
{/if}
</div>
</fieldset>
</div>
</form>
<form action="{$url_submit}" method="post" enctype="multipart/form-data" class="form-horizontal">
<fieldset>
<div class="panel">
<h3>
<i class="icon-download"></i>
{l s='Import a language pack manually'}
@@ -181,11 +181,11 @@
<input type="submit" value="{l s=' Import '}" name="submitImport" class="btn btn-default" />
</div>
</div>
</fieldset>
</div>
</form>
<form action="{$url_submit}" method="post" enctype="multipart/form-data" class="form-horizontal">
<fieldset>
<div class="panel">
<h3>
<i class="icon-upload"></i>
{l s='Export a language'}
@@ -219,11 +219,11 @@
<input type="submit" class="btn btn-default" name="submitExport" value="{l s='Export'}" />
</div>
</div>
</fieldset>
</div>
</form>
<form action="{$url_submit}" method="post" class="form-horizontal">
<fieldset>
<div class="panel">
<h3>
<i class="icon-copy"></i>
{l s='Copy'}
@@ -278,6 +278,6 @@
{l s='Language files must be complete to allow copying of translations.'}
</p>
</div>
</fieldset>
</div>
</form>
{/block}
@@ -47,10 +47,10 @@
<div class="alert alert-info">
{l s='Some sentences to translate use this syntax: %s... These are variables, and PrestaShop take care of replacing them before displaying your translation. You must leave these in your translations, and place them appropriately in your sentence.' sprintf='%d, %s, %1$s, %2$d'}
</div>
<fieldset>
<div class="panel">
<p>{l s='Expressions to translate:'} <span class="badge">{l s='%d' sprintf=$count}</span></p>
<p>{l s='Total missing expresssions:'} <span class="badge">{l s='%d' sprintf=$missing_translations|array_sum}</p>
</fieldset>
</div>
<script type="text/javascript">
$(document).ready(function(){
@@ -80,7 +80,7 @@
</div>
<form method="post" id="{$table}_form" action="{$url_submit}" class="form-horizontal">
<fieldset>
<div class="panel">
{*{$auto_translate}$*}
<input type="hidden" name="lang" value="{$lang}" />
<input type="hidden" name="type" value="{$type}" />
@@ -105,7 +105,7 @@
</tr>
{/foreach}
</table>
</fieldset>
</div>
</form>
{/if}
@@ -50,13 +50,13 @@
<li>{l s='Some sentences to translate use this syntax: %s... These are variables, and PrestaShop take care of replacing them before displaying your translation. You must leave these in your translations, and place them appropriately in your sentence.' sprintf='%d, %s, %1$s, %2$d'}</li>
</ul>
</div>
<fieldset>
<div class="panel">
<p>{l s='Expressions to translate:'} <span class="badge">{l s='%d' sprintf=$count}</span></p>
<p>{l s='Total missing expresssions:'} <span class="badge">{l s='%d' sprintf=$missing_translations|array_sum}</p>
</fieldset>
</div>
<form method="post" id="{$table}_form" action="{$url_submit}" class="form-horizontal">
<fieldset>
<div class="panel">
{$toggle_button}
<input type="hidden" name="lang" value="{$lang}" />
<input type="hidden" name="type" value="{$type}" />
@@ -89,10 +89,10 @@
</ul>
</div>
</div>
</fieldset>
</div>
{foreach $tabsArray as $k => $newLang}
{if !empty($newLang)}
<fieldset>
<div class="panel">
<h3 onclick="$('#{$k}-tpl').slideToggle();">
{$k} - <span class="badge">{$newLang|count}</span> {l s='expressions'}
{if isset($missing_translations[$k])} <span class="label label-danger">{$missing_translations[$k]} {l s='missing'}</span>{/if}
@@ -125,8 +125,8 @@
</tr>
{/foreach}
</table>
</div>
</fieldset>
</div>
</div>
{/if}
{/foreach}
</form>
@@ -54,7 +54,7 @@
</div>
<form method="post" id="{$table}_form" action="{$url_submit}" class="form-horizontal">
<fieldset>
<div class="panel">
{$toggle_button}
<input type="hidden" name="lang" value="{$lang}" />
<input type="hidden" name="type" value="{$type}" />
@@ -87,16 +87,16 @@
</ul>
</div>
</div>
</fieldset>
<fieldset>
</div>
<div class="panel">
<h3>
<i class="icon-envelope"></i>
{l s='Core emails:'}
</h3>
<p>{l s='List of emails in the folder'} <strong>"mails/{$lang|strtolower}/"</strong></p>
{$mail_content}
</fieldset>
<fieldset>
</div>
<div class="panel">
<h3>
<i class="icon-envelope"></i>
{l s='Module emails:'}
@@ -105,7 +105,7 @@
{foreach $module_mails as $module_name => $mails}
{$mails['display']}
{/foreach}
</fieldset>
</div>
</form>
{/if}
@@ -50,10 +50,10 @@
<li>{l s='Some sentences to translate use this syntax: %s... These are variables, and PrestaShop take care of replacing them before displaying your translation. You must leave these in your translations, and place them appropriately in your sentence.' sprintf='%d, %s, %1$s, %2$d'}</li>
</ul>
</div>
<fieldset>
<div class="panel">
<p>{l s='Expressions to translate:'} <span class="badge">{l s='%d' sprintf=$count}</span></p>
<p>{l s='Total missing expresssions:'} <span class="badge">{l s='%d' sprintf=$missing_translations}</p>
</fieldset>
</div>
<script type="text/javascript">
$(document).ready(function(){
@@ -105,7 +105,7 @@
{else}
{$missing_translations_module = 0}
{/if}
<fieldset>
<div class="panel">
<h3 onclick="$('#{$theme_name}_{$module_name}_{$template_name|replace:'.':'_'}').slideToggle();">{if $theme_name}{$theme_name} - {/if}{$template_name}
<span class="badge">{$newLang|count}</span> {l s='expressions'} <span class="label label-danger">{$missing_translations_module}</span>
</h3>
@@ -140,7 +140,7 @@
{/foreach}
</table>
</div>
</fieldset>
</div>
{/if}
{/foreach}
{/foreach}