% if $proj == nil then
% set proj_name = "global"
% set from = "home"
projectsinvites
% else
% set proj_name = $proj.name
% set from = "proj"
new ticket
% end
% set shift_path = "/p/"..$card.proj_name.."/t/"..$card.code.."/shift/"
% set left_disabled = ""
% if $state_id == 1 then
% set left_disabled = " disabled"
% end
% set right_disabled = ""
% if $state_id == #$states then
% set right_disabled = " disabled"
% end