{include file="common/head.tpl.html" html5=true}
{if $new} {$lang.article_add_article} {else} {$lang.article_edit_article} {/if}
{help->link name="articles_list_item_article" class="help-explorer"}
{if $column_quantity} {/if} {if $show_update && $edit} {/if} {if $column_name} {/if} {if $column_realnumber} {/if} {if $column_price_purchase} {/if} {if $column_discount} {/if} {if $column_discount} {/if} {if $column_price_single_netto} {/if} {if $column_price_single_brutto} {/if} {* if $column_price_total_netto} {/if} {if $column_price_total_brutto} {/if *} {* if $column_tax_rate} {/if *} {if $column_posting_account} {/if} {if $column_interval} {/if} {if $column_print} {/if} {if $column_cleared} {/if} {if $column_accounted} {/if}
{$lang.article_label_quantity}: {html->input_text name="quantity" value=$quantity style="width:100%" id="quantity"}
{$lang.article_label_use_update}: {html->checkbox name="no_update" value="1" selected=$no_update onchange="article_details_set_update(this)"}
{$lang.article_label_name}: {html->input_text name="name" value=$name style="width:100%" id="name" readonly=$update_neg}
{$lang.article_label_realnumber}: {html->input_text name="realnumber" value=$realnumber style="width:100%" id="realnumber" readonly=$update_neg}
{$lang.article_label_price_purchase}: {html->input_text name="price_purchase" value=$price_purchase style="width:100%" id="price_purchase" readonly=$update_neg}
{$lang.article_label_taxrate}: {controls->select_single name="tax_rate" options=$vat_list value=$tax_rate style="width:100%" id="tax_rate" readonly=$update_neg use_field="text" onchange="handle_tax_rate()"}
{$label_orig_netto}: {html->input_text name="price_netto_orig" value=$price_netto_orig style="width:100%" id="price_netto_orig" readonly=$price_orig_readonly onfocus="current_focus = this;" fnc="1"}
{$lang.article_label_discount}:
{controls->select_single name="discount_type" options=$discount_types value=$discount_type_val id="discount_type" onchange="handle_discount()"} {html->input_text name="discount" value=$discount style="width:100%" id="discount" onfocus="current_focus = this;" fnc="1"}
{$label_single_netto}: {html->input_text name="price_netto" value=$price_netto style="width:100%" id="price_netto" readonly=$update_neg fnc="1" onfocus="current_focus = this;"}
{$label_single_brutto}: {html->input_text name="price_brutto" value=$price_brutto style="width:100%" id="price_brutto" onfocus="current_focus = this;" readonly=$update_neg fnc="1"}
{$lang.article_label_price_total_netto}: {html->input_text name="price_total_netto" value=$price_total_netto style="width:100%" id="price_total_netto" readonly=$update_neg}
{$lang.article_label_price_total_brutto}: {html->input_text name="price_total_brutto" value=$price_total_brutto style="width:100%" id="price_total_brutto" readonly=$update_neg}
{$lang.article_label_taxrate}: {html->input_text name="tax_rate" value=$tax_rate style="width:100%" id="tax_rate" readonly=$update}
{$lang.article_label_posting_account}: {html->input_text name="posting_account" value=$posting_account style="width:100%" id="posting_account" readonly=$update_neg}
{$lang.article_label_interval}: {controls->select_single name="interval" options=$interval_list value=$interval style="width:100%" id="interval" readonly=$update_neg use_field="text"}
{$lang.article_label_print}: {html->checkbox name="print" value="1" selected=$print1 id="print"}
{$lang.article_label_cleared}: {html->checkbox name="cleared" value="1" selected=$cleared id="cleared" }
{$lang.article_label_accounted}: {html->checkbox name="accounted" value="1" selected=$accounted id="accounted"}
{if $show_update && $edit} {else} {/if}
{$lang.article_label_description_copy}:
{controls->select_single name="copydesc" options=$desc_list style="width:100%" id="copydesc" readonly=$update_neg use_field="text" empty_option=$lang.global_pleaseselect} {cssbutton->click id="copydesc_button" script="copy_article_description('`$pid`');" string=$lang.global_copy disabled=$update_neg}
 
{$lang.article_label_shortdesc}: {html->input_text name="title" value=$title style="width:100%" id="title" readonly=$update_neg}
{$lang.article_label_longdesc}:
{html->area name="description" value=$description id="description" readonly=$update_neg class="dynamic-div-content choose-select" onfocus="current_focus = this;"}
{$lang.global_notes}:
{html->area name="notes" value=$notes id="notes" class="dynamic-div-content choose-select line-height" onfocus="current_focus = this;"}
{if $edit} {cssbutton->sub id="save" name="save" string=$lang.global_save} {/if} {cssbutton->link link="javascript:window.close();" string=$lang.global_cancel}
{include file="common/foot.tpl.html"}