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
91
<?php
/**
 * @version     $Id$
 * @category    Nooku
 * @package     Nooku_Server
 * @subpackage  Categories
 * @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.validator') ?>

<!--
<script src="media://lib_koowa/js/koowa.js" />
<style src="media://lib_koowa/css/koowa.css" />
-->

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

<form action="" method="post" class="-koowa-form" id="category-form">
    <div class="form-body">
        <div class="title">
            <input class="required" type="text" name="title" maxlength="255" value="<?= $category->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( 'Description' ); ?></label>
                    <div class="controls">
                        <textarea rows="9" name="description"><?= $category->description; ?></textarea>
                    </div>
                </div>
            </fieldset>
            <fieldset class="form-horizontal">
                <legend><?= @text( 'Image' ); ?></legend>
                <div class="control-group">
                    <label class="control-label" for="image"><?= @text( 'Image' ); ?></label>
                    <div class="controls">
                        <?= @helper('image.listbox', array('name' => 'image')); ?>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="image_position"><?= @text( 'Image Position' ); ?></label>
                    <div class="controls">
                        <?=  @helper('image.position'); ?>
                    </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' => $category->enabled)) ?>
                </div>
            </div>
            <? $section = $category->id ? $category->section_id : $state->section ?>
            <? if(substr($section, 0, 3) != 'com' || $section =='com_content') : ?>
            <div class="control-group">
                <label class="control-label" for="section_id"><?= @text('Section') ?></label>
                <div class="controls">
                    <input type="hidden" name="old_parent" value="<?= $category->section_id ?>" />
                    <?= @helper('listbox.sections', array(
                        'name' => 'section_id',
                        'selected' => $category->section_id,
                        'attribs' => array('id' => 'section_id', 'class' => 'required'),
                        'deselect' => false,
                        'uncategorised' => false
                    )) ?>
                </div>
            </div>
            <? else : ?>
                <input type="hidden" name="section_id" value="<?= $section ?>" />
            <? endif ?>
            <div class="control-group">
                <label class="control-label" for="access"><?= @text('Access Level') ?></label>
                <div class="controls">
                    <?= @helper('listbox.access', array('name' => 'access', 'state' => $category, 'deselect' => false)) ?>
                </div>
            </div>
        </fieldset>
    </div>
</form>
Ajax-loader Loading, please wait...