public
Description: A Simple Scrum Control
Clone URL: git://github.com/eduardoreche/irun.git
Modificando formulario de insercao de tarefas, o mesmo nao pode permitir 
que se inclua uma tarefa com status diferente de Alocado
eduardoreche (author)
Wed Jun 11 06:19:35 -0700 2008
commit  486f038688df82d4515df023702c1a01aa72c97a
tree    08fc4a07a53636b7cb5a68e5dc55f7a9936209bb
parent  203a8148dfa0766ca8da3eeb323312631b1552e1
...
33
34
35
36
37
38
39
40
 
 
 
 
 
 
 
 
41
42
43
...
33
34
35
 
 
 
 
 
36
37
38
39
40
41
42
43
44
45
46
0
@@ -33,11 +33,14 @@
0
     <%= f.text_field :hours %>
0
   </p>
0
 
0
- <p>
0
- <b>Status</b><br />
0
- <%= f.select :status, ["Aberto", "Alocado", "Pronto"] %>
0
- </p>
0
-
0
+ <% if @task.new_record? %>
0
+ <%= f.hidden_field :status, :value => 'Aberto' %>
0
+ <% else %>
0
+ <p>
0
+ <b>Status</b><br />
0
+ <%= f.select :status, ["Aberto", "Alocado", "Pronto"] %>
0
+ </p>
0
+ <% end %>
0
   <p>
0
     <b>Story case</b><br />
0
     <%= f.text_area :story, :rows => 7, :cols => 60 %>

Comments

    No one has commented yet.