blob: 5c29b2ae032b0354365afe818432df2ee6d513dc (
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
98
99
100
101
102
103
104
|
{strip}
{form legend="Add / Edit menu items"}
<input type="hidden" name="menu_id" value="{$gNexus->mInfo.menu_id}" />
<input type="hidden" name="item_id" value="{$editItem.item_id}" />
<input type="hidden" name="tab" value="edit" />
<div class="control-group">
{formlabel label="Link to content" for="content_type_guid"}
{forminput}
{html_options options=$contentTypes name=content_type_guid id=content_type_guid selected=$smarty.request.content_type_guid}
{/forminput}
{forminput}
<input type="text" name="find" value="{$smarty.request.find}" />
<input type="submit" class="btn" value="{tr}filter{/tr}" name="search_objects" />
{formhelp note="You can select the content type you want to limit the dropdown to and/or a word filter."}
{/forminput}
{forminput}
{html_options name="content" options=$contentList onchange="document.getElementById('rsrc').value=options[selectedIndex].value;document.getElementById('title').value=options[selectedIndex].label.replace(/ \[id.*?\]/,'');document.getElementById('rsrc_type').value='content_id';"}
{formhelp note="When you pick an item from the dropdown list, it will fill in some of the fields in the form below using suggested values."}
<noscript>
{formhelp note="Since you don't have javascript (enabled), please insert the appropriate information from the dropdown manually. The content ID is the number associated with the item in the dropdown list."}
</noscript>
{/forminput}
</div>
{if $menuList}
<div class="control-group">
{formlabel label="Insert menu" for="menu_list"}
{forminput}
{html_options name="menu_list" options=$menuList onchange="document.getElementById('rsrc').value=options[selectedIndex].value;document.getElementById('title').value=options[selectedIndex].label.replace(/ \[id.*?\]/,'');document.getElementById('rsrc_type').value='menu_id';"}
<noscript>
{formhelp note="Since you don't have javascript (enabled), please insert the appropriate information from the dropdown manually. The content ID is the number associated with the item in the dropdown list."}
</noscript>
{/forminput}
</div>
{/if}
<div class="control-group">
<hr />
</div>
<div class="control-group">
{formlabel label="Title" for="title"}
{forminput}
<input type="text" name="title" id="title" size="50" value="{$editItem.title|escape}" />
{formhelp note="Enter a title for your menu item."}
{/forminput}
</div>
<div class="control-group">
{formlabel label="Hint" for="hint"}
{forminput}
<textarea name="hint" id="hint" cols="50" rows="2">{$editItem.hint|escape}</textarea>
{formhelp note="A hint for this item. This hint is visible when you hover over the menu item - hint is set as 'title' attribute for link (for menu plugins that support this feature)."}
{/forminput}
</div>
<div class="control-group">
{formlabel label="Resource type" for="rsrc_type"}
{forminput}
{html_options name="rsrc_type" id="rsrc_type" options=$rsrcTypes selected=`$editItem.rsrc_type`}
{formhelp note="Here you can pick the resource type you wish to link to."}
{/forminput}
</div>
<div class="control-group">
{formlabel label="Resource link" for="rsrc"}
{forminput}
<input type="text" name="rsrc" id="rsrc" size="50" value="{$editItem.rsrc|escape}" />
{formhelp note="<dl><dt>External URL</dt><dd>enter full link. e.g.: <strong>http://www.example.com/</strong></dd><dt>Internal URL</dt><dd>enter link beginning from your bitweaver installation directory. e.g.: <strong>wiki/rankings.php</strong></dd><dd>or the absolute URL. e.g.: <strong>/subpath/wiki/rankings.php</strong></dd><dt>Content ID</dt><dd>enter the number referring to some content (e.g. the number assoctiated with each item in the content dropdown is a content ID). e.g.: <strong>3</strong></dd><dt>Structure ID</dt><dd>Enter the structure ID that you want to use.</dd></dl>"}
{/forminput}
</div>
<div class="control-group">
{formlabel label="Permission" for="perm"}
{forminput}
{html_options name="perm" id="perm" options=$perms selected=`$editItem.perm`}
{formhelp note="Permission required to view this item and any children associated with it. If no permission is selected, the menu is visible to all users."}
{/forminput}
</div>
{if !$editItem.item_id}
<div class="control-group">
{formlabel label="Insert after" for="after_ref_id"}
{forminput}
<select name="after_ref_id" id="after_ref_id">
{foreach from=$gNexus->mInfo.items item=item}
<option value="{$item.item_id}">{$item.title|escape}</option>
{foreachelse}
<option value="">{tr}no items found{/tr}</option>
{/foreach}
</select>
{formhelp note="Pick the position after which you want to add the item."}
{/forminput}
</div>
{/if}
<div class="control-group submit">
<input type="submit" class="btn" name="store_item" value="{tr}Save Item{/tr}" />
</div>
{/form}
{/strip}
|