public
Description: A Simple Scrum Control
Clone URL: git://github.com/eduardoreche/irun.git
irun / app / views / tasks / _form.html.erb
100644 56 lines (47 sloc) 1.452 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
45
46
47
48
49
50
51
52
53
54
55
56
<%= javascript_include_tag 'jquery' %>
<%= javascript_include_tag 'thickbox' %>
<%= stylesheet_link_tag 'thickbox' %>
 
<%= error_messages_for :task %>
 
<% form_for([@sprint,@task]) do |f| %>
  <p>
    <b>Product Backlog</b><br />
    <%= @sprint.backlog.name %>
  </p>
 
  <p>
    <b>Sprint</b><br />
    <%= textilize(@sprint.comments) %>
  </p>
  
  <p>
    <b>Item de Product Backlog</b><br />
    <%= f.text_field :backlog_item_id, :size => 5, :id => 'backlog_item_id', :readonly => 'true' %>&nbsp;
    <a href="<%= find_backlog_backlog_items_path(@sprint.backlog) %>?KeepThis=true&TB_iframe=true&height=400&width=500" class="thickbox"><%= image_tag 'magnifier.png', :border => 0 %></a>&nbsp;
    <input type="text" id="backlog_item_description" size="50" readonly="true" value="<%= (@task.backlog_item ? @task.backlog_item.description : '') %>"/>
    <br />
  </p>
  
  <p>
    <b>Descrição</b><br />
    <%= f.text_field :description, :size => 60 %>
  </p>
 
  <p>
    <b>Previsão de horas</b><br />
    <%= f.text_field :hours %>
  </p>
 
  <% if @task.new_record? %>
    <%= f.hidden_field :status, :value => 'Aberto' %>
  <% else %>
   <p>
   <b>Status</b><br />
   <%= f.select :status, ["Aberto", "Alocado", "Pronto"] %>
   </p>
  <% end %>
  <p>
    <b>Story case</b><br />
    <%= f.text_area :story, :rows => 7, :cols => 60 %>
  </p>
 
  <p>
    <%= f.submit "Salvar" %>
  </p>
<% end %>
 
<% content_for :side do %>
  <%= render_formatting_help %>
<% end %>