summaryrefslogtreecommitdiff
path: root/templates/admin_search.tpl
blob: 0077865eb533c35006f46c02ca86788460f81dac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{strip}
{jstabs}
	{jstab title="Search Settings"}
		{formfeedback hash=$feedback}

		{form legend="Search Settings"}
			<input type="hidden" name="page" value="{$page}" />

			{foreach from=$formSearchToggles key=item item=output}
				<div class="row">
					{formlabel label=`$output.label` for=$item}
					{forminput}
						{html_checkboxes name="$item" values="y" checked=$gBitSystem->getConfig($item) labels=false id=$item}
						{formhelp note=`$output.note` page=`$output.page`}
					{/forminput}
				</div>
			{/foreach}

			{foreach from=$formSearchInts key=item item=output}
				<div class="row">
					{formlabel label=`$output.label` for=$item}
					{forminput}
						<input size="5" type="text" name="{$item}" id="{$item}" value="{$output.value|escape}" />
						{formhelp note=`$output.note` page=`$output.page`}
					{/forminput}
				</div>
			{/foreach}

			<div class="row submit">
				<input type="submit" name="store_prefs" value="{tr}Change preferences{/tr}" />
			</div>
		{/form}
	{/jstab}

	{jstab title="Delete / Rebuild Index"}
		{formfeedback hash=$feedback}

		{form legend="Delete / Rebuild Index"}
			<input type="hidden" name="page" value="{$page}" />
			<div class="row">
				{formlabel label="Clear Searchwords:" for="clearss"}
				{forminput}
					<input type="submit" name="del_searchwords" value="{tr}Clear Searchwords{/tr}"/>
					{formhelp note="This clears out the cache of recently searched for terms and the syllables derived from those search terms."}
				{/forminput}
			</div>
			<div class="row">
				{formfeedback warning='Deleting the index will render search useless until content is reindexed.'}
				{formfeedback warning='Rebuilding the Index <strong>could take a long time</strong> depending on how much content you have. If this is a large site, you may want to do this during off-peak hours.'}
				{formfeedback warning='Note: timeout setting will automatically be set to 5 minutes for reindexing operations.'}
			</div>
			<div class="row">
				{formlabel label="Perform action on:" for="where"}
				{forminput}
					<select name="where" id="where">
						{html_options options=$contentTypes}
					</select>
					{formhelp note="Limit indexing action to the selected Liberty package"}
				{/forminput}
			</div>
			<div class="row submit">
				<input type="submit" name="del_index" value="{tr}Delete Index Only{/tr}"/>
				&nbsp;&nbsp;
				<input type="submit" name="del_index_reindex" value="{tr}Delete and Rebuild Index{/tr}"/>
			</div>
		{/form}
	{/jstab}
{/jstabs}
{/strip}