<commit_before><?php defined('BASEPATH') OR exit('No direct script access allowed');

?>

<form id="edit-menu-item" name="edit-menu-item" method="post" action="<?=base_url("menu/$action");?>">

<input type="hidden" name="kMenu" id="kMenu" value="<?=get_value($menu_item,"kMenu");?>"/>
<p>
<label for="category">Category</label>
<input type="text" name="category" id="category" readonly value="<?=get_value($menu_item,"category");?>"/>
</p>
<p>
<label for="label">Human-Readable Label</label>&nbsp;
<input type="text" name="label" id="label" value="<?=get_value($menu_item,"label");?>"/></p>
<p>
<label for="value">Computer Value</label>&nbsp;
<input type="text" name="value" id="value" value="<?=get_value($menu_item,"value");?>"/>
</p>
<p>
<input type="submit" name="save" id="save" class="button" value="<?=ucfirst($action);?>"/>
</p>

</form><commit_msg>Adapting menu edit for insertions<commit_after><?php defined('BASEPATH') OR exit('No direct script access allowed');

?>

<form id="edit-menu-item" name="edit-menu-item" method="post" action="<?=base_url("menu/$action");?>">

<input type="hidden" name="kMenu" id="kMenu" value="<?=get_value($menu_item,"kMenu");?>"/>
<p>
<label for="category">Category</label>
<? if($action == "update"): ?>
<input type="text" name="category" id="category" readonly value="<?=get_value($menu_item,"category");?>"/>
<? else: ?>
<? echo form_dropdown("category",$categories,"id='category'"); ?>
<? endif; ?>
</p>
<p>
<label for="label">Human-Readable Label</label>&nbsp;
<input type="text" name="label" id="label" value="<?=get_value($menu_item,"label");?>"/></p>
<p>
<label for="value">Computer Value</label>&nbsp;
<input type="text" name="value" id="value" value="<?=get_value($menu_item,"value");?>"/>
</p>
<p>
<input type="submit" name="save" id="save" class="button" value="<?=ucfirst($action);?>"/>
</p>

</form>
{'fraction_non_alphanumeric': 0.27209051724137934, 'fraction_numerical': 0.0, 'mean_word_length': 9.432584269662922, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '7533946', 'n_tokens_mistral': 640, 'n_tokens_neox': 650, 'n_words': 121}