metamaps--metamaps/views/metacode_sets/edit.html.erb

25 lines
449 B
Text
Raw Normal View History

2018-03-05 18:18:51 +00:00
import React, { Component } from react
class MyComponent extends Component {
render = () => {
return (
2014-09-16 01:57:34 +00:00
<div id="yield">
2018-03-05 17:33:16 +00:00
<div className='centerContent'>
2018-03-04 02:25:42 +00:00
{ render 'form' }
2014-09-16 01:57:34 +00:00
</div>
</div>
2018-03-05 18:18:51 +00:00
)
}
}
export default MyComponent
<script>
2018-03-04 02:25:42 +00:00
{ 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>