mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
26 lines
571 B
JavaScript
26 lines
571 B
JavaScript
/*
|
|
|
|
A component to configure the "edit movie" form.
|
|
Wrapped with the "withDocument" container.
|
|
|
|
*/
|
|
|
|
import React, { PropTypes, Component } from 'react';
|
|
import { Components, registerComponent } from "meteor/nova:core";
|
|
import Movies from '../collection.js';
|
|
|
|
const MoviesEditForm = (props, context) => {
|
|
return (
|
|
<Components.SmartForm
|
|
collection={Movies}
|
|
documentId={props.documentId}
|
|
showRemove={true}
|
|
/>
|
|
)
|
|
}
|
|
|
|
MoviesEditForm.contextTypes = {
|
|
closeCallback: React.PropTypes.func,
|
|
}
|
|
|
|
registerComponent('MoviesEditForm', MoviesEditForm);
|