protected function drawBackOfficeBaseInputsText($label, $inputKey)
    {
        $operatorSelectHtml = $this->drawBackOfficeInputOperators($inputKey);

        $currentValue = '';
        if (isset($this->values) && isset($this->values[$inputKey])) {
            $currentValue = $this->values[$inputKey];
        }

        return $this->facade->getParser()->render(
            'coupon/conditions-fragments/base-input-text.html',
            [
                'label' => $label,
                'inputKey' => $inputKey,
                'currentValue' => $currentValue,
                'operatorSelectHtml' => $operatorSelectHtml
            ]
        );
    }
protected function drawBackOfficeBaseInputsText($label, $inputKey)
    {
        $operatorSelectHtml = $this->drawBackOfficeInputOperators($inputKey);

        $currentValue = '';
        if (isset($this->values) && isset($this->values[$inputKey])) {
            $currentValue = $this->values[$inputKey];
        }

        return $this->facade->getParser()->render(
            'coupon/conditions-fragments/base-input-text.html',
            [
                'label' => $label,
                'inputKey' => $inputKey,
                'currentValue' => $currentValue,
                'operatorSelectHtml' => $operatorSelectHtml
            ]
        );
    }
protected function drawBackOfficeBaseInputsText ( $ label , $ inputKey ) { $ operatorSelectHtml = $ this -> drawBackOfficeInputOperators ( $ inputKey ) ; $ currentValue = '' ; if ( isset ( $ this -> values ) && isset ( $ this -> values [ $ inputKey ] ) ) { $ currentValue = $ this -> values [ $ inputKey ] ; } return $ this -> facade -> getParser ( ) -> render ( 'coupon/conditions-fragments/base-input-text.html' , [ 'label' => $ label , 'inputKey' => $ inputKey , 'currentValue' => $ currentValue , 'operatorSelectHtml' => $ operatorSelectHtml ] ) ; }
Draw the base input displayed in the BackOffice
allowing Admin to set its Coupon Conditions

@param string $label    I18n input label
@param string $inputKey Input key (ex: self::INPUT1)

@return string HTML string
Draw the base input displayed in the BackOffice allowing Admin to set its Coupon Conditions