<commit_before>{include file='header' pageTitle='wcf.acp.tag.'|concat:$action}

<header class="boxHeadline">
	<h1>{lang}wcf.acp.tag.{$action}{/lang}</h1>
</header>

{include file='formError'}

{if $success|isset}
	<p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
{/if}

<div class="contentNavigation">
	<nav>
		<ul>
			<li><a href="{link controller='TagList'}{/link}" class="button"><span class="icon icon16 icon-list"></span> <span>{lang}wcf.acp.menu.link.tag.list{/lang}</span></a></li>
				
			{event name='contentNavigationButtons'}
		</ul>
	</nav>
</div>

<form method="post" action="{if $action == 'add'}{link controller='TagAdd'}{/link}{else}{link controller='TagEdit' object=$tagObj}{/link}{/if}">
	<div class="container containerPadding marginTop">
		<fieldset>
			<legend>{lang}wcf.global.form.data{/lang}</legend>
			
			<dl{if $errorField == 'name'} class="formError"{/if}>
				<dt><label for="name">{lang}wcf.global.name{/lang}</label></dt>
				<dd>
					<input type="text" id="name" name="name" value="{$name}" required="required" autofocus="autofocus" class="medium" />
					{if $errorField == 'name'}
						<small class="innerError">
							{if $errorType == 'empty'}
								{lang}wcf.global.form.error.empty{/lang}
							{elseif $errorType == 'duplicate'}
								{lang}wcf.acp.tag.error.name.duplicate{/lang}
							{/if}
						</small>
					{/if}
				</dd>
			</dl>
			
			{hascontent}
				<dl{if $errorField == 'languageID' || $action == 'edit'} class="{if $action == 'edit'}disabled{else}formError{/if}"{/if}>
					<dt><label for="languageID">{lang}wcf.acp.tag.languageID{/lang}</label></dt>
					<dd>
						<select id="languageID" name="languageID"{if $action == 'edit'} disabled="disabled"{/if}>
							{content}
								{foreach from=$availableLanguages item=language}
									<option value="{@$language->languageID}"{if $languageID == $language->languageID} selected="selected"{/if}>{$language->languageName} ({$language->languageCode})</option>
								{/foreach}
							{/content}
						</select><commit_msg>Increased size of tag input field<commit_after>{include file='header' pageTitle='wcf.acp.tag.'|concat:$action}

<header class="boxHeadline">
	<h1>{lang}wcf.acp.tag.{$action}{/lang}</h1>
</header>

{include file='formError'}

{if $success|isset}
	<p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
{/if}

<div class="contentNavigation">
	<nav>
		<ul>
			<li><a href="{link controller='TagList'}{/link}" class="button"><span class="icon icon16 icon-list"></span> <span>{lang}wcf.acp.menu.link.tag.list{/lang}</span></a></li>
				
			{event name='contentNavigationButtons'}
		</ul>
	</nav>
</div>

<form method="post" action="{if $action == 'add'}{link controller='TagAdd'}{/link}{else}{link controller='TagEdit' object=$tagObj}{/link}{/if}">
	<div class="container containerPadding marginTop">
		<fieldset>
			<legend>{lang}wcf.global.form.data{/lang}</legend>
			
			<dl{if $errorField == 'name'} class="formError"{/if}>
				<dt><label for="name">{lang}wcf.global.name{/lang}</label></dt>
				<dd>
					<input type="text" id="name" name="name" value="{$name}" required="required" autofocus="autofocus" class="long" />
					{if $errorField == 'name'}
						<small class="innerError">
							{if $errorType == 'empty'}
								{lang}wcf.global.form.error.empty{/lang}
							{elseif $errorType == 'duplicate'}
								{lang}wcf.acp.tag.error.name.duplicate{/lang}
							{/if}
						</small>
					{/if}
				</dd>
			</dl>
			
			{hascontent}
				<dl{if $errorField == 'languageID' || $action == 'edit'} class="{if $action == 'edit'}disabled{else}formError{/if}"{/if}>
					<dt><label for="languageID">{lang}wcf.acp.tag.languageID{/lang}</label></dt>
					<dd>
						<select id="languageID" name="languageID"{if $action == 'edit'} disabled="disabled"{/if}>
							{content}
								{foreach from=$availableLanguages item=language}
									<option value="{@$language->languageID}"{if $languageID == $language->languageID} selected="selected"{/if}>{$language->languageName} ({$language->languageCode})</option>
								{/foreach}
							{/content}
						</select>
{'fraction_non_alphanumeric': 0.2234609791565681, 'fraction_numerical': 0.0019389238972370335, 'mean_word_length': 4.291025641025641, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 103, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5519060', 'n_tokens_mistral': 1743, 'n_tokens_neox': 1443, 'n_words': 222}