metamaps--metamaps/views/metacode_sets/edit.html.erb
2018-03-05 13:18:51 -05:00

24 lines
449 B
Text

import React, { Component } from react
class MyComponent extends Component {
render = () => {
return (
<div id="yield">
<div className='centerContent'>
{ render 'form' }
</div>
</div>
)
}
}
export default MyComponent
<script>
{ Metacode.all.each do |m| }
{ if m.in_metacode_set(@metacode_set) }
Metamaps.Admin.selectMetacodes.push("{ m.id }");
{ end }
Metamaps.Admin.allMetacodes.push("{ m.id }");
{ end }
</script>