18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/view/add-ticket-view.rb', line 18
def display
@screen.clear
@screen.setpos(0,0)
@screen.attron(Curses.color_pair(1));
@screen.addstr("Issue Creation - [e]dit (with vim)")
@screen.attroff(Curses.color_pair(1));
@screen.setpos(1,0)
@screen.addstr("Title:")
@screen.setpos(2,0)
@screen.addstr("Priority:")
@screen.setpos(3,0)
@screen.addstr("Type:")
@screen.setpos(4,0)
@screen.addstr("Description:")
ln = 6
@widgets.each_with_index do |w, idx|
if(idx != @active_id)
w.draw
end
end
@widgets[@active_id].draw
end
|