summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-04-10 21:16:34 +0000
committerChristian Fowler <spider@viovio.com>2006-04-10 21:16:34 +0000
commit0dcede880f6b2197631ddfba212140ee2c65e349 (patch)
tree205f89e8e57112882822f4674792b5967f562959 /templates
parent61b92d27cd2c281f2cf342f8eaa43807be0e40e1 (diff)
downloadusers-0dcede880f6b2197631ddfba212140ee2c65e349.tar.gz
users-0dcede880f6b2197631ddfba212140ee2c65e349.tar.bz2
users-0dcede880f6b2197631ddfba212140ee2c65e349.zip
add ajax search list to edit_group
Diffstat (limited to 'templates')
-rw-r--r--templates/admin_group_edit.tpl37
1 files changed, 29 insertions, 8 deletions
diff --git a/templates/admin_group_edit.tpl b/templates/admin_group_edit.tpl
index 26bd5fa..e2d5373 100644
--- a/templates/admin_group_edit.tpl
+++ b/templates/admin_group_edit.tpl
@@ -1,4 +1,4 @@
-{* $Header: /cvsroot/bitweaver/_bit_users/templates/admin_group_edit.tpl,v 1.8 2006/03/03 21:00:02 spiderr Exp $ *}
+{* $Header: /cvsroot/bitweaver/_bit_users/templates/admin_group_edit.tpl,v 1.9 2006/04/10 21:16:34 spiderr Exp $ *}
{strip}
<div class="floaticon">
@@ -49,17 +49,38 @@
<div class="row">
{formlabel label="Group home page" for="group_home"}
{forminput}
+ <input type="text" name="home" id="group_home" value="{$groupInfo.group_home|escape}" />
+ {formhelp note="Here you can enter the content id of any page, the wiki page name or the absolute path of any page you wish to use as a group home page. For this to work set the site homepage to <strong>Group Home</strong>" link="kernel/admin/index.php?page=general/General Settings"}
+
+ Search for Content:<br/>
{html_options options=$contentTypes name=content_type_guid selected=$contentSelect}
- <br />
+<script type="text/javascript" src="{$smarty.const.UTIL_PKG_URL}javascript/libs/suggest/suggest.js"></script>
+<script type="text/javascript" src="{$smarty.const.UTIL_PKG_URL}javascript/libs/rico.js"></script>
+<script type="text/javascript">
+{literal}
+ var suggestOptions = {
+ matchAnywhere : true,
+ ignoreCase : true
+ };
+
+ function injectSuggestBehavior() {
+ suggest = new TextSuggest(
+ 'group_home_lookup',
+ '/liberty/list_content.php',
+ suggestOptions
+ );
+ }
+{/literal}
+</script>
+ <input type="hidden" name="group_home_lookup_hidden" id="group_home_lookup_hidden" value="{$groupInfo.group_home|escape}" />
+ <input type="text" id="group_home_lookup" name="group_home_name">
+ {formhelp note="Enter the title of the content you are looking for to receive an auto-suggest list of possibilities."}
+{*
{html_options name="dummy" id="content-list" values=$contentList options=$contentList onchange="$('group_home').value=options[selectedIndex].value;"}
- <br />
<input type="text" size="30" name="find_objects" value="{$smarty.request.find_objects}" />
<input type="submit" value="{tr}Apply filter{/tr}" name="search_objects" />
- {/forminput}
-
- {forminput}
- <input type="text" name="home" id="group_home" value="{$groupInfo.group_home|escape}" />
- {formhelp note="Here you can enter the content id of any page, the wiki page name or the absolute path of any page you wish to use as a group home page. For this to work set the site homepage to <strong>Group Home</strong>" link="kernel/admin/index.php?page=general/General Settings"}
+ <br />
+*}
{/forminput}
</div>