<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    xmlns:zcml="http://namespaces.zope.org/zcml"
    i18n_domain="untranslated"
    >

  <browser:page
      name="app-administrator-tool"
      for="ploneintranet.layout.app.IApp"
      class=".app.View"
      template="templates/app.pt"
      permission="zope2.View"
      layer="ploneintranet.admintool.browser.interfaces.IPloneintranetAdmintoolLayer"
      />

  <browser:menuItem
      menu="plone_displayviews"
      title="administrator-tool"
      for="ploneintranet.layout.app.IApp"
      action="app-administrator-tool"
      />

  <browser:page
      name="user-management"
      for="ploneintranet.userprofile.content.userprofilecontainer.IUserProfileContainer"
      class=".user_management.View"
      template="templates/user-management.pt"
      permission="plone.app.controlpanel.UsersAndGroups"
      layer="ploneintranet.admintool.browser.interfaces.IPloneintranetAdmintoolLayer"
      />

  <browser:page
      name="panel-toggle-user-state"
      for="ploneintranet.userprofile.content.userprofile.IUserProfile"
      class=".user_management.PanelToggleUserState"
      template="templates/panel-toggle-user-state.pt"
      permission="plone.app.controlpanel.UsersAndGroups"
      layer="ploneintranet.admintool.browser.interfaces.IPloneintranetAdmintoolLayer"
      />

  <browser:page
      name="panel-create-user-account"
      for="ploneintranet.userprofile.content.userprofilecontainer.IUserProfileContainer"
      class=".user_management.PanelAddUser"
      template="templates/panel-create-user-account.pt"
      permission="cmf.AddPortalContent"
      layer="ploneintranet.admintool.browser.interfaces.IPloneintranetAdmintoolLayer"
      />

  <browser:page
      name="mail-user-created"
      for="ploneintranet.userprofile.content.userprofile.IUserProfile"
      class=".mail.UserCreatedMail"
      template="templates/mail-user-created.pt"
      permission="zope2.View"
      layer="ploneintranet.admintool.browser.interfaces.IPloneintranetAdmintoolLayer"
      />

  <!-- XXX this should probably be moved to something like ploneintranet.management -->
  <browser:page
      name="pi-intids"
      for="plone.base.interfaces.siteroot.IPloneSiteRoot"
      class=".intids.ManageIntIds"
      allowed_attributes="check fix"
      permission="cmf.ManagePortal"
      />

  <include
      package=".stripe"
      zcml:condition="installed stripe"
      />

</configure>
