diff options
| author | Nick Palmer <nick@sluggardy.net> | 2008-01-26 23:19:59 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2008-01-26 23:19:59 +0000 |
| commit | 2e6d61a466415664fb4bc100481e9a646af710cf (patch) | |
| tree | 811aaa5d7f79c6fb905d69508135be75260c6b0c /templates | |
| parent | f25323480ca8496e65c25e636e403d45187875be (diff) | |
| download | search-2e6d61a466415664fb4bc100481e9a646af710cf.tar.gz search-2e6d61a466415664fb4bc100481e9a646af710cf.tar.bz2 search-2e6d61a466415664fb4bc100481e9a646af710cf.zip | |
Add ability to restrict which content types are searchable and modernize permission checking a bit.
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/admin_search.tpl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/admin_search.tpl b/templates/admin_search.tpl index 0077865..69113cc 100644 --- a/templates/admin_search.tpl +++ b/templates/admin_search.tpl @@ -32,6 +32,34 @@ {/form} {/jstab} + {jstab title="Searchable Content"} + {form legend="Searchable Content"} + {foreach from=$formSearchTypeToggles 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} + + <input type="hidden" name="page" value="{$page}" /> + <div class="row"> + {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="row submit"> + <input type="submit" name="store_content" value="{tr}Change preferences{/tr}" /> + </div> + {/form} + + {/jstab} + {jstab title="Delete / Rebuild Index"} {formfeedback hash=$feedback} |
