<commit_before><?
/**
 * @version     $Id: form.php 3029 2011-10-09 13:07:11Z johanjanssens $
 * @package     Nooku_Server
 * @subpackage  Languages
 * @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
 */
?>

<?= @helper('behavior.keepalive') ?>
<?= @helper('behavior.validator') ?>

<script src="media://lib_koowa/js/koowa.js" />

<?= @template('com://admin/default.view.form.toolbar') ?>

<form action="" method="post" id="language-form" class="-koowa-form">
    <div class="form-content">
        <div class="grid_8">
    		<fieldset class="form-horizontal">
    			<legend><?= @text('Details') ?></legend>
    			<div class="control-group">
    			    <label class="control-label"><?= @text('Name') ?></label>
    			    <div class="controls">
    			        <input id="name_field" type="text" name="name" value="<?= $language->name ?>" />
    			    </div>
    			</div>
    			<div class="control-group">
    			    <label class="control-label"><?= @text('Native Name') ?></label>
    			    <div class="controls">
    			        <input id="native_field" type="text" name="native_name" value="<?= $language->native_name ?>" />
    			    </div>
    			</div>
    			<div class="control-group">
    			    <label class="control-label"><?= @text('Slug') ?></label>
    			    <div class="controls">
    			        <input id="alias_field" type="text" name="slug" value="<?= $language->slug ?>" />
    			    </div>
    			</div>
    			<div class="control-group">
    			    <label class="control-label"><?= @text('ISO Code') ?></label>
    			    <div class="controls">
    			        <input type="text" name="iso_code" type="text" value="<?= $language->iso_code ?>" />
    			    </div>
    			</div>
    		</fieldset>
    	</div>
	</div>
</form><commit_msg>Added enabled and primary input fields re #215<commit_after><?
/**
 * @version     $Id: form.php 3029 2011-10-09 13:07:11Z johanjanssens $
 * @package     Nooku_Server
 * @subpackage  Languages
 * @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
 */
?>

<?= @helper('behavior.keepalive') ?>
<?= @helper('behavior.validator') ?>

<script src="media://lib_koowa/js/koowa.js" />

<?= @template('com://admin/default.view.form.toolbar') ?>

<form action="" method="post" class="-koowa-form">
    <input type="hidden" name="enabled" value="0" />
    <input type="hidden" name="primary" value="0" />
    
    <div class="form-content">
        <div class="grid_8">
    		<fieldset class="form-horizontal">
    			<legend><?= @text('Details') ?></legend>
    			<div class="control-group">
    			    <label class="control-label"><?= @text('Name') ?></label>
    			    <div class="controls">
    			        <input id="name_field" type="text" name="name" value="<?= $language->name ?>" />
    			    </div>
    			</div>
    			<div class="control-group">
    			    <label class="control-label"><?= @text('Native Name') ?></label>
    			    <div class="controls">
    			        <input id="native_field" type="text" name="native_name" value="<?= $language->native_name ?>" />
    			    </div>
    			</div>
    			<div class="control-group">
    			    <label class="control-label"><?= @text('Slug') ?></label>
    			    <div class="controls">
    			        <input id="alias_field" type="text" name="slug" value="<?= $language->slug ?>" />
    			    </div>
    			</div>
    			<div class="control-group">
    			    <label class="control-label"><?= @text('ISO Code') ?></label>
    			    <div class="controls">
    			        <input type="text" name="iso_code" type="text" value="<?= $language->iso_code ?>" />
    			    </div>
    			</div>
    			<div class="control-group">
    			    <label class="control-label" for="enabled"><?= @text('Enabled') ?></label>
    			    <div class="controls">
    			        <input type="checkbox" name="enabled" value="1" <?= $language->enabled ? 'checked="checked"' : '' ?> />
    			    </div>
    			</div>
    			<div class="control-group">
    			    <label class="control-label" for="primary"><?= @text('Primary') ?></label>
    			    <div class="controls">
    			        <input type="checkbox" name="primary" value="1" <?= $language->primary ? 'checked="checked"' : '' ?> />
    			    </div>
    			</div>
    		</fieldset>
    	</div>
	</div>
</form>
{'fraction_non_alphanumeric': 0.2132951793968743, 'fraction_numerical': 0.012106537530266344, 'mean_word_length': 2.5527756059421423, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 139, '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': '680609', 'n_tokens_mistral': 1674, 'n_tokens_neox': 1561, 'n_words': 279}