Merge branch 'bootstrap' of https://github.com/PrestaShop/PrestaShop into bootstrap
This commit is contained in:
@@ -1509,7 +1509,7 @@ abstract class ModuleCore
|
|||||||
public function displayError($error)
|
public function displayError($error)
|
||||||
{
|
{
|
||||||
$output = '
|
$output = '
|
||||||
<div class="module_error alert error">
|
<div class="module_error alert alert-danger">
|
||||||
'.$error.'
|
'.$error.'
|
||||||
</div>';
|
</div>';
|
||||||
$this->error = true;
|
$this->error = true;
|
||||||
@@ -1519,7 +1519,7 @@ abstract class ModuleCore
|
|||||||
public function displayConfirmation($string)
|
public function displayConfirmation($string)
|
||||||
{
|
{
|
||||||
$output = '
|
$output = '
|
||||||
<div class="module_confirmation conf confirm">
|
<div class="module_confirmation conf confirm alert alert-success">
|
||||||
'.$string.'
|
'.$string.'
|
||||||
</div>';
|
</div>';
|
||||||
return $output;
|
return $output;
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ class BankWire extends PaymentModule
|
|||||||
Configuration::updateValue('BANK_WIRE_OWNER', Tools::getValue('BANK_WIRE_OWNER'));
|
Configuration::updateValue('BANK_WIRE_OWNER', Tools::getValue('BANK_WIRE_OWNER'));
|
||||||
Configuration::updateValue('BANK_WIRE_ADDRESS', Tools::getValue('BANK_WIRE_ADDRESS'));
|
Configuration::updateValue('BANK_WIRE_ADDRESS', Tools::getValue('BANK_WIRE_ADDRESS'));
|
||||||
}
|
}
|
||||||
$this->_html .= '<div class="alert alert-success"> '.$this->l('Settings updated').'</div>';
|
$this->_html .= $this->displayConfirmation($this->l('Settings updated'));
|
||||||
}
|
}
|
||||||
|
|
||||||
private function _displayBankWire()
|
private function _displayBankWire()
|
||||||
@@ -124,7 +124,7 @@ class BankWire extends PaymentModule
|
|||||||
$this->_postProcess();
|
$this->_postProcess();
|
||||||
else
|
else
|
||||||
foreach ($this->_postErrors as $err)
|
foreach ($this->_postErrors as $err)
|
||||||
$this->_html .= '<div class="alert alert-danger">'.$err.'</div>';
|
$this->_html .= $this->displayError($err);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$this->_html .= '<br />';
|
$this->_html .= '<br />';
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ class BlockBestSellers extends Module
|
|||||||
if (Tools::isSubmit('submitBestSellers'))
|
if (Tools::isSubmit('submitBestSellers'))
|
||||||
{
|
{
|
||||||
Configuration::updateValue('PS_BLOCK_BESTSELLERS_DISPLAY', (int)Tools::getValue('PS_BLOCK_BESTSELLERS_DISPLAY'));
|
Configuration::updateValue('PS_BLOCK_BESTSELLERS_DISPLAY', (int)Tools::getValue('PS_BLOCK_BESTSELLERS_DISPLAY'));
|
||||||
$output .= '<div class="alert alert-success">'.$this->l('Settings updated').'</div>';
|
$output .= $this->displayConfirmation($this->l('Settings updated'));
|
||||||
}
|
}
|
||||||
return $output.$this->renderForm();
|
return $output.$this->renderForm();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user