summaryrefslogtreecommitdiff
path: root/templates/admin_search.tpl
blob: 883f5f7b15f72ee3121b94e3817c9a73210263cb (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{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="control-group column-group gutters">
					{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="control-group column-group gutters">
					{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="Searchable Content"}
		{form legend="Searchable Content"}
			{foreach from=$formSearchTypeToggles key=item item=output}
				<div class="control-group column-group gutters">
					{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}

			<input type="hidden" name="page" value="{$page}" />
			<div class="control-group column-group gutters">
				{formlabel label="Searchable Content"}
				{forminput}
					{html_checkboxes options=$formSearchable.guids value=y name=searchable_content separator="<br />" checked=$formSearchable.checked}
					{formhelp note="Here you can select what content can be searched."}
				{/forminput}
			</div>

			<div class="control-group submit">
				<input type="submit" name="store_content" 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="control-group column-group gutters">
				{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="control-group column-group gutters">
				{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="control-group column-group gutters">
				{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="control-group 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}