_cb" value="<% $chk_label %>"> % if (!$desk || ($desk && $desk->can_publish)) { %# _cb" value="<% $act_label %>"> _cb" value="<% $act_label %>"> % }
<%args> $widget $wf => undef $desk => undef $w_id => undef $d_id => undef <%init> my $d = $rc->get("desk.objs"); return unless $d->{story} || $d->{media} || $d->{formatting}; $wf ||= Bric::Biz::Workflow->lookup({ id => $w_id }) if defined $w_id; $desk ||= Bric::Biz::Workflow::Parts::Desk->lookup({ id => $d_id }) if defined $d_id; my ($chk_label, $chk_cb, $act_label, $act_cb) = $desk ? ('Move Assets', 'move', $wf && $wf->get_type == TEMPLATE_WORKFLOW ? ('deploy_checked_red', 'deploy') : ('publish_checked_red', 'publish')) : ('Check In Assets', 'checkin', 'delete_checked_red', 'delete'); my $color1 = ($chk_cb eq 'move') ? 'lgreen' : 'red'; my $color2 = ($act_cb) ? 'red' : 'red'; my $mod = ($chk_cb eq 'move') ? 'assets': 'checked';