<h2><?= ucfirst($this->localization['nowa_kategoria_galerii']);?></h2>
<form id="new_gallery_category_form" method="post" action="">
    <fieldset>
            <p>
                    <label for="gc_name"><?= ucfirst($this->localization['nazwa']);?> *</label>
                    <input id="gc_name" name="name" class="required" size="100" maxlength="100" value="<?php echo set_value('name'); ?>"/>
            </p>
            <p>
                    <label for="gc_lang_id"><?= ucfirst($this->localization['jezyk']);?> *</label>
                    <?php
                        $lang_id_html_attributes = 'id="gc_lang_id" class="required"';
                        echo form_dropdown('lang_id',$languages,set_value('lang_id'),$lang_id_html_attributes);
                    ?>
            </p>
            <p>
                    <label for="gc_title"><?= ucfirst($this->localization['tytul']);?></label>
                    <input id="gc_title" name="title" class="" size="100" value="<?php echo set_value('title'); ?>"/>
            </p>
            <p>
                    <label for="gc_keywords"><?= ucfirst($this->localization['slowa_kluczowe']);?></label>
                    <input id="gc_keywords" name="keywords" class="" size="100" maxlength="200" value="<?php echo set_value('keywords'); ?>"/>
            </p>
            <p>
                    <label for="gc_shortdesc"><?= ucfirst($this->localization['opis']);?></label>
                    <textarea cols="100" rows="10" class="" name="shortdesc" id="gc_shortdesc"><?php echo set_value('shortdesc'); ?></textarea>
            </p>
            <p>
                    <label for="gc_shortdesc"><?= ucfirst($this->localization['aktywnosc']);?> *</label>
                    <?php
                        $active_html_attributes = set_value('active') ? "checkded='checked'" : '';
                        echo '<input type="checkbox" name="active" '.$active_html_attributes.'/>';
                    ?>
            </p>
            <p>
                * - <?= ($this->localization['pole_wymagane']) ?><br /><br />
            </p>
            <p>
                    <input class="submit" type="submit" value="<?= ucfirst($this->localization['zatwierdz']);?>"/>
                    &nbsp;&nbsp;&nbsp;<input type="button" value="<?= ucfirst($this->localization['anuluj']);?>" onClick="location.href='/admin/galleries'"/>
            </p>
    </fieldset>
</form>
<script type="text/javascript">
$(document).ready(function() {
    $("#new_gallery_category_form").validate();
});
</script>