@@ -59,37 +89,60 @@ export default React.createClass( {
},
render() {
- if ( this.props.site.jetpack ) {
- return ( Invites not currently available for Jetpack sites.
);
- }
return (
-
+
+
-
-
-
-
-
-
-
- Send Invites
-
+
{ this.state.response && this.renderResponse() }
-
+
);
}
} );
diff --git a/client/my-sites/people/role-select/README.md b/client/my-sites/people/role-select/README.md
index 36c7e4d66982c9..54c7a480834f12 100644
--- a/client/my-sites/people/role-select/README.md
+++ b/client/my-sites/people/role-select/README.md
@@ -2,3 +2,7 @@ RoleSelect
================
This component listens to changes from the `RolesStore` and displays a select of the roles for a site.
+
+### Props
+* siteId - (int) siteId for site from which to fetch roles
+* explanation - (string) Optional explanation to be displayed below select in a FormSettingExplanation
diff --git a/client/my-sites/people/role-select/index.jsx b/client/my-sites/people/role-select/index.jsx
index 111129f0f998fd..a04d861faee610 100644
--- a/client/my-sites/people/role-select/index.jsx
+++ b/client/my-sites/people/role-select/index.jsx
@@ -10,7 +10,8 @@ var RolesStore = require( 'lib/site-roles/store' ),
RolesActions = require( 'lib/site-roles/actions' ),
FormFieldset = require( 'components/forms/form-fieldset' ),
FormLabel = require( 'components/forms/form-label' ),
- FormSelect = require( 'components/forms/form-select' );
+ FormSelect = require( 'components/forms/form-select' ),
+ FormSettingExplanation = require( 'components/forms/form-setting-explanation' );
var debug = debugFactory( 'calypso:role-select' );
@@ -90,6 +91,11 @@ module.exports = React.createClass( {
} )
}
+ { this.props.explanation &&
+
+ { this.props.explanation }
+
+ }
);
}