diff --git a/templates/backOffice/default/coupon-update.html b/templates/backOffice/default/coupon-update.html index 2900aa971..5a2d89ccc 100644 --- a/templates/backOffice/default/coupon-update.html +++ b/templates/backOffice/default/coupon-update.html @@ -6,25 +6,22 @@ {block name="page-title"}{intl l='Update coupon'}{/block} {block name="main-content"} -
+
+
- + - - - {form name="thelia.admin.coupon.creation"} - {include file='coupon/form.html' formAction={url path={$formAction}} form=$form noConditions=false} - {/form} - -
+ {form name="thelia.admin.coupon.creation"} + {include file='coupon/form.html' formAction={url path={$formAction}} form=$form noConditions=false} + {/form} + + {/block} {block name="javascript-initialization"} diff --git a/templates/backOffice/default/coupon/form.html b/templates/backOffice/default/coupon/form.html index 2deadde4a..4f1650bca 100644 --- a/templates/backOffice/default/coupon/form.html +++ b/templates/backOffice/default/coupon/form.html @@ -1,175 +1,185 @@ {$thelia_page_css_file = "assets/bootstrap-editable/css/bootstrap-editable.css"} {include file='includes/notifications.html' message=$general_error} -
-
- -
- - {form_hidden_fields form=$form} - - {form_field form=$form field='locale'} - - {/form_field} - - {form_field form=$form field='success_url'} - - {/form_field} - -
-
- {if !$noConditions} - {include - file = "includes/inner-form-toolbar.html" - hide_submit_buttons = false - - page_url = "{url path="{$formAction}"}" - } - {/if} -
- {form_field form=$form field='code'} -
- - - {if $error}{$message}{/if} -
- {/form_field} - - {form_field form=$form field='title'} -
- - - {if $error}{$message}{/if} -
- {/form_field} - - {form_field form=$form field='isEnabled'} -
- -
- {/form_field} - - {form_field form=$form field='isAvailableOnSpecialOffers'} -
- -
- {/form_field} - - {form_field form=$form field='isCumulative'} -
- -
- {/form_field} - - {form_field form=$form field='isRemovingPostage'} -
- -
- {/form_field} - - {form_field form=$form field='expirationDate'} -
- -
- - {if $error}{$message}{/if} - -
-
- {/form_field} - - {form_field form=$form field='maxUsage'} -
- - - - - {if $error}{$message}{/if} -
- {/form_field} +
+
+
+
+ {intl l='Edit %title' title=$couponCode}
+
-
-
-
- {form_field form=$form field='type'} +
+ + + + {form_hidden_fields form=$form} + + {form_field form=$form field='locale'} + + {/form_field} + + {form_field form=$form field='success_url'} + + {/form_field} + + {if !$noConditions} + {include + file = "includes/inner-form-toolbar.html" + hide_submit_buttons = false + + page_url = "{url path="{$formAction}"}" + } + {/if} + +
+
+ {form_field form=$form field='code'}
- - + + + {if $error}{$message}{/if} +
+ {/form_field} + + {form_field form=$form field='title'} +
+ + + {if $error}{$message}{/if} +
+ {/form_field} + + {form_field form=$form field='isEnabled'} +
+ +
+ {/form_field} + + {form_field form=$form field='isAvailableOnSpecialOffers'} +
+ +
+ {/form_field} + + {form_field form=$form field='isCumulative'} +
+ +
+ {/form_field} + + {form_field form=$form field='isRemovingPostage'} +
+ +
+ {/form_field} + + {form_field form=$form field='expirationDate'} +
+ +
+ + {if $error}{$message}{/if} + +
+
+ {/form_field} + + {form_field form=$form field='maxUsage'} +
+ + + + {if $error}{$message}{/if} - {$availableCoupons.0.toolTip}
{/form_field}
-
- {form_field form=$form field='amount'} - {$couponInputsHtml nofilter} +
+
+
+ {form_field form=$form field='type'} +
+ + + {if $error}{$message}{/if} + {$availableCoupons.0.toolTip} +
+ {/form_field} +
+ +
+ {form_field form=$form field='amount'} + {$couponInputsHtml nofilter} + {/form_field} +
+
+ + {form_field form=$form field='shortDescription'} +
+ + + {if $error}{$message}{/if} +
{/form_field}
-
- - {form_field form=$form field='shortDescription'} -
- - - {if $error}{$message}{/if} -
- {/form_field} -
-
-
+
- {form_field form=$form field='description'} -
- - - {if $error}{$message}{/if} +
+ {form_field form=$form field='description'} +
+ + + {if $error}{$message}{/if} +
+ {/form_field} + + {if $noConditions} + + {/if}
- {/form_field} - - {if $noConditions} - - {/if} -
- +
+
- -
+ + {if $noConditions} {include file='includes/notifications.html' message={intl l='Please save your Coupon in oder to affect it some conditions'}} {else} -
-
- +
+
+ +
+
@@ -184,39 +194,37 @@
{intl l='Conditions'}
-
-
-
- + -
- {**} - {**} - {**} +
+
+ +
+ +
+ + {intl l='Save this condition'} + + +
+ + + +
+ +
+ +
-
- - - -
- -
-
- -
+ + {/if}