Page to import template easier to understand.

This commit is contained in:
Laurent Destailleur 2020-04-13 22:52:34 +02:00
parent dc86f9528d
commit 5772057723
2 changed files with 45 additions and 49 deletions

View File

@ -441,11 +441,13 @@ function showWebsiteTemplates(Website $website)
$colspan = 2; $colspan = 2;
$thumbsbyrow = 6; print '<!-- For to import website template -->'."\n";
print '<table class="noborder centpercent">'; print '<table class="noborder centpercent">';
// Title // Title
print '<tr class="liste_titre"><th class="titlefield"></th>'; print '<tr class="liste_titre"><th class="titlefield">';
print $form->textwithpicto($langs->trans("Templates"), $langs->trans("ThemeDir").' : '.join(", ", $dirthemes));
print '</th>';
print '<th class="right">'; print '<th class="right">';
$url = 'https://www.dolistore.com/43-web-site-templates'; $url = 'https://www.dolistore.com/43-web-site-templates';
print '<a href="'.$url.'" target="_blank">'; print '<a href="'.$url.'" target="_blank">';
@ -453,20 +455,11 @@ function showWebsiteTemplates(Website $website)
print '</a>'; print '</a>';
print '</th></tr>'; print '</th></tr>';
print '<tr>';
print '<td>'.$langs->trans("ThemeDir").'</td>';
print '<td>';
foreach ($dirthemes as $dirtheme)
{
echo '"'.$dirtheme.'" ';
}
print '</td>';
print '</tr>';
print '<tr><td colspan="'.$colspan.'">'; print '<tr><td colspan="'.$colspan.'">';
print '<table class="nobordernopadding" width="100%"><tr><td><div class="center">'; print '<table class="nobordernopadding" width="100%"><tr><td><div class="center">';
if (count($dirthemes)) {
$i = 0; $i = 0;
foreach ($dirthemes as $dir) foreach ($dirthemes as $dir)
{ {
@ -520,6 +513,10 @@ function showWebsiteTemplates(Website $website)
} }
} }
} }
}
else {
print '<span class="opacitymedium">'.$langs->trans("None").'</span>';
}
print '</div></td></tr></table>'; print '</div></td></tr></table>';

View File

@ -3052,7 +3052,6 @@ if ($action == 'importsite')
showWebsiteTemplates($website); showWebsiteTemplates($website);
dol_fiche_end(); dol_fiche_end();
print '</div>'; print '</div>';