<?php

class Todojsc_Form_User_Edit extends Todojsc_Form_Abstract
{
    protected $_username;
    public function setUser($username)
    {
        $this->_username = $username;
        $logger = Zend_Registry::get('log');
        $logger->log('User name:'.$this->_username, Zend_Log::INFO);
    }
    
    public function init()
    {
        $this->setAction('edit');
        $this->setMethod('post');
        $this->addElement('hidden', 'uid', '');
        $this->addElement('text', 'name', array('label' => 'Name:'));
        $this->addElement('text', 'gender', array('label' => 'Gender:'));
        $this->addElement('text', 'vat_nr', array('label' => 'Vat Nr:'));
        $this->addElement('text', 'social_nr', array('label' => 'Social Nr:'));
        $this->addElement('text', 'birthday', array('label' => 'Birthday:'));
        $this->addElement('text', 'birthplace_city', array('label' => 'Birthplace (City):'));
        $this->addElement('text', 'birthplace_province', array('label' => 'Birthplace (Province):'));
        $this->addElement('text', 'iban', array('label' => 'IBAN:'));
        $this->addElement('text', 'notes', array('label' => 'Notes:'));
        $this->addElement('submit', 'submit', array('label' => 'Save changes', 'ignore' => true));
    }


}

