Navigation Menu

Skip to content

Commit

Permalink
fix order color issue in customer edit form
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Pradat authored and Maxime Bruchet committed Mar 8, 2018
1 parent 0f424f0 commit 6e0a889
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions templates/backOffice/default/customer-edit.html
Expand Up @@ -10,26 +10,26 @@
{block name="check-access"}view{/block}

{block name="main-content"}
<div class="customers edit-customer">
<div class="customers edit-customer">

<div id="wrapper" class="container">
{loop name="customer_edit" type="customer" current="false" id="$customer_id" backend_context="1" with_prev_next_info="true" lang="$edit_language_id"}

<ul class="breadcrumb">
<li><a href="{url path='/admin/home'}">{intl l="Home"}</a></li>
<li><a href="{url path='/admin/home'}">{intl l="Home"}</a></li>
<li><a href="{url path='/admin/customers'}">{intl l="Customers"}</a></li>
<li>{intl l="Edit customer %firstname %lastname" firstname={$FIRSTNAME} lastname={$LASTNAME}}</li>
</ul>

{hook name="customer-edit.top" customer_id=$customer_id}

<div class="row">
<div class="col-md-12 general-block-decorator">
<div class="row">
<div class="row">
<div class="col-md-12 general-block-decorator">
<div class="row">

<div class="col-md-6 title title-without-tabs">
<div class="col-md-6 title title-without-tabs">
{intl l="Edit customer %firstname %lastname (Ref : %ref)" firstname={$FIRSTNAME} lastname={$LASTNAME} ref={$REF}}
</div>
</div>

<div class="col-md-6 actions">

Expand All @@ -49,25 +49,25 @@
<div class="form-container">
<div class="col-md-12">
<br>
{form name="thelia.admin.customer.update"}
<form method="POST" action="{url path='/admin/customer/save'}" {form_enctype} class="clearfix">
{form name="thelia.admin.customer.update"}
<form method="POST" action="{url path='/admin/customer/save'}" {form_enctype} class="clearfix">

{include
file="includes/inner-form-toolbar.html"
hide_flags = true
close_url = {url path='/admin/customers'}
}

{form_hidden_fields}
{form_hidden_fields}

<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="customer_id" value="{$customer_id}" />

{form_field field='success_url'}
<input type="hidden" name="{$name}" value="{url path='/admin/customers' page=$page}" />
{/form_field}
{form_field field='success_url'}
<input type="hidden" name="{$name}" value="{url path='/admin/customers' page=$page}" />
{/form_field}

{if $form_error}<div class="alert alert-danger">{$form_error_message}</div>{/if}
{if $form_error}<div class="alert alert-danger">{$form_error_message}</div>{/if}
{loop name="address" type="address" customer="$customer_id" backend_context="1" default="true"}
<div class="col-md-6">
<p class="title title-without-tabs">{intl l="Customer informations"}</p>
Expand Down Expand Up @@ -196,15 +196,15 @@
</div>

</form>
{/form}
{/form}

</div>
</div>
</div>
</div>

</div>
</div>
</div>
</div>

</div>
</div>
<div class="row">
<div class="col-md-12 general-block-decorator">
<div class="row">
Expand All @@ -228,13 +228,15 @@
{loop type="order-status" name="order-status" id=$STATUS}
{assign "orderStatus" $TITLE}
{assign "orderStatusLabel" "order_$CODE"}
{assign "orderStatusCodeColor" $COLOR}

{/loop}
<tr>
<td><a href="{url path="/admin/order/update/%id" id=$ID}">{$REF}</a></td>
<td>{format_date date=$CREATE_DATE}</td>
<td class="text-right">{format_money number=$TOTAL_TAXED_AMOUNT}</td>
<td>
<span class="label label-{#$orderStatusLabel#}">{$orderStatus}</span>
<span class="label label-{#$orderStatusLabel#}" style="background-color:{$orderStatusCodeColor};">{$orderStatus}</span>
</td>
{hook name="customer.orders-table-row" location="orders_table_row" customer_id=$customer_id order_id=$ID}
</tr>
Expand Down Expand Up @@ -350,7 +352,7 @@
form_error_message = $form_error_message
}

{/form}
{/form}
{/if}

{* -- Confirm making an address the default --------------------------------- *}
Expand Down

0 comments on commit 6e0a889

Please sign in to comment.