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