/sys/templates/default/modules/inventory/edit.tpl
Smarty Template | 90 lines | 80 code | 10 blank | 0 comment | 5 complexity | 99991ab09d0b8d6d16e1fe80e479b5be MD5 | raw file
Possible License(s): GPL-3.0, LGPL-2.1, GPL-2.0, LGPL-3.0
- {if $saved == 'true' }
- <meta http-equiv="refresh" content="2;URL=index.php?module=inventory&view=manage" />
- <br />
- {$LANG.save_inventory_success}
- <br />
- <br />
- {/if}
- {if $saved == 'false' }
- <meta http-equiv="refresh" content="2;URL=index.php?module=inventory&view=manage" />
- <br />
- {$LANG.save_inventory_failure}
- <br />
- <br />
- {/if}
-
- {if $saved ==false}
- {if $smarty.post.op == 'add' AND $smarty.post.product_id == ''}
- <div class="validation_alert"><img src="{$baseUrl}images/common/important.png" alt="" />
- You must select a product</div>
- <hr />
- {/if}
-
- <div id="gmail_loading" class="gmailLoader" style="float:right; display: none;">
- <img src="images/common/gmail-loader.gif" alt="{$LANG.loading} ..." /> {$LANG.loading} ...
- </div>
-
- <form name="frmpost" action="index.php?module=inventory&view=edit&id={$inventory.id|urlencode}" method="POST" id="frmpost">
- <br />
-
- <table align="center">
- <tr wrap="nowrap">
- <td class="details_screen">{$LANG.date_upper}</td>
- <td wrap="nowrap">
- <input type="text" class="validate[required,custom[date],length[0,10]] date-picker" size="10" name="date" id="date" value='{$inventory.date|htmlsafe}' />
- </td>
- </tr>
- <tr>
- <td class="details_screen">{$LANG.product}</td>
- <td>
- <select name="product_id" class="validate[required] product_inventory_change">
- <option value=''></option>
- {foreach from=$product_all item=product}
- <option value="{$product.id|htmlsafe}" {if $product.id == $inventory.product_id}selected{/if} >
- {$product.description|htmlsafe}
- </option>
- {/foreach}
- </select>
- </td>
- </tr>
- <tr>
- <td class="details_screen">{$LANG.quantity}</td>
- <td>
- <input name="quantity" size="10" class="validate[required]" value='{$inventory.quantity|siLocal_number_formatted}'>
- </td>
- </tr>
- <tr>
- <td class="details_screen">{$LANG.cost}</td>
- <td>
- <input id="cost" name="cost" size="10" class="validate[required]" value='{$inventory.cost|siLocal_number_formatted}'>
- </td>
- </tr>
- <tr>
- <td class="details_screen">{$LANG.notes}</td>
- <td><textarea name="note" class="editor" rows="8" cols="50">{$inventory.note|outhtml}</textarea></td>
- </tr>
-
- </table>
- <br />
- <table class="buttons" align="center">
- <tr>
- <td>
- <button type="submit" class="positive" name="id" value="{$LANG.save}">
- <img class="button_img" src="{$baseUrl}images/common/tick.png" alt="" />
- {$LANG.save}
- </button>
-
- <input type="hidden" name="op" value="edit" />
-
- <a href="./index.php?module=inventory&view=manage" class="negative">
- <img src="{$baseUrl}images/common/cross.png" alt="" />
- {$LANG.cancel}
- </a>
-
- </td>
- </tr>
- </table>
-
-
- </form>
- {/if}