Sha256: b2f1bb52662ba43e66716f2237b3ae3847450ed4c910ec671093f38efc1ed204
Contents?: true
Size: 884 Bytes
Versions: 2
Compression:
Stored size: 884 Bytes
Contents
<tr class="<%= cycle('odd', 'even') %>"> <td><%= f.object.name %></td> <td><%= f.object.text %></td> </tr> <tr> <td colspan="2" style="padding-left: 25px"> <%= render 'shared/form/error_messages', resource: f.object %> <h5>Resource</h5> <%= f.hidden_field :id %> <% f.object.candidatures.build if f.object.candidatures.select{|c| ['new', 'accepted'].include?(c.state)}.none? %> <% f.object.candidatures = f.object.candidatures.to_a.sort do |x,y| Candidature::STATES.index(x.state.to_sym) <=> Candidature::STATES.index(y.state.to_sym) end %> <%= f.simple_fields_for :candidatures do |candidature_form| %> <% @debug = true %> <%= render_product_specific_partial_if_available( candidature_form.object, 'workflow/tasks/candidature_fields', f: candidature_form ) %> <% end %> </td> </tr>
Version data entries
2 entries across 2 versions & 1 rubygems