<commit_before><?php
/**
 * @version     $Id: form.php 2004 2011-06-26 16:32:54Z johanjanssens $
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Banners
 * @copyright   Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

defined('KOOWA') or die('Restricted access') ?>

<?= @helper('behavior.tooltip') ?>
<?= @helper('behavior.validator') ?>
  
<script src="media://lib_koowa/js/koowa.js" />
<style src="media://lib_koowa/css/koowa.css" />

<form action="" method="post" id="contact-form" class="-koowa-form">
	<input type="hidden" name="id" value="<?= $contact->id; ?>" />

	<div style="width:60%; float: left" id="mainform">
		<fieldset class="adminform">
			<legend><?= @text('Details'); ?></legend>
			
			<table class="admintable">
				<tr>
					<td class="key">
						<label for="name">
							<?= @text( 'Name' ); ?>:
						</label>
					</td>
					<td >
						<input class="inputbox" type="text" name="name" id="name" size="60" maxlength="255" value="<?= $contact->name; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<label for="alias">
							<?= @text( 'Alias' ); ?>:
						</label>
					</td>
					<td >
						<input class="inputbox" type="text" name="alias" id="alias" size="60" maxlength="255" value="<?= $contact->slug; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<?= @text( 'Published' ); ?>:
					</td>
					<td>
						<?= @helper('select.booleanlist', array('name' => 'enabled', 'selected' => $contact->enabled)); ?>
					</td>
				</tr>
				<tr>
					<td class="key">
						<label for="category">
							<?= @text( 'Category' ); ?>:
						</label>
					</td>
					<td>
						<?= @helper('com://admin/categories.template.helper.listbox.categories', array(
                            'name' => 'category',
                            'text' => 'title',
                            'filter' => array('section' => 'com_contact_details'),
                            'selected' => $contact->category,
                        )); ?>
					</td>
				</tr>
				<tr>
					<td class="key">
						<label for="user_id">
							<?= @text( 'Linked to User' ); ?>:
						</label>
					</td>
					<td>
                        <?= @helper('com://admin/users.template.helper.autocomplete.users') ?>
					</td>
				</tr>
				<tr>
					<td valign="top" class="key">
						<label for="ordering">
							<?= @text( 'Ordering' ); ?>:
						</label>
					</td>
					<td>
						<?= @helper('listbox.ordering'); ?>
					</td>
				</tr>
				<tr>
					<td valign="top" class="key">
						<label for="access">
							<?= @text( 'Access' ); ?>:
						</label>
					</td>
					<td><commit_msg>Autocomplete listboxes are now rendered through the listbox helper.<commit_after><?php
/**
 * @version     $Id: form.php 2004 2011-06-26 16:32:54Z johanjanssens $
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Banners
 * @copyright   Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

defined('KOOWA') or die('Restricted access') ?>

<?= @helper('behavior.tooltip') ?>
<?= @helper('behavior.validator') ?>
  
<script src="media://lib_koowa/js/koowa.js" />
<style src="media://lib_koowa/css/koowa.css" />

<form action="" method="post" id="contact-form" class="-koowa-form">
	<input type="hidden" name="id" value="<?= $contact->id; ?>" />

	<div style="width:60%; float: left" id="mainform">
		<fieldset class="adminform">
			<legend><?= @text('Details'); ?></legend>
			
			<table class="admintable">
				<tr>
					<td class="key">
						<label for="name">
							<?= @text( 'Name' ); ?>:
						</label>
					</td>
					<td >
						<input class="inputbox" type="text" name="name" id="name" size="60" maxlength="255" value="<?= $contact->name; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<label for="alias">
							<?= @text( 'Alias' ); ?>:
						</label>
					</td>
					<td >
						<input class="inputbox" type="text" name="alias" id="alias" size="60" maxlength="255" value="<?= $contact->slug; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<?= @text( 'Published' ); ?>:
					</td>
					<td>
						<?= @helper('select.booleanlist', array('name' => 'enabled', 'selected' => $contact->enabled)); ?>
					</td>
				</tr>
				<tr>
					<td class="key">
						<label for="category">
							<?= @text( 'Category' ); ?>:
						</label>
					</td>
					<td>
						<?= @helper('com://admin/categories.template.helper.listbox.categories', array(
                            'name' => 'category',
                            'text' => 'title',
                            'filter' => array('section' => 'com_contact_details'),
                            'selected' => $contact->category,
                        )); ?>
					</td>
				</tr>
				<tr>
					<td class="key">
						<label for="user_id">
							<?= @text( 'Linked to User' ); ?>:
						</label>
					</td>
					<td>
                        <?= @helper('com://admin/users.template.helper.listbox.users', array('autocomplete' => true, 'text' => 'name', 'name' => 'user_id')) ?>
					</td>
				</tr>
				<tr>
					<td valign="top" class="key">
						<label for="ordering">
							<?= @text( 'Ordering' ); ?>:
						</label>
					</td>
					<td>
						<?= @helper('listbox.ordering'); ?>
					</td>
				</tr>
				<tr>
					<td valign="top" class="key">
						<label for="access">
							<?= @text( 'Access' ); ?>:
						</label>
					</td>
					<td>
{'fraction_non_alphanumeric': 0.22694282173836078, 'fraction_numerical': 0.012391573729863693, 'mean_word_length': 2.183098591549296, 'pattern_counts': {'":': 0, '<': 167, '<?xml version=': 0, '>': 194, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '1891604', 'n_tokens_mistral': 2574, 'n_tokens_neox': 1942, 'n_words': 373}