<commit_before><?
/**
 * @version		$Id$
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Weblinks
 * @copyright	Copyright (C) 2011 - 2012 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.validator'); ?>

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

<!--
<script src="media://lib_koowa/js/koowa.js" />
<style src="media://lib_koowa/css/koowa.css" />
-->
<form action="" method="post" id="weblink-form" class="-koowa-form">
	<input type="hidden" name="id" value="<?= $weblink->id ?>" />
	<input type="hidden" name="published" value="0" />
	
	<div class="form-body">
		<div class="title">
		    <input class="required" type="text" name="title" maxlength="255" value="<?= $weblink->title ?>" placeholder="<?= @text('Title') ?>" />
		</div>
	    
	    <div class="form-content">
	        <fieldset class="form-horizontal">
	        	<legend><?= @text( 'Details' ); ?></legend>
				<div class="control-group">
				    <label class="control-label" for=""><?= @text( 'URL' ); ?></label>
				    <div class="controls">
				        <input class="required validate-url" type="text" name="url" value="<?= $weblink->url; ?>" maxlength="250" />
				    </div>
				</div>
				<div class="control-group">
				    <label class="control-label" for=""><?= @text( 'Description' ); ?></label>
				    <div class="controls">
				        <textarea rows="9" name="description"><?= $weblink->description; ?></textarea>
				    </div>
				</div>
			</fieldset>
		</div>
	</div>
	<div class="sidebar">
		<div class="scrollable">
			<fieldset class="form-horizontal">
				<legend><?= @text( 'Publish' ); ?></legend>
				<div class="control-group">
				    <label class="control-label" for="published"><?= @text( 'Published' ) ?></label>
				    <div class="controls">
				        <input type="checkbox" name="published" value="1" <?= $weblink->published ? 'checked="checked"' : '' ?> />
				    </div>
				</div>
				<div class="control-group">
				    <label class="control-label" for=""><?= @text( 'Slug' ); ?></label>
				    <div class="controls">
				        <input type="text" name="slug" maxlength="255" value="<?= $weblink->slug; ?>" placeholder="<?= @text( 'Slug' ); ?>" />
				    </div>
				</div>
			</fieldset>
	        <fieldset class="categories group">
	            <legend><?= @text('Category') ?></legend>
	            <div class="control-group">
	                <?= @helper('listbox.radiolist', array(
	                		'list'     => @service('com://admin/categories.model.categories')->sort('title')->table('weblinks')->getList(),
	                		'selected' => $weblink->categories_category_id,
	                		'name'     => 'categories_category_id',
	                        'text'     => 'title',
	                	));
	                ?>
	            </div>
	        </fieldset>
        </div>
	</div>
</form><commit_msg>KModel::getList() had been renamed to KModel::getRowset()<commit_after><?
/**
 * @version		$Id$
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Weblinks
 * @copyright	Copyright (C) 2011 - 2012 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.validator'); ?>

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

<!--
<script src="media://lib_koowa/js/koowa.js" />
<style src="media://lib_koowa/css/koowa.css" />
-->
<form action="" method="post" id="weblink-form" class="-koowa-form">
	<input type="hidden" name="id" value="<?= $weblink->id ?>" />
	<input type="hidden" name="published" value="0" />
	
	<div class="form-body">
		<div class="title">
		    <input class="required" type="text" name="title" maxlength="255" value="<?= $weblink->title ?>" placeholder="<?= @text('Title') ?>" />
		</div>
	    
	    <div class="form-content">
	        <fieldset class="form-horizontal">
	        	<legend><?= @text( 'Details' ); ?></legend>
				<div class="control-group">
				    <label class="control-label" for=""><?= @text( 'URL' ); ?></label>
				    <div class="controls">
				        <input class="required validate-url" type="text" name="url" value="<?= $weblink->url; ?>" maxlength="250" />
				    </div>
				</div>
				<div class="control-group">
				    <label class="control-label" for=""><?= @text( 'Description' ); ?></label>
				    <div class="controls">
				        <textarea rows="9" name="description"><?= $weblink->description; ?></textarea>
				    </div>
				</div>
			</fieldset>
		</div>
	</div>
	<div class="sidebar">
		<div class="scrollable">
			<fieldset class="form-horizontal">
				<legend><?= @text( 'Publish' ); ?></legend>
				<div class="control-group">
				    <label class="control-label" for="published"><?= @text( 'Published' ) ?></label>
				    <div class="controls">
				        <input type="checkbox" name="published" value="1" <?= $weblink->published ? 'checked="checked"' : '' ?> />
				    </div>
				</div>
				<div class="control-group">
				    <label class="control-label" for=""><?= @text( 'Slug' ); ?></label>
				    <div class="controls">
				        <input type="text" name="slug" maxlength="255" value="<?= $weblink->slug; ?>" placeholder="<?= @text( 'Slug' ); ?>" />
				    </div>
				</div>
			</fieldset>
	        <fieldset class="categories group">
	            <legend><?= @text('Category') ?></legend>
	            <div class="control-group">
	                <?= @helper('listbox.radiolist', array(
	                		'list'     => @service('com://admin/categories.model.categories')->sort('title')->table('weblinks')->getRowset(),
	                		'selected' => $weblink->categories_category_id,
	                		'name'     => 'categories_category_id',
	                        'text'     => 'title',
	                	));
	                ?>
	            </div>
	        </fieldset>
        </div>
	</div>
</form>
{'fraction_non_alphanumeric': 0.2252911813643927, 'fraction_numerical': 0.006988352745424293, 'mean_word_length': 2.710493827160494, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 0, '>': 193, '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': '3957551', 'n_tokens_mistral': 2211, 'n_tokens_neox': 1956, 'n_words': 364}