<commit_before>{title help="User+Menu"}{tr}User Menu{/tr}{/title}

{include file='tiki-mytiki_bar.tpl'}
<br>
{if $prefs.feature_user_bookmarks eq 'y' and $tiki_p_create_bookmarks eq 'y'}
	<a title="({tr}May need to refresh twice to see changes{/tr})" class="link" href="tiki-usermenu.php?addbk=1">{tr}Add top level bookmarks to menu{/tr}</a>
{/if}

<h2>{tr}Add or edit an item{/tr}</h2>
<form action="tiki-usermenu.php" method="post">
	<input type="hidden" name="menuId" value="{$menuId|escape}">
	<table class="formcolor">
		<tr>
			<td>{tr}Name{/tr}</td>
			<td><input type="text" name="name" value="{$info.name|escape}"></td>
		</tr>
		<tr>
			<td>{tr}URL{/tr}</td>
			<td><input type="text" name="url" value="{$info.url|escape}"></td>
		</tr>
		<tr>
			<td>{tr}Position{/tr}</td>
			<td><input type="text" name="position" value="{$info.position|escape}"></td>
		</tr>
		<tr>
			<td>{tr}Mode{/tr}</td>
			<td>
				<select name="mode">
					<option value="n" {if $info.mode eq 'n'}selected="selected"{/if}>{tr}New Window{/tr}</option>
					<option value="w" {if $info.mode eq 'w'}selected="selected"{/if}>{tr}replace window{/tr}</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td><input type="submit" class="btn btn-primary btn-sm" name="save" value="{tr}Save{/tr}"></td>
		</tr>
	</table>
</form>
<h2>{tr}Menus{/tr}</h2>

{include file='find.tpl'}

<form action="tiki-usermenu.php" method="post">
	<div class="table-responsive">
		<table class="table normal">
			<tr>
				<th><input type="submit" class="btn btn-warning btn-sm" name="delete" value="x " title="{tr}Delete Selected{/tr}"></th>
				<th><a href="tiki-usermenu.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'position_desc'}position_asc{else}position_desc{/if}">{tr}Pos{/tr}</a></th>
				<th><a href="tiki-usermenu.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">{tr}Name{/tr}</a></th>
				<th><a href="tiki-usermenu.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'url_desc'}url_asc{else}url_desc{/if}">{tr}URL{/tr}</a></th>
				<th><a href="tiki-usermenu.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'mode_desc'}mode_asc{else}mode_desc{/if}">{tr}Mode{/tr}</a></th>
			</tr>

			{section name=user loop=$channels}
				<tr>
					<td class="checkbox-cell">
						<input type="checkbox" name="menu[{$channels[user].menuId}]">
					</td>
					<td class="text">{$channels[user].position}</td>
					<td class="text">
						<a class="link" href="tiki-usermenu.php?menuId={$channels[user].menuId}&amp;offset={$offset}&amp;sort_mode={$sort_mode}&amp;find={$find}">
							{$channels[user].name}
						</a>
					</td>
					<td class="text">{$channels[user].url|truncate:40:"...":true}</td>
					<td class="text">{$channels[user].mode}</td>
				</tr>
			{sectionelse}
				{norecords _colspan=5}
			{/section}
		</table>
	</div<
</form>

{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links}<commit_msg>[FIX] fix html error causing page to be unresponsive; add standard bootstrap table classes while here<commit_after>{title help="User+Menu"}{tr}User Menu{/tr}{/title}

{include file='tiki-mytiki_bar.tpl'}
<br>
{if $prefs.feature_user_bookmarks eq 'y' and $tiki_p_create_bookmarks eq 'y'}
	<a title="({tr}May need to refresh twice to see changes{/tr})" class="link" href="tiki-usermenu.php?addbk=1">{tr}Add top level bookmarks to menu{/tr}</a>
{/if}

<h2>{tr}Add or edit an item{/tr}</h2>
<form action="tiki-usermenu.php" method="post">
	<input type="hidden" name="menuId" value="{$menuId|escape}">
	<table class="formcolor">
		<tr>
			<td>{tr}Name{/tr}</td>
			<td><input type="text" name="name" value="{$info.name|escape}"></td>
		</tr>
		<tr>
			<td>{tr}URL{/tr}</td>
			<td><input type="text" name="url" value="{$info.url|escape}"></td>
		</tr>
		<tr>
			<td>{tr}Position{/tr}</td>
			<td><input type="text" name="position" value="{$info.position|escape}"></td>
		</tr>
		<tr>
			<td>{tr}Mode{/tr}</td>
			<td>
				<select name="mode">
					<option value="n" {if $info.mode eq 'n'}selected="selected"{/if}>{tr}New Window{/tr}</option>
					<option value="w" {if $info.mode eq 'w'}selected="selected"{/if}>{tr}replace window{/tr}</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td><input type="submit" class="btn btn-primary btn-sm" name="save" value="{tr}Save{/tr}"></td>
		</tr>
	</table>
</form>
<h2>{tr}Menus{/tr}</h2>

{include file='find.tpl'}

<form action="tiki-usermenu.php" method="post">
	<div class="table-responsive">
		<table class="table normal table-striped table-hover">
			<tr>
				<th><input type="submit" class="btn btn-warning btn-sm" name="delete" value="x " title="{tr}Delete Selected{/tr}"></th>
				<th><a href="tiki-usermenu.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'position_desc'}position_asc{else}position_desc{/if}">{tr}Pos{/tr}</a></th>
				<th><a href="tiki-usermenu.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">{tr}Name{/tr}</a></th>
				<th><a href="tiki-usermenu.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'url_desc'}url_asc{else}url_desc{/if}">{tr}URL{/tr}</a></th>
				<th><a href="tiki-usermenu.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'mode_desc'}mode_asc{else}mode_desc{/if}">{tr}Mode{/tr}</a></th>
			</tr>

			{section name=user loop=$channels}
				<tr>
					<td class="checkbox-cell">
						<input type="checkbox" name="menu[{$channels[user].menuId}]">
					</td>
					<td class="text">{$channels[user].position}</td>
					<td class="text">
						<a class="link" href="tiki-usermenu.php?menuId={$channels[user].menuId}&amp;offset={$offset}&amp;sort_mode={$sort_mode}&amp;find={$find}">
							{$channels[user].name}
						</a>
					</td>
					<td class="text">{$channels[user].url|truncate:40:"...":true}</td>
					<td class="text">{$channels[user].mode}</td>
				</tr>
			{sectionelse}
				{norecords _colspan=5}
			{/section}
		</table>
	</div>
</form>

{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links}
{'fraction_non_alphanumeric': 0.2405458730680697, 'fraction_numerical': 0.0026307135810588623, 'mean_word_length': 5.169371196754564, 'pattern_counts': {'":': 2, '<': 192, '<?xml version=': 0, '>': 190, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5367230', 'n_tokens_mistral': 2689, 'n_tokens_neox': 2408, 'n_words': 372}