Ejemplo n.º 1
0
 public function initialize($entity = null, $user_options = array())
 {
     $fit = new EveElement\Select('fit_id', new ChoiceList\CharacterFit($this->session->get('auth')));
     $fit->setLabel('Character / Fit');
     $fit->addValidator(new Validator\PresenceOf(array('message' => 'This field is required')));
     $this->add($fit);
     $submit = new Element\Submit('list_add_submit');
     $submit->setLabel('Add to List');
     $submit->setUserOption('icon', 'plus');
     $submit->setAttribute('value', 'Add to List');
     $submit->setAttribute('class', 'btn btn-primary');
     $this->add($submit);
 }
Ejemplo n.º 2
0
 public function initialize($entity = null, $user_options = array())
 {
     $mission = new EveElement\Select('mission', new ChoiceList\Mission());
     $mission->setLabel('Choose a mission');
     $mission->addValidator(new Validator\PresenceOf(array('message' => 'This field is required')));
     $this->add($mission);
     $submit = new Element\Submit('mission_submit');
     $submit->setLabel('Go');
     $submit->setUserOption('icon', 'plus');
     $submit->setAttribute('value', 'Go');
     $submit->setAttribute('class', 'btn btn-primary');
     $this->add($submit);
 }
Ejemplo n.º 3
0
 public function initialize($entity = null, $user_options = array())
 {
     $character = new EveElement\Select('character_id', new ChoiceList\Character($this->session->get('auth')));
     $character->setLabel('Character name');
     $character->addValidator(new Validator\PresenceOf(array('message' => 'This field is required')));
     $this->add($character);
     $data_string = new Element\Text('data_string');
     $data_string->setLabel('Fit Data');
     $data_string->addValidator(new Validator\PresenceOf(array('message' => 'This field is required')));
     $this->add($data_string);
     $submit = new Element\Submit('submit');
     $submit->setLabel('Save');
     $submit->setUserOption('icon', 'floppy-o');
     $submit->setAttribute('value', 'Save');
     $submit->setAttribute('class', 'btn btn-primary');
     $this->add($submit);
 }