Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add access right params for publication POSTs and PATCHs #14

Merged
merged 2 commits into from
Dec 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions components/PatchLayerParams.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {Form} from 'semantic-ui-react'
import PublicationAccessRightsParams from "./PublicationAccessRightsParams";

class PatchLayerParams extends React.PureComponent {

Expand Down Expand Up @@ -27,6 +28,7 @@ class PatchLayerParams extends React.PureComponent {
<label>SLD style</label>
<input name="sld" type="file" accept=".sld,.xml"/>
</Form.Field>
<PublicationAccessRightsParams/>
</div>
);
}
Expand Down
2 changes: 2 additions & 0 deletions components/PatchMapParams.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {Form} from 'semantic-ui-react'
import PublicationAccessRightsParams from "./PublicationAccessRightsParams";

class PatchMapParams extends React.PureComponent {

Expand All @@ -18,6 +19,7 @@ class PatchMapParams extends React.PureComponent {
inline
name="description" label='Map description'
placeholder='Map description'/>
<PublicationAccessRightsParams/>
</div>
);
}
Expand Down
2 changes: 2 additions & 0 deletions components/PostLayersParams.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {Form} from 'semantic-ui-react'
import PublicationAccessRightsParams from "./PublicationAccessRightsParams";

class PostLayersParams extends React.PureComponent {

Expand Down Expand Up @@ -34,6 +35,7 @@ class PostLayersParams extends React.PureComponent {
<label>SLD style</label>
<input name="sld" type="file" accept=".sld,.xml"/>
</Form.Field>
<PublicationAccessRightsParams/>
</div>
);
}
Expand Down
2 changes: 2 additions & 0 deletions components/PostMapsParams.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {Form} from 'semantic-ui-react'
import PublicationAccessRightsParams from "./PublicationAccessRightsParams";

class PostMapsParams extends React.PureComponent {

Expand All @@ -25,6 +26,7 @@ class PostMapsParams extends React.PureComponent {
inline
name="description" label='Map description'
placeholder='Map description'/>
<PublicationAccessRightsParams/>
</div>
);
}
Expand Down
24 changes: 24 additions & 0 deletions components/PublicationAccessRightsParams.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import {Form} from 'semantic-ui-react'


class PublicationAccessRightsParams extends React.PureComponent {

render() {
return (
<div>
<Form.Input
inline
name="access_rights.read"
label='Read access rights'
placeholder='Read access rights'/>
<Form.Input
inline
name="access_rights.write"
label='Write access rights'
placeholder='Write access rights'/>
</div>
);
}
}

export default PublicationAccessRightsParams;