"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _reactIntl = require("react-intl");

var template = function template(pluginContext) {
  var React = pluginContext.lib.React;
  var _pluginContext$layout = pluginContext.layoutComponents,
      Col = _pluginContext$layout.Col,
      Row = _pluginContext$layout.Row;
  var Field = pluginContext.recordComponents.Field;


  return React.createElement(
    Field,
    { name: "ns2:role" },
    React.createElement(
      Row,
      null,
      React.createElement(
        Col,
        null,
        React.createElement(Field, { name: "displayName" }),
        React.createElement(Field, { name: "description" })
      ),
      React.createElement(Field, { name: "permission" })
    )
  );
};

exports.default = function (pluginContext) {
  return {
    messages: (0, _reactIntl.defineMessages)({
      name: {
        "id": "form.authrole.default.name",
        "defaultMessage": "Standard Template"
      }
    }),
    template: template(pluginContext)
  };
};