<?php
/*
 * Copyright (c) 2013, webvariants GbR, http://www.webvariants.de
 *
 * This file is released under the terms of the MIT license. You can find the
 * complete text in the attached LICENSE file or online at:
 *
 * http://www.opensource.org/licenses/mit-license.php
 */

$request = $this->getRequest();
$pos     = $request->post('article_position', 'int', $maxPosition+1);
$name    = $request->post('article_name', 'string', '');

?>
<tr class="sly-active">
	<td class="sly-col-icon sly-icon"><?php echo sly_Util_HTML::getSpriteLink('', t('add_article'), 'article') ?></td>
	<td class="sly-col-name sly-has-input" colspan="2"><div><input class="sly-form-text" type="text" name="article_name" value="<?php echo sly_html($name) ?>" autofocus="autofocus" required="required" placeholder="<?php echo ht('article_name') ?>" /></div></td>
	<td class="sly-col-pos sly-has-input"><div><input class="sly-form-text" type="number" name="article_position" min="1" max="<?php echo $maxPosition+1 ?>" value="<?php echo $pos ?>" /></div></td>
	<td class="sly-col-status sly-has-input"><div><input type="submit" name="do_add_article" value="<?php echo t('add_article') ?>" class="sly-form-submit" /></div></td>
</tr>
