{if $smarty.const.ARTICLES} {if !$edit} {/if}
{$lang.contact_input}:
{$lang.global_lastmodifi}:
{contract->created}
{contract->changed}
{if $new}{/if} {if !$edit} {if $formulas} {menubutton->image_sub icon="refresh" id="formulas" script="disableGrid();ajax.exec('common', 'ajax_compute_formulas', `$smarty.const.MODULE_CONTRACTS`, `$data`);return false;" oid=$data autocompute=$formulas_compute title=$lang.formula_compute width=21 height=22} {/if} {if $write_permission && $contract_status=='3' && $show_edit_button && $show_doc_button} {cssbutton->sub name="recreate_doc" string=$lang.billing_label_recreate_doc} {/if} {if $smarty.const.INVOICES && $serie} {cssbutton->image w_width=$smarty.const.DATES_SERIES_WIN_WIDTH w_height=$smarty.const.DATES_SERIES_WIN_HEIGHT query="op=common_serieswindow&serie_id=`$data`&modul=`$smarty.const.MODULE_CONTRACTS`&sel_date=" disabled="disabled" string=$lang.proto_serie icon_left="serie"} {/if} {if $write_permission && ($contract_status=='0' || $show_edit_button)} {cssbutton->sub name="edit" string=$lang.global_edit} {/if} {if $contract_next_status=='1'} {cssbutton->sub name="lock" string=$lang.billing_label_lock} {elseif $contract_next_status=='2'} {* erstellt *} {if $contract_status!='0'} {cssbutton->sub name="unlock" string=$lang.billing_label_unlock} {/if} {cssbutton->sub name="approve" string=$lang.billing_label_approved} {elseif $contract_next_status=='3'} {* geprüft *} {if $contract_status!='0'} {cssbutton->sub name="unlock" string=$lang.billing_label_unlock} {/if} {cssbutton->sub name="submit" string=$lang.billing_label_activate} {elseif $contract_status=='3'} {* aktiviert *} {if $autoprice}{else}{cssbutton->sub name="follow_up" string=$lang.contract_label_follow_up}{/if} {/if} {resubs->module_resub_button module_id=$smarty.const.MODULE_CONTRACTS oid=$data} {else} {if $data > 0} {if $smarty.const.INVOICES} {if $serie} {cssbutton->modal id="serie_off" style="display:none" w_width=$smarty.const.DATES_SERIES_WIN_WIDTH w_height=$smarty.const.DATES_SERIES_WIN_HEIGHT query="op=common_serieswindow&serie_id=`$data`&modul=`$smarty.const.MODULE_CONTRACTS`&sel_date=" string=$lang.proto_serie} {cssbutton->image id="serie_on" script="window_open('`$SELF`?op=common_serieswindow&serie_id=`$data`&modul=`$smarty.const.MODULE_CONTRACTS`&sel_date=', `$smarty.const.DATES_SERIES_WIN_WIDTH`, `$smarty.const.DATES_SERIES_WIN_HEIGHT`, 'auto', 'normal')" string=$lang.proto_serie icon_left="serie"} {else} {cssbutton->modal id="serie_off" w_width=$smarty.const.DATES_SERIES_WIN_WIDTH w_height=$smarty.const.DATES_SERIES_WIN_HEIGHT query="op=common_serieswindow&serie_id=`$data`&modul=`$smarty.const.MODULE_CONTRACTS`&sel_date=" string=$lang.proto_serie} {cssbutton->image id="serie_on" style="display:none" script="window_open('`$SELF`?op=common_serieswindow&serie_id=`$data`&modul=`$smarty.const.MODULE_CONTRACTS`&sel_date=', `$smarty.const.DATES_SERIES_WIN_WIDTH`, `$smarty.const.DATES_SERIES_WIN_HEIGHT`, 'auto', 'normal')" string=$lang.proto_serie icon_left="serie"} {/if} {/if} {cssbutton->sub name="save" string=$lang.global_save} {else} {cssbutton->sub name="save" string=$lang.billing_label_create} {/if} {if $data} {cssbutton->sub name="cancel" string=$lang.global_cancel} {else} {cssbutton->click script="window.close();" string=$lang.global_cancel} {/if} {if $delete_permission} {cssbutton->sub name="delete" string=$lang.global_delete confirm=$lang.contact_askdelete} {/if} {/if}
{else} {if !$edit} {/if}
{$lang.contact_input}:
{$lang.global_lastmodifi}:
{contract->created}
{contract->changed}
{if !$edit} {if $formulas} {menubutton->image_sub icon="refresh" id="formulas" script="disableGrid();ajax.exec('common', 'ajax_compute_formulas', `$smarty.const.MODULE_CONTRACTS`, `$data`);return false;" oid=$data autocompute=$formulas_compute title=$lang.formula_compute width=21 height=22} {/if} {cssbutton->window_resizeable query="op=contracts_index&new=true" string=$lang.global_new w_width=$smarty.const.CONTRACT_WIN_WIDTH w_height=$smarty.const.CONTRACT_WIN_HEIGHT} {if $write_permission && ($data > 0)} {cssbutton->sub name="edit" string=$lang.global_edit} {/if} {cssbutton->modless_resizeable w_width=$smarty.const.LAST20_WIN_WIDTH w_height=$smarty.const.LAST20_WIN_HEIGHT query="op=contracts_last20" string=$lang.contract_last20} {resubs->module_resub_button module_id=$smarty.const.MODULE_CONTRACTS oid=$data} {else} {cssbutton->sub name="save" string=$lang.global_save} {if $data} {cssbutton->link query="op=contracts_index" string=$lang.global_cancel} {else} {cssbutton->click script="window.close();" string=$lang.global_cancel} {/if} {if $delete_permission} {cssbutton->sub name="delete" string=$lang.global_delete confirm=$lang.contact_askdelete} {/if} {/if}
{/if}