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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
/**
 * @version     $Id$
 * @category    Nooku
 * @package     Nooku_Server
 * @subpackage  Newsfeeds
 * @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" />

<script>
if(Form && Form.Validator) {
    Form.Validator.add('validate-count', {
        errorMsg: <?= json_encode(@text('Please enter a higher number than 0.')) ?>,
        test: function(field){
            return field.get('value').toInt() > 0;
        }
    });
}
</script>

<form action="" method="post" id="newsfeed-form" class="-koowa-form">
    <div class="form-body">
        <div class="title">
            <input class="required" type="text" name="title" maxlength="255" value="<?= $newsfeed->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="link"><?= @text( 'Link' ) ?></label>
                <div class="controls">
                    <input class="required validate-url" type="text" name="link" value="<?= $newsfeed->link ?>" />
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="numarticles"><?= @text( 'Number of Articles' ) ?></label>
                <div class="controls">
                    <input class="required validate-integer validate-count" type="text" name="numarticles" value="<?= $newsfeed->numarticles ?>" />
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="cache_time"><?= @text( 'Cache time' ) ?></label>
                <div class="controls">
                    <input class="required validate-integer validate-count" type="text" name="cache_time" value="<?= $newsfeed->cache_time ?>" />
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="rtl"><?= @text( 'RTL feed' ) ?></label>
                <div class="controls controls-radio">
                    <?= @helper('select.booleanlist', array('name' => 'rtl', 'selected' => $newsfeed->rtl)) ?>
                </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="enabled"><?= @text( 'Published' ) ?></label>
                <div class="controls controls-radio">
                    <?= @helper('select.booleanlist', array('name' => 'enabled', 'selected' => $newsfeed->enabled)) ?>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="catid"><?= @text( 'Category' ) ?></label>
                <div class="controls">
                    <?= @helper('listbox.category', array('name' => 'catid', 'selected' => $newsfeed->catid, 'attribs' => array('id' => 'catid', 'class' => 'required'))) ?>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="slug"><?= @text( 'Slug' ); ?></label>
                <div class="controls">
                    <input type="text" name="slug" maxlength="255" value="<?= $newsfeed->slug; ?>" placeholder="<?= @text( 'Slug' ); ?>" />
                </div>
            </div>
        </div>
    </div>
</form>
Ajax-loader Loading, please wait...