Sha256: e24db3af9556465b18132efc66966d82b582d4650484f2b8785c56c0618d7882
Contents?: true
Size: 851 Bytes
Versions: 3
Compression:
Stored size: 851 Bytes
Contents
<%= suffix ||= "" if defined? value f.collection_select(parent.id+suffix, Databaseformalizer::Entity.find_all_by_entity_def_id(parent.child_entity_def_name), :id, :label, {:selected => value}) elsif entity.attr_vals.find_by_attr_def_name(parent.id) != nil f.collection_select(parent.id+suffix, Databaseformalizer::Entity.find_all_by_entity_def_id(parent.child_entity_def_name), :id, :label, {:selected => entity.attr_vals.find_by_attr_def_name(parent.id).value}) else f.collection_select(parent.id+suffix, Databaseformalizer::Entity.find_all_by_entity_def_id(parent.child_entity_def_name), :id, :label, {:include_blank => 'Not defined'}) end %> <span id="new_<%= parent.id %>"> <%= link_to "new", new_databaseformalizer_entity_path(:attrID => parent.id, :entity_def => parent.child_entity_def_name), :remote => 'true' %> </span>
Version data entries
3 entries across 3 versions & 1 rubygems