Nooku Server is an open source project powered by Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

nooku-server

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?
/**
 * @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
 */

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

<? @helper('behavior.tooltip'); ?>
<?= @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 ?>" />

    <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">
        <fieldset class="form-horizontal">
            <legend><?= @text( 'Publish' ); ?></legend>
            <div class="control-group">
                <label class="control-label" for=""><?= @text( 'Published' ) ?></label>
                <div class="controls controls-radio">
                    <?= @helper('select.booleanlist', array('name' => 'enabled', 'selected' => $weblink->enabled)) ?>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for=""><?= @text( 'Category' ); ?></label>
                <div class="controls">
                    <?= @helper('listbox.category', array('name' => 'catid', 'selected' => $weblink->catid, 'attribs' => array('id' => 'catid', 'class' => 'required'))) ?>
                </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>
    </div>
</form>
Ajax-loader Loading, please wait...