No % or money symbol in HTML generated by CouponAbstract

This commit is contained in:
Franck Allimant
2014-05-05 09:52:27 +02:00
parent 091e7f9f64
commit f9e4c33875
2 changed files with 6 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ abstract class CouponAbstract implements CouponInterface
*
* @param FacadeInterface $facade Service facade
*/
public function __construct(FacadeInterface $facade)
protected function __construct(FacadeInterface $facade)
{
$this->facade = $facade;
$this->translator = $facade->getTranslator();
@@ -355,7 +355,7 @@ abstract class CouponAbstract implements CouponInterface
* @return string HTML string
*/
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(),
'fieldName' => self::INPUT_AMOUNT_NAME,
'value' => $this->amount

View File

@@ -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>