{* $Id: mod-freetag.tpl 53352 2014-12-29 04:02:21Z jyhem $ *}

{if isset($viewTags)}
	{tikimodule error=$module_params.error title=$tpl_module_title name="freetag" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle}

		{include file="freetag_list.tpl" deleteTag="y"}

		{if $tiki_p_freetags_tag eq 'y'}
			{if !empty($freetag_error)}{$freetag_error}{/if}
			<div class="col-sm-12">
				<form name="addTags" method="post" class="form-horizontal">
					<div class="form-group">
						<input type="text" name="addtags" class="form-control"{if !empty($freetag_msg)} value="{$freetag_msg}"{/if} />
						{if $prefs.feature_antibot eq 'y' && $user eq ''}
							<table>{include file="antibot.tpl"}</table>
						{/if}
					</div>
					<input type="submit" class="btn btn-default btn-sm" name="Add" value="{tr}Add{/tr}" />
					{help url="Tags" desc="{tr}Put tags separated by spaces. For tags with more than one word, use no spaces and put words together or enclose them with double quotes{/tr}"}

				</form>
			</div>
			{jq}
				$(':text[name=addtags]').tiki('autocomplete', 'tag', {multiple: true, multipleSeparator: " "} );
			{/jq}
		{/if}
	{/tikimodule}
{/if}
