{include file='header' pageTitle='wcf.acp.bbcode.'|concat:$action} {capture assign='attributeTemplate'}

{lang}wcf.acp.bbcode.attribute{/lang} {ldelim}#$attributeNo}

{lang}wcf.acp.bbcode.attribute.useText.description{/lang}
{event name='attributeFields'}
{/capture}

{lang}wcf.acp.bbcode.{$action}{/lang}

{if $action == 'add'}

{lang}wcf.acp.bbcode.add.userGroupOptionInfo{/lang}

{/if} {include file='formError'} {if $success|isset}

{lang}wcf.global.success.{$action}{/lang}

{/if}
{if $errorField == 'bbcodeTag'} {if $errorType == 'empty'} {lang}wcf.global.form.error.empty{/lang} {else} {lang}wcf.acp.bbcode.bbcodeTag.error.{$errorType}{/lang} {/if} {/if}
{if $errorField == 'htmlOpen'} {lang}wcf.acp.bbcode.htmlOpen.error.{$errorType}{/lang} {/if}
{if $errorField == 'htmlClose'} {lang}wcf.acp.bbcode.htmlClose.error.{$errorType}{/lang} {/if}
{lang}wcf.acp.bbcode.isBlockElement.description{/lang}
{lang}wcf.acp.bbcode.isSourceCode.description{/lang}
{if $errorField == 'className'} {lang}wcf.acp.bbcode.className.error.{$errorType}{/lang} {/if}
{if $nativeBBCode|empty}
{if $errorField == 'buttonLabel'} {if $errorType == 'empty'} {lang}wcf.global.form.error.empty{/lang} {elseif $errorType == 'multilingual'} {lang}wcf.global.form.error.multilingual{/lang} {else} {lang}wcf.acp.bbcode.buttonLabel.error.{@$errorType}{/lang} {/if} {/if} {include file='multipleLanguageInputJavascript' elementIdentifier='buttonLabel' forceSelection=false}
{if $errorField == 'wysiwygIcon'} {if $errorType == 'empty'} {lang}wcf.global.form.error.empty{/lang} {else} {lang}wcf.acp.bbcode.wysiwygIcon.error.{@$errorType}{/lang} {/if} {/if} {lang}wcf.acp.bbcode.wysiwygIcon.description{/lang}
{/if} {event name='dataFields'}

{lang}wcf.acp.bbcode.attributes{/lang}

{foreach from=$attributes item='attribute'}

{lang}wcf.acp.bbcode.attribute{/lang} {#$attribute->attributeNo}

attributeNo} class="formError"{/if}>
attributeNo} class="formError"{/if}>
{if $errorField == 'attributeValidationPattern'|concat:$attribute->attributeNo} {if $errorType == 'invalid'} {lang}wcf.acp.bbcode.attribute.validationPattern.error.invalid{/lang} {/if} {/if}
attributeNo} class="formError"{/if}>
attributeNo} class="formError"{/if}>
{lang}wcf.acp.bbcode.attribute.useText.description{/lang}
{event name='attributeFields'}
{/foreach}
{event name='sections'}
{@SECURITY_TOKEN_INPUT_TAG}
{include file='fontAwesomeJavaScript'} {include file='footer'}