Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <tr>
- <td>
- <strong class="col-md-3">L'OCS est-il maintenu ?</strong>
- <div class="col-md-3">
- <%= f.check_box :maintenance, label: "", :class => 'towatch' %>
- </div>
- <strong class="col-md-2">TMA</strong>
- <div class="col-md-3">
- <%= f.collection_select(:tma_id, Entity.all.order(:name), :id, :name, prompt: 'Choisissez une TMA', :class => 'toset', hide_label: true) %>
- </div>
- </td>
- </tr>
- # Display if already checked
- if $(".towatch:checked")
- $(".toset").toggle()
- # Toggle on change
- $(".towatch").change ->
- $(".toset").toggle()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement