Advertisement
Guest User

Untitled

a guest
Jun 24th, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.66 KB | None | 0 0
  1.  
  2.  
  3. <%= form_for(@task, remote: true) do |f| %>
  4. <% if @task.errors.any? %>
  5. <div id="error_explanation">
  6. <h2><%= pluralize(@task.errors.count, "error") %> prohibited this task from being saved:</h2>
  7.  
  8. <ul>
  9. <% @task.errors.full_messages.each do |message| %>
  10. <li><%= message %></li>
  11. <% end %>
  12. </ul>
  13. </div>
  14. <% end %>
  15. <table height="100%" id="tablebody" >
  16. <thead>
  17. <tr>
  18. <th> <%= f.label :projeto_id, "Projeto da Atividade" %><br> </th>
  19. <th> <%= f.label :seq, "Raiz Sequencial" %><br> </th>
  20.  
  21. <th> <%= f.label :seqpai, "Ramo Sequencial" %><br> </th>
  22. <th> <%= f.label :descr, "Descrição da Atividade" %><br> </th>
  23. <th> <%= f.label :hour, "Horas de Execução" %> </th>
  24. <th> <%= f.label :typo, "Tipo da Atividade" %><br> </th>
  25. <th> <%= f.label :_destroy, "Desabilitar" %> </th>
  26. </tr>
  27. </thead>
  28. <tbody name="bodao" class="jqueryform" id="bodao">
  29. <tr class="tr" id="tr">
  30. <td name="projetoid" class="projetoid" id="projetoid"> <%= f.grouped_collection_select :projeto_id, Cliente.order(:name), :projetos, :name, :id, :name, prompt: "Selecionar", required: true %> </td>
  31. <td name="raiz" class="raiz" id="raiz"> <%= f.number_field :seq, required: true%> </td>
  32. <td name="seqpai" class="seqpai" id="seqpai"> <%= f.number_field :seqpai, required: false %> </td>
  33. <td name="descr" class="descr" id="descr"> <%= f.text_field :descr, required: true %> </td>
  34.  
  35. <td name="hour" id="hour" class="hour"> <%= f.number_field :hour, required: true %> </td>
  36. <td name="typo" id="typo" class="typo"> <%= f.select("typo", {"Analitica" => "Analitica", "Sintetica" => "Sintetica"}, required: true) %> </td>
  37. <td><%= f.check_box :_destroy %></td>
  38. </tr>
  39.  
  40. </tbody>
  41. </thead>
  42. <tbody name="bodao" class="jqueryform" id="bodao">
  43. <tr class="tr" id="tr">
  44. <td name="projetoid" class="projetoid" id="projetoid"> <%= f.grouped_collection_select :projeto_id, Cliente.order(:name), :projetos, :name, :id, :name, prompt: "Selecionar" %> </td>
  45. <td name="raiz" class="raiz" id="raiz"> <%= f.number_field :seq%> </td>
  46. <td name="seqpai" class="seqpai" id="seqpai"> <%= f.number_field :seqpai %> </td>
  47. <td name="descr" class="descr" id="descr"> <%= f.text_field :descr %> </td>
  48.  
  49. <td name="hour" id="hour" class="hour"> <%= f.number_field :hour %> </td>
  50. <td name="typo" id="typo" class="typo"> <%= f.select("typo", {"Analitica" => "Analitica", "Sintetica" => "Sintetica"}) %> </td>
  51. <td><%= f.check_box :_destroy %></td>
  52. </tr>
  53.  
  54. </tbody>
  55. </thead>
  56. <tbody name="bodao" class="jqueryform" id="bodao">
  57. <tr class="tr" id="tr">
  58. <td name="projetoid" class="projetoid" id="projetoid"> <%= f.grouped_collection_select :projeto_id, Cliente.order(:name), :projetos, :name, :id, :name, prompt: "Selecionar" %> </td>
  59. <td name="raiz" class="raiz" id="raiz"> <%= f.number_field :seq%> </td>
  60. <td name="seqpai" class="seqpai" id="seqpai"> <%= f.number_field :seqpai %> </td>
  61. <td name="descr" class="descr" id="descr"> <%= f.text_field :descr %> </td>
  62.  
  63. <td name="hour" id="hour" class="hour"> <%= f.number_field :hour %> </td>
  64. <td name="typo" id="typo" class="typo"> <%= f.select("typo", {"Analitica" => "Analitica", "Sintetica" => "Sintetica"}) %> </td>
  65. <td><%= f.check_box :_destroy %></td>
  66. </tr>
  67.  
  68. </tbody>
  69. </thead>
  70. <tbody name="bodao" class="jqueryform" id="bodao">
  71. <tr class="tr" id="tr">
  72. <td name="projetoid" class="projetoid" id="projetoid"> <%= f.grouped_collection_select :projeto_id, Cliente.order(:name), :projetos, :name, :id, :name, prompt: "Selecionar" %> </td>
  73. <td name="raiz" class="raiz" id="raiz"> <%= f.number_field :seq%> </td>
  74. <td name="seqpai" class="seqpai" id="seqpai"> <%= f.number_field :seqpai %> </td>
  75. <td name="descr" class="descr" id="descr"> <%= f.text_field :descr %> </td>
  76.  
  77. <td name="hour" id="hour" class="hour"> <%= f.number_field :hour %> </td>
  78. <td name="typo" id="typo" class="typo"> <%= f.select("typo", {"Analitica" => "Analitica", "Sintetica" => "Sintetica"}) %> </td>
  79. <td><%= f.check_box :_destroy %></td>
  80. </tr>
  81.  
  82. </tbody>
  83. </thead>
  84. <tbody name="bodao" class="jqueryform" id="bodao">
  85. <tr class="tr" id="tr">
  86. <td name="projetoid" class="projetoid" id="projetoid"> <%= f.grouped_collection_select :projeto_id, Cliente.order(:name), :projetos, :name, :id, :name, prompt: "Selecionar" %> </td>
  87. <td name="raiz" class="raiz" id="raiz"> <%= f.number_field :seq%> </td>
  88. <td name="seqpai" class="seqpai" id="seqpai"> <%= f.number_field :seqpai %> </td>
  89. <td name="descr" class="descr" id="descr"> <%= f.text_field :descr %> </td>
  90.  
  91. <td name="hour" id="hour" class="hour"> <%= f.number_field :hour %> </td>
  92. <td name="typo" id="typo" class="typo"> <%= f.select("typo", {"Analitica" => "Analitica", "Sintetica" => "Sintetica"}) %> </td>
  93. <td><%= f.check_box :_destroy %></td>
  94. </tr>
  95.  
  96. </tbody>
  97. </thead>
  98. <tbody name="bodao" class="jqueryform" id="bodao">
  99. <tr class="tr" id="tr">
  100. <td name="projetoid" class="projetoid" id="projetoid"> <%= f.grouped_collection_select :projeto_id, Cliente.order(:name), :projetos, :name, :id, :name, prompt: "Selecionar" %> </td>
  101. <td name="raiz" class="raiz" id="raiz"> <%= f.number_field :seq%> </td>
  102. <td name="seqpai" class="seqpai" id="seqpai"> <%= f.number_field :seqpai %> </td>
  103. <td name="descr" class="descr" id="descr"> <%= f.text_field :descr %> </td>
  104.  
  105. <td name="hour" id="hour" class="hour"> <%= f.number_field :hour %> </td>
  106. <td name="typo" id="typo" class="typo"> <%= f.select("typo", {"Analitica" => "Analitica", "Sintetica" => "Sintetica"}) %> </td>
  107. <td><%= f.check_box :_destroy %></td>
  108. </tr>
  109.  
  110. </tbody>
  111. </table>
  112.  
  113. <br>
  114.  
  115. <br>
  116.  
  117.  
  118.  
  119.  
  120. <br><br><br>
  121. <%= f.submit 'Enviar', class: 'btn btn-primary btn-lg' %>
  122.  
  123. <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement