cosmetics
This commit is contained in:
parent
04b2980d82
commit
23a59c0289
1 changed files with 6 additions and 4 deletions
10
_admin.php
10
_admin.php
|
@ -119,10 +119,10 @@ class tweakStoresBehaviors
|
||||||
'<h4>' . sprintf(__('Generated code for module : %s'), html::escapeHTML($_POST['buildxml_id'])) . '</h4>';
|
'<h4>' . sprintf(__('Generated code for module : %s'), html::escapeHTML($_POST['buildxml_id'])) . '</h4>';
|
||||||
|
|
||||||
if (!empty(tweakStores::$failed)) {
|
if (!empty(tweakStores::$failed)) {
|
||||||
echo '<p class="info">' . sprintf(__('Failed to parse XML code: %s'), implode(', ', tweakStores::$failed)) . '</p>';
|
echo '<p class="info">' . sprintf(__('Failed to parse XML code: %s'), implode(', ', tweakStores::$failed)) . '</p> ';
|
||||||
}
|
}
|
||||||
if (!empty(tweakStores::$notice)) {
|
if (!empty(tweakStores::$notice)) {
|
||||||
echo '<p class="info">' . sprintf(__('Code is not fully filled: %s'), implode(', ', tweakStores::$notice)) . '</p>';
|
echo '<p class="info">' . sprintf(__('Code is not fully filled: %s'), implode(', ', tweakStores::$notice)) . '</p> ';
|
||||||
}
|
}
|
||||||
if (!empty($xml_content)) {
|
if (!empty($xml_content)) {
|
||||||
if (empty(tweakStores::$failed) && empty(tweakStores::$notice)) {
|
if (empty(tweakStores::$failed) && empty(tweakStores::$notice)) {
|
||||||
|
@ -131,8 +131,10 @@ class tweakStoresBehaviors
|
||||||
echo
|
echo
|
||||||
'<pre>' . form::textArea('gen_xml', 165, 14, html::escapeHTML(str_replace('><', ">\n<", $xml_content)), 'maximal') . '</pre>';
|
'<pre>' . form::textArea('gen_xml', 165, 14, html::escapeHTML(str_replace('><', ">\n<", $xml_content)), 'maximal') . '</pre>';
|
||||||
|
|
||||||
if (!empty($file_pattern) && $modules[$_POST['buildxml_id']]['root_writable'] && $core->auth->isSuperAdmin()) {
|
if (empty(tweakStores::$failed)
|
||||||
|
&& $modules[$_POST['buildxml_id']]['root_writable']
|
||||||
|
&& $core->auth->isSuperAdmin()
|
||||||
|
) {
|
||||||
echo
|
echo
|
||||||
'<p class="field"><label for="your_pwd2" class="classic required"><abbr title="' . __('Required field') . '">*</abbr> ' . __('Your password:') . '</label> ' .
|
'<p class="field"><label for="your_pwd2" class="classic required"><abbr title="' . __('Required field') . '">*</abbr> ' . __('Your password:') . '</label> ' .
|
||||||
form::password(['your_pwd', 'your_pwd2'], 20, 255,
|
form::password(['your_pwd', 'your_pwd2'], 20, 255,
|
||||||
|
|
Loading…
Reference in a new issue