// Improved Supply Order States
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13027 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -19,7 +19,7 @@ fieldset{background-color:#EBEDF4; border:1px solid #CCCED7; color:#585A69; font
|
||||
legend{background:#EBEDF4;border:1px solid #CCCED7;font-weight:700;margin:0;padding:.2em .5em;text-align:left}
|
||||
input[type="text"],input[type="password"],input[type="file"],textarea {border:1px solid #ccc; background-color:#fff;}
|
||||
select { border:1px solid #ccc; font-size: 12px;}
|
||||
select[disabled="disabled"], input[disabled="disabled"],textarea[disabled="disabled"] {border: 1px solid #CCCCCC;color: #AAAAAA}
|
||||
select[disabled="disabled"], input[disabled="disabled"],textarea[disabled="disabled"], option[disabled="disabled"] {border: 1px solid #CCCCCC;color: #AAAAAA}
|
||||
.header_module{background:url('../img/header_module.png');padding-left: 0.5em;padding-top: 0.8em;height:20px;color: #812143;border:solid 1px #CCC;}
|
||||
.double_select select{width:300px;height:160px;}
|
||||
.double_select a{text-align:center;display:block;border:1px solid #aaa;text-decoration:none;background-color:#fafafa;color:#123456;margin:2px;padding:2px}
|
||||
|
||||
@@ -25,15 +25,38 @@
|
||||
*}
|
||||
{extends file="helper/form/form.tpl"}
|
||||
|
||||
{block name="other_fieldsets"}
|
||||
{block name="other_input"}
|
||||
|
||||
{if isset($supply_order) && $supply_order->id > 0 && isset($supply_order_states)}
|
||||
<input type="hidden" name="id_supply_order" id="id_supply_order" value="{$supply_order->id}">
|
||||
<label>{l s='Status of the order:'}</label>
|
||||
|
||||
<div class="margin-form">
|
||||
<select name="id_supply_order_state" id="id_supply_order_state">
|
||||
{foreach $supply_order_states as $state}
|
||||
<option value="{$state['id_supply_order_state']}" {if $state['allowed'] == 0} disabled="disabled" {/if}>{$state['name']}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<p class="preference_description">
|
||||
{l s='Choose the new status of your order'}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="margin-form">
|
||||
<input type="submit" id="_form_submit_btn" value=" Save " name="submitChangestate" class="button" style="display: none; ">
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="other_fieldset"}
|
||||
<br />
|
||||
|
||||
{if isset($supply_order_state) && $supply_order_state->editable == false && isset($supply_order)}
|
||||
<fieldset>
|
||||
<legend>
|
||||
<img src="../img/admin/pdf.gif" alt="{l s='Supply Order State'}">
|
||||
{l s='Print the supply order form'}
|
||||
<img src="../img/admin/pdf.gif" alt="{l s='Supply Order State'}">
|
||||
{l s='Print the supply order form'}
|
||||
</legend>
|
||||
<a href="pdf.php?id_supply_order={$supply_order->id}" target="_blank" title="Export as PDF">{l s='Click here to download the supply order form'}.</a>
|
||||
</fieldset>
|
||||
|
||||
Reference in New Issue
Block a user