Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%= form_for(@task, remote: true) do |f| %>
- <% if @task.errors.any? %>
- <div id="error_explanation">
- <h2><%= pluralize(@task.errors.count, "error") %> prohibited this task from being saved:</h2>
- <ul>
- <% @task.errors.full_messages.each do |message| %>
- <li><%= message %></li>
- <% end %>
- </ul>
- </div>
- <% end %>
- <table height="100%" id="tablebody" >
- <thead>
- <tr>
- <th> <%= f.label :projeto_id, "Projeto da Atividade" %><br> </th>
- <th> <%= f.label :seq, "Raiz Sequencial" %><br> </th>
- <th> <%= f.label :seqpai, "Ramo Sequencial" %><br> </th>
- <th> <%= f.label :descr, "Descrição da Atividade" %><br> </th>
- <th> <%= f.label :hour, "Horas de Execução" %> </th>
- <th> <%= f.label :typo, "Tipo da Atividade" %><br> </th>
- <th> <%= f.label :_destroy, "Desabilitar" %> </th>
- </tr>
- </thead>
- <tbody name="bodao" class="jqueryform" id="bodao">
- <tr class="tr" id="tr">
- <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>
- <td name="raiz" class="raiz" id="raiz"> <%= f.number_field :seq, required: true%> </td>
- <td name="seqpai" class="seqpai" id="seqpai"> <%= f.number_field :seqpai, required: false %> </td>
- <td name="descr" class="descr" id="descr"> <%= f.text_field :descr, required: true %> </td>
- <td name="hour" id="hour" class="hour"> <%= f.number_field :hour, required: true %> </td>
- <td name="typo" id="typo" class="typo"> <%= f.select("typo", {"Analitica" => "Analitica", "Sintetica" => "Sintetica"}, required: true) %> </td>
- <td><%= f.check_box :_destroy %></td>
- </tr>
- </tbody>
- </thead>
- <tbody name="bodao" class="jqueryform" id="bodao">
- <tr class="tr" id="tr">
- <td name="projetoid" class="projetoid" id="projetoid"> <%= f.grouped_collection_select :projeto_id, Cliente.order(:name), :projetos, :name, :id, :name, prompt: "Selecionar" %> </td>
- <td name="raiz" class="raiz" id="raiz"> <%= f.number_field :seq%> </td>
- <td name="seqpai" class="seqpai" id="seqpai"> <%= f.number_field :seqpai %> </td>
- <td name="descr" class="descr" id="descr"> <%= f.text_field :descr %> </td>
- <td name="hour" id="hour" class="hour"> <%= f.number_field :hour %> </td>
- <td name="typo" id="typo" class="typo"> <%= f.select("typo", {"Analitica" => "Analitica", "Sintetica" => "Sintetica"}) %> </td>
- <td><%= f.check_box :_destroy %></td>
- </tr>
- </tbody>
- </thead>
- <tbody name="bodao" class="jqueryform" id="bodao">
- <tr class="tr" id="tr">
- <td name="projetoid" class="projetoid" id="projetoid"> <%= f.grouped_collection_select :projeto_id, Cliente.order(:name), :projetos, :name, :id, :name, prompt: "Selecionar" %> </td>
- <td name="raiz" class="raiz" id="raiz"> <%= f.number_field :seq%> </td>
- <td name="seqpai" class="seqpai" id="seqpai"> <%= f.number_field :seqpai %> </td>
- <td name="descr" class="descr" id="descr"> <%= f.text_field :descr %> </td>
- <td name="hour" id="hour" class="hour"> <%= f.number_field :hour %> </td>
- <td name="typo" id="typo" class="typo"> <%= f.select("typo", {"Analitica" => "Analitica", "Sintetica" => "Sintetica"}) %> </td>
- <td><%= f.check_box :_destroy %></td>
- </tr>
- </tbody>
- </thead>
- <tbody name="bodao" class="jqueryform" id="bodao">
- <tr class="tr" id="tr">
- <td name="projetoid" class="projetoid" id="projetoid"> <%= f.grouped_collection_select :projeto_id, Cliente.order(:name), :projetos, :name, :id, :name, prompt: "Selecionar" %> </td>
- <td name="raiz" class="raiz" id="raiz"> <%= f.number_field :seq%> </td>
- <td name="seqpai" class="seqpai" id="seqpai"> <%= f.number_field :seqpai %> </td>
- <td name="descr" class="descr" id="descr"> <%= f.text_field :descr %> </td>
- <td name="hour" id="hour" class="hour"> <%= f.number_field :hour %> </td>
- <td name="typo" id="typo" class="typo"> <%= f.select("typo", {"Analitica" => "Analitica", "Sintetica" => "Sintetica"}) %> </td>
- <td><%= f.check_box :_destroy %></td>
- </tr>
- </tbody>
- </thead>
- <tbody name="bodao" class="jqueryform" id="bodao">
- <tr class="tr" id="tr">
- <td name="projetoid" class="projetoid" id="projetoid"> <%= f.grouped_collection_select :projeto_id, Cliente.order(:name), :projetos, :name, :id, :name, prompt: "Selecionar" %> </td>
- <td name="raiz" class="raiz" id="raiz"> <%= f.number_field :seq%> </td>
- <td name="seqpai" class="seqpai" id="seqpai"> <%= f.number_field :seqpai %> </td>
- <td name="descr" class="descr" id="descr"> <%= f.text_field :descr %> </td>
- <td name="hour" id="hour" class="hour"> <%= f.number_field :hour %> </td>
- <td name="typo" id="typo" class="typo"> <%= f.select("typo", {"Analitica" => "Analitica", "Sintetica" => "Sintetica"}) %> </td>
- <td><%= f.check_box :_destroy %></td>
- </tr>
- </tbody>
- </thead>
- <tbody name="bodao" class="jqueryform" id="bodao">
- <tr class="tr" id="tr">
- <td name="projetoid" class="projetoid" id="projetoid"> <%= f.grouped_collection_select :projeto_id, Cliente.order(:name), :projetos, :name, :id, :name, prompt: "Selecionar" %> </td>
- <td name="raiz" class="raiz" id="raiz"> <%= f.number_field :seq%> </td>
- <td name="seqpai" class="seqpai" id="seqpai"> <%= f.number_field :seqpai %> </td>
- <td name="descr" class="descr" id="descr"> <%= f.text_field :descr %> </td>
- <td name="hour" id="hour" class="hour"> <%= f.number_field :hour %> </td>
- <td name="typo" id="typo" class="typo"> <%= f.select("typo", {"Analitica" => "Analitica", "Sintetica" => "Sintetica"}) %> </td>
- <td><%= f.check_box :_destroy %></td>
- </tr>
- </tbody>
- </table>
- <br>
- <br>
- <br><br><br>
- <%= f.submit 'Enviar', class: 'btn btn-primary btn-lg' %>
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement