af83/chouette-core

View on GitHub
app/views/contracts/_code_fields.html.slim

Summary

Maintainability
Test Coverage
.nested-fields.code
  .wrapper
    div
      = f.input :id, as: :hidden, wrapper: false
      = f.input :code_space_id,
        as: :select,
        collection: @workbench.workgroup.code_spaces.map {|c| [c.short_name, c.id]},
        label: false,
        wrapper: false,
        include_blank: false
    div
      = f.input :value, label: false, wrapper: false
    div
      = link_to_remove_association '', f, class: 'fa fa-trash'