No % or money symbol in HTML generated by CouponAbstract
This commit is contained in:
@@ -93,7 +93,7 @@ abstract class CouponAbstract implements CouponInterface
|
|||||||
*
|
*
|
||||||
* @param FacadeInterface $facade Service facade
|
* @param FacadeInterface $facade Service facade
|
||||||
*/
|
*/
|
||||||
public function __construct(FacadeInterface $facade)
|
protected function __construct(FacadeInterface $facade)
|
||||||
{
|
{
|
||||||
$this->facade = $facade;
|
$this->facade = $facade;
|
||||||
$this->translator = $facade->getTranslator();
|
$this->translator = $facade->getTranslator();
|
||||||
@@ -355,7 +355,7 @@ abstract class CouponAbstract implements CouponInterface
|
|||||||
* @return string HTML string
|
* @return string HTML string
|
||||||
*/
|
*/
|
||||||
public function drawBackOfficeInputs() {
|
public function drawBackOfficeInputs() {
|
||||||
return $this->facade->getParser()->render('coupon/type-fragments/remove-x-amount.html', [
|
return $this->facade->getParser()->render('coupon/type-fragments/remove-x.html', [
|
||||||
'label' => $this->getInputName(),
|
'label' => $this->getInputName(),
|
||||||
'fieldName' => self::INPUT_AMOUNT_NAME,
|
'fieldName' => self::INPUT_AMOUNT_NAME,
|
||||||
'value' => $this->amount
|
'value' => $this->amount
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
<div class="form-group input-{$fieldName}">
|
||||||
|
<label for="{$fieldName}" class="control-label">{$label}</label>
|
||||||
|
<input id="{$fieldName}" type="money" class="form-control" name="thelia_coupon_creation[{$fieldName}]" value="{$value}">
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user