X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fhardware_status.html;h=c8cb68cd4933fa7e1b398fd4e1d7a9c5260cdfa3;hp=ee5f25db80344d9c12ff161e05aa38f1e4964cf7;hb=20f03d52cc6c930f610c0b4466eeeeda54fdbb40;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984 diff --git a/httemplate/edit/hardware_status.html b/httemplate/edit/hardware_status.html index ee5f25db8..c8cb68cd4 100644 --- a/httemplate/edit/hardware_status.html +++ b/httemplate/edit/hardware_status.html @@ -1,16 +1,24 @@ <% include( 'elements/edit.html', - 'name' => 'Hardware Status', - 'table' => 'hardware_status', - 'labels' => { - 'statusnum' => 'Status number', - 'label' => 'Description' , - }, - 'viewall_dir' => 'browse', - ) + 'name_singular' => 'Hardware Status', + 'table' => 'hardware_status', + 'labels' => { + 'statusnum' => 'Status number', + 'label' => 'Description' , + 'disabled' => 'Disable status' + }, + 'fields' => [ + 'label', + { field => 'disabled', + type => 'checkbox', + value => 'Y', + }, + ], + 'viewall_dir' => 'browse', + ) %> <%init> die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + unless $FS::CurrentUser::CurrentUser->access_right('Edit hardware classes and types');