{namespace Confluence.Templates.CreateSpace} /** * Dialog form for the Add Space button. * * @param atlToken the XSRF token to send with the form * @param? buttons whether or not to display the form buttons * @param? fieldErrors the map of errors to display keyed by field name * @param? name initial value for the name field * @param? key initial value for the key field * @param? spacePermission initial space permission (defaults to edit) */ {template .createSpaceForm}

{getText('space.create.form.description')}

{if $fieldErrors and $fieldErrors['name']} {foreach $error in $fieldErrors['name']}
{$error}
{/foreach} {else}
{/if}
{getText('space.create.form.key.description', '
')|noAutoescape}
{if $fieldErrors and $fieldErrors['key']} {foreach $error in $fieldErrors['key']}
{$error}
{/foreach} {else}
{/if}
{call .spaceFormPermissions} {param spacePermission: $spacePermission /} {/call} {if $buttons} {call .spaceFormButtons /} {/if}
{/template} /** * Dialog form for the Add Personal Space link. * * @param atlToken the XSRF token to send with the form * @param? buttons whether or not to display the form buttons * @param? spacePermission initial space permission (defaults to edit) */ {template .createPersonalSpaceForm}

{getText('personal.space.desc')|noAutoescape}

{call .spaceFormPermissions} {param spacePermission: $spacePermission /} {/call} {if $buttons} {call .spaceFormButtons /} {/if}
{/template} /** * Common space permission options to show when creating a space. * @param spacePermission '' or 'private'. */ {template .spaceFormPermissions private="true"}
{/template} /** * Buttons for the personal and regular space forms */ {template .spaceFormButtons private="true"}
{getText('cancel.name')}
{/template} /** * A template for a dialog help link */ {template .helpLink} {call Confluence.Templates.Dialog.helpLink} {param href: docLink('help.add.space') /} {/call} {/template}