Skip to content
Code-Schnipsel Gruppen Projekte
Commit ca979655 erstellt von Michael Danielczok's avatar Michael Danielczok
Dateien durchsuchen

refactor: Small changes in coupon code input appearance.

Übergeordneter 35d29c86
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
...@@ -11,11 +11,16 @@ div + .quiqqer-coupons-field { ...@@ -11,11 +11,16 @@ div + .quiqqer-coupons-field {
padding: 5px; padding: 5px;
} }
.quiqqer-coupons-couponcodeinput button { .quiqqer-coupons-couponcodeinput-input {
border-radius: 0 3px 3px 0; min-width: 220px;
}
.quiqqer-coupons-couponcodeinput-title,
.quiqqer-coupons-couponcodeinput-input {
margin-right: 1rem;
} }
.quiqqer-coupons-couponcodeinput input { .quiqqer-coupons-couponcodeinput input {
border-radius: 3px 0 0 3px;
line-height: 36px; line-height: 36px;
margin-right: 1rem;
} }
\ No newline at end of file
<div class="quiqqer-coupons-couponcodeinput"> <div class="quiqqer-coupons-couponcodeinput">
<label> <label>
<span>{{labelInput}}</span> <span class="quiqqer-coupons-couponcodeinput-title">{{labelInput}}</span>
<input type="text" name="code"/> <input class="quiqqer-coupons-couponcodeinput-input" type="text" name="code"
placeholder="{{labelInputPlaceholder}}"/>
</label> </label>
<button class="quiqqer-coupons-couponcodeinput-btn"> <button class="quiqqer-coupons-couponcodeinput-btn btn btn-success">
<span>{{submitBtnText}}</span> <span>{{submitBtnText}}</span>
</button> </button>
</div> </div>
\ No newline at end of file
...@@ -53,8 +53,9 @@ define('package/quiqqer/coupons/bin/frontend/controls/CouponCodeInput', [ ...@@ -53,8 +53,9 @@ define('package/quiqqer/coupons/bin/frontend/controls/CouponCodeInput', [
this.$Elm.addClass('quiqqer-coupons-field'); this.$Elm.addClass('quiqqer-coupons-field');
this.$Elm.set('html', Mustache.render(template, { this.$Elm.set('html', Mustache.render(template, {
labelInput : QUILocale.get(lg, lgPrefix + 'labelInput'), labelInput : QUILocale.get(lg, lgPrefix + 'labelInput'),
submitBtnText: QUILocale.get(lg, lgPrefix + 'submitBtnText') labelInputPlaceholder: QUILocale.get(lg, lgPrefix + 'labelInputPlaceholder'),
submitBtnText : QUILocale.get(lg, lgPrefix + 'submitBtnText')
})); }));
this.Loader.inject(this.$Elm); this.Loader.inject(this.$Elm);
......
...@@ -382,6 +382,10 @@ ...@@ -382,6 +382,10 @@
<de><![CDATA[Gutschein-Code]]></de> <de><![CDATA[Gutschein-Code]]></de>
<en><![CDATA[Coupon code]]></en> <en><![CDATA[Coupon code]]></en>
</locale> </locale>
<locale name="controls.frontend.CouponCodeInput.template.labelInputPlaceholder">
<de><![CDATA[Gutschein-Code eintippen]]></de>
<en><![CDATA[Enter coupon code]]></en>
</locale>
<locale name="controls.frontend.CouponCodeInput.template.submitBtnText"> <locale name="controls.frontend.CouponCodeInput.template.submitBtnText">
<de><![CDATA[Einlösen]]></de> <de><![CDATA[Einlösen]]></de>
<en><![CDATA[Redeem]]></en> <en><![CDATA[Redeem]]></en>
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren