public function init()
 {
     parent::init();
     $username = new \Zend_Form_Element_Text('username', array('label' => 'User name', 'required' => true));
     $password = new \Zend_Form_Element_Password('password', array('label' => 'Password', 'required' => true));
     $this->addElements(array($username, $password, $this->createSubmitElement(array('label' => 'Log in'))));
 }
 public function init()
 {
     parent::init();
     $identity = new \Zend_Form_Element_Hidden('identity', array('decorators' => array('ViewHelper')));
     $isDryRun = new \Zend_Form_Element_Checkbox('is_dry_run', array('attribs' => array('checked' => 'checked'), 'description' => 'The job will run normally, but avoid making' . ' permanent changes to your data.', 'label' => 'Is this a "dry run"?'));
     $this->setMethod('POST')->addElements(array($identity, $isDryRun, $this->createSubmitElement(array('label' => 'Run job', 'order' => PHP_INT_MAX))));
 }
 public function init()
 {
     parent::init();
     $id = new \Zend_Form_Element_Hidden('id', array('decorators' => array('ViewHelper')));
     $facilityGroup = new \Zend_Form_Element_Select('facility_group', array('description' => 'Building names listed here are from the latest' . ' building configuration.', 'label' => 'Which building is this facility a member of?', 'multiOptions' => array()));
     $this->addElements(array($id, $facilityGroup, $this->createSubmitElement(array('label' => 'Save'))));
 }
 public function init()
 {
     parent::init();
     $id = new \Zend_Form_Element_Hidden('id', array('decorators' => array('ViewHelper')));
     $through = new \Tillikum_Form_Element_Date('through', array('label' => 'Billed through'));
     $this->addElements(array($id, $through, $this->createSubmitElement(array('label' => 'Next...'))));
 }
 public function init()
 {
     parent::init();
     $typeId = new \Zend_Form_Element_Select('type_id', array('label' => 'Email type', 'multiOptions' => array(), 'required' => true));
     $value = new \Zend_Form_Element_Text('value', array('filters' => array('StringTrim'), 'label' => 'Email address', 'required' => true, 'validators' => array('EmailAddress')));
     $isPrimary = new \Zend_Form_Element_Checkbox('is_primary', array('label' => 'Is this the person’s primary email address?'));
     $this->addElements(array($typeId, $value, $isPrimary));
 }
 public function init()
 {
     parent::init();
     $text = new \Zend_Form_Element_Textarea('text', array('description' => 'You can copy from most spreadsheet software' . ' and paste it into this box. We will convert' . ' it into a table for use in Tillikum on the' . ' next screen.', 'label' => 'Text input'));
     $file = new \Zend_Form_Element_File('file', array('description' => 'You may also upload a “Comma-Separated' . ' Values” file here. We will convert it' . ' into a table for use in Tillikum on' . ' the next screen.', 'label' => 'File upload'));
     $hasHeader = new \Zend_Form_Element_Checkbox('has_header', array('description' => 'If the first row of your data contains titles' . ' (headers) for your data, check this box and' . ' we will use them to assist us with the' . ' data conversion.', 'label' => 'First row contains column titles'));
     $this->addElements(array($text, $file, $hasHeader, $this->createSubmitElement(array('label' => 'Next…'))));
 }
 public function init()
 {
     parent::init();
     $name = new Zend_Form_Element_Text('name', array('label' => 'Name'));
     $capacity = new Zend_Form_Element_Text('capacity', array('label' => 'Capacity', 'validators' => array(new Zend_Validate_Int())));
     $type = new Zend_Form_Element_Select('ftype', array('label' => 'Facility Type', 'required' => true, 'multiOptions' => array('building' => 'Building', 'community' => 'Community', 'floor' => 'Floor', 'homestay' => 'Homestay Family', 'room' => 'Room', 'suite' => 'Suite', 'wing' => 'Wing')));
     $submit = new Tillikum_Form_Element_Submit('submit');
     $this->addElements(array($name, $capacity, $type, $submit));
 }
 public function init()
 {
     parent::init();
     $id = new \Zend_Form_Element_Text('id', array('label' => 'Tag ID', 'required' => true));
     $name = new \Zend_Form_Element_Text('name', array('label' => 'Tag name', 'required' => true));
     $isActive = new \Zend_Form_Element_Checkbox('is_active', array('description' => 'Deactivating tags will hide them from menus' . ' around the application, but do not affect' . ' users who are currently tagged.', 'label' => 'Is this tag active?', 'value' => true));
     $warning = new \Zend_Form_Element_Text('warning', array('description' => 'The text entered here, if any, will appear' . ' when a person is tagged with this tag.', 'label' => 'Warning text'));
     $this->addElements(array($id, $name, $isActive, $warning, $this->createSubmitElement(array('label' => 'Save'))));
 }
 public function init()
 {
     parent::init();
     $mapSubform = new Zend_Form_SubForm(array('decorators' => array(array(array('Map' => 'ViewScript'), array('viewScript' => 'partials/mass_map.phtml')), array('HtmlTag', array('tag' => 'table')), array(array('MapErrors' => 'ViewScript'), array('viewScript' => 'partials/mass_map_errors.phtml'))), 'order' => 0));
     $submit = new Tillikum_Form_Element_Submit('submit', array('label' => 'Next…', 'order' => 1));
     $this->addSubForm($mapSubform, 'map');
     $this->addElements(array($submit));
     $this->setMethod('POST')->setDecorators(array('FormElements', 'Form'));
 }
 public function init()
 {
     parent::init();
     $input = new Zend_Form_Element_Textarea('textinput', array('label' => 'Tab-separated input', 'description' => 'This input is generated automatically if you perform a copy-paste operation from most spreadsheet software.', 'required' => true));
     $is_include_header = new Zend_Form_Element_Checkbox('is_include_header', array('label' => 'Does the spreadsheet include column headers?'));
     $submit = new Tillikum_Form_Element_Submit('submit');
     $submit->setLabel('Next…');
     $this->setMethod('POST')->addElements(array($input, $is_include_header, $submit));
 }
 public function init()
 {
     parent::init();
     $strategy = new \Zend_Form_Element_Select('strategy', array('label' => 'Strategy', 'multiOptions' => array(), 'required' => true));
     $code = new \Zend_Form_Element_Text('code', array('required' => true, 'label' => 'Code', 'filters' => array('StringTrim')));
     $description = new \Zend_Form_Element_Text('description', array('label' => 'Description', 'filters' => array('StringTrim')));
     $start = new \Tillikum_Form_Element_Date('start', array('label' => 'Start date', 'required' => true));
     $end = new \Tillikum_Form_Element_Date('end', array('label' => 'End date', 'required' => true));
     $this->addElements(array($strategy, $code, $description, $start, $end));
 }
 public function init()
 {
     parent::init();
     $id = new \Zend_Form_Element_Hidden('id', array('decorators' => array('ViewHelper')));
     $mealplanId = new \Zend_Form_Element_Select('mealplan_id', array('label' => 'Meal plan', 'multiOptions' => array(), 'required' => true));
     $start = new \Tillikum_Form_Element_Date('start', array('label' => 'Start date', 'required' => true));
     $end = new \Tillikum_Form_Element_Date('end', array('label' => 'End date', 'required' => true));
     $note = new \Zend_Form_Element_Textarea('note', array('attribs' => array('class' => 'short'), 'label' => 'Notes'));
     $this->addElements(array($id, $mealplanId, $start, $end, $note, $this->createSubmitElement(array('label' => 'Next...'))));
 }
 public function init()
 {
     parent::init();
     $ruleId = new \Zend_Form_Element_Select('rule_id', array('label' => 'Rule', 'required' => true));
     $currency = new \Zend_Form_Element_Hidden('currency', array('decorators' => array('ViewHelper'), 'required' => true, 'value' => 'USD'));
     $amount = new \Tillikum_Form_Element_Number('amount', array('attribs' => array('min' => '-9999.99', 'max' => '9999.99', 'step' => '0.01', 'title' => 'Value must be precise to no more than 2' . ' decimal places'), 'label' => 'Amount', 'required' => true, 'validators' => array('Float', new \Zend_Validate_Between(-9999.99, 9999.99))));
     $effective = new \Tillikum_Form_Element_Date('effective', array('label' => 'Effective date', 'required' => true, 'value' => date('Y-m-d')));
     $description = new \Zend_Form_Element_Textarea('description', array('attribs' => array('class' => 'short'), 'label' => 'Description', 'required' => true, 'filters' => array('StringTrim')));
     $this->setMethod('POST')->addElements(array($ruleId, $currency, $amount, $effective, $description, $this->createSubmitElement(array('label' => 'Create'))));
 }
 public function init()
 {
     parent::init();
     $personId = new \Zend_Form_Element_Hidden('person_id', array('decorators' => array('ViewHelper'), 'required' => true));
     $contractId = new \Zend_Form_Element_Select('contract_id', array('label' => 'Contract', 'required' => true));
     $signedAt = new \Tillikum_Form_Element_Date('signed_at', array('description' => 'Determines age at time of signing. Leave blank for today’s date.', 'label' => 'When was the contract originally signed?'));
     $isCosigned = new \Zend_Form_Element_Checkbox('is_cosigned', array('label' => 'Is the contract cosigned?'));
     $isCancelled = new \Zend_Form_Element_Checkbox('is_cancelled', array('label' => 'Is the contract cancelled?'));
     $this->addElements(array($personId, $contractId, $signedAt, $isCosigned, $isCancelled, $this->createSubmitElement(array('label' => 'Sign'))));
 }
 public function init()
 {
     parent::init();
     $id = new \Zend_Form_Element_Hidden('id', array('decorators' => array('ViewHelper')));
     $facilityGroupId = new \Zend_Form_Element_Hidden('facilitygroup_id', array('decorators' => array('ViewHelper')));
     $start = new \Tillikum_Form_Element_Date('start', array('label' => 'Start date', 'required' => true));
     $end = new \Tillikum_Form_Element_Date('end', array('label' => 'End date', 'required' => true));
     $name = new \Zend_Form_Element_Text('name', array('label' => 'Name', 'required' => true, 'filters' => array('StringTrim')));
     $gender = new \Zend_Form_Element_Select('gender', array('label' => 'Gender', 'required' => true, 'multiOptions' => array('F' => 'Female', 'M' => 'Male', 'U' => 'Ungendered'), 'value' => 'U'));
     $this->addElements(array($id, $facilityGroupId, $start, $end, $name, $gender, $this->createSubmitElement(array('label' => 'Save'))));
 }
 public function init()
 {
     parent::init();
     $date = new \Tillikum_Form_Element_Date('date', array('label' => 'Facility configuration date', 'required' => true));
     $facilityGroupIds = new \Zend_Form_Element_Multiselect('facilitygroup_ids', array('label' => 'Facility group', 'multiOptions' => array()));
     $gender = new \Zend_Form_Element_Text('gender', array('label' => 'Gender'));
     $capacity = new \Tillikum_Form_Element_Number('capacity', array('attribs' => array('min' => 0), 'label' => 'Capacity'));
     $availableSpace = new \Tillikum_Form_Element_Number('available_space', array('attribs' => array('min' => 0), 'label' => 'Spaces available (at minimum)'));
     $tags = new \Zend_Form_Element_Multiselect('tags', array('label' => 'Tags', 'multiOptions' => array()));
     $this->addElements(array($date, $facilityGroupIds, $gender, $capacity, $availableSpace, $tags, $this->createSubmitElement(array('label' => 'Search'))));
 }
 public function init()
 {
     parent::init();
     $checkedId = 'id' . uniqid();
     $id = new \Zend_Form_Element_Hidden('id', array('decorators' => array('ViewHelper'), 'required' => false));
     $deleteMe = new \Zend_Form_Element_Checkbox('delete_me', array('attribs' => array('ng-model' => $checkedId), 'description' => 'The removal will occur once you submit this form.', 'label' => 'Remove this rate?'));
     $ruleId = new \Zend_Form_Element_Select('rule_id', array('attribs' => array('ng-readonly' => $checkedId), 'label' => 'Rule', 'multiOptions' => array('' => ''), 'required' => true));
     $start = new \Tillikum_Form_Element_Date('start', array('attribs' => array('ng-readonly' => $checkedId), 'label' => 'Start date', 'required' => true));
     $end = new \Tillikum_Form_Element_Date('end', array('attribs' => array('ng-readonly' => $checkedId), 'label' => 'End date', 'required' => true));
     $this->addElements(array($id, $deleteMe, $ruleId, $start, $end, $this->createSubmitElement(array('label' => 'Save'))));
 }
 public function init()
 {
     parent::init();
     $id = new \Zend_Form_Element_Hidden('id', array('decorators' => array('ViewHelper')));
     $facilityId = new \Zend_Form_Element_Hidden('facility_id', array('decorators' => array('ViewHelper')));
     $start = new \Tillikum_Form_Element_Date('start', array('label' => 'Start date', 'required' => true));
     $end = new \Tillikum_Form_Element_Date('end', array('label' => 'End date', 'required' => true));
     $description = new \Zend_Form_Element_Text('description', array('label' => 'Description', 'filters' => array('StringTrim')));
     $space = new \Tillikum_Form_Element_Number('space', array('attribs' => array('min' => 0), 'filters' => array('Int'), 'label' => 'Spaces to hold', 'required' => true));
     $gender = new \Zend_Form_Element_Select('gender', array('label' => 'Gender of hold', 'multiOptions' => array('F' => 'Female', 'M' => 'Male', 'U' => 'Ungendered'), 'value' => 'U'));
     $this->addElements(array($id, $facilityId, $start, $end, $space, $gender, $description, $this->createSubmitElement(array('label' => 'Save'))));
 }
 public function init()
 {
     parent::init();
     $id = new \Zend_Form_Element_Hidden('id', array('decorators' => array('ViewHelper')));
     $facilityId = new \Zend_Form_Element_Hidden('facility_id', array('decorators' => array('ViewHelper'), 'required' => true));
     $facilityName = new \Zend_Form_Element_Text('facility_name', array('ignore' => true, 'label' => 'Facility name'));
     $start = new \Tillikum_Form_Element_Date('start', array('label' => 'Start date', 'required' => true));
     $end = new \Tillikum_Form_Element_Date('end', array('label' => 'End date', 'required' => true));
     $checkinAt = new \Tillikum_Form_Element_Datetime('checkin_at', array('label' => 'Check-in date and time'));
     $checkoutAt = new \Tillikum_Form_Element_Datetime('checkout_at', array('label' => 'Check-out date and time'));
     $note = new \Zend_Form_Element_Textarea('note', array('attribs' => array('class' => 'short'), 'label' => 'Notes'));
     $this->addElements(array($id, $facilityId, $facilityName, $start, $end, $checkinAt, $checkoutAt, $note, $this->createSubmitElement(array('label' => 'Next...'))));
 }
 public function init()
 {
     parent::init();
     $id = new \Zend_Form_Element_Hidden('id', array('decorators' => array('ViewHelper')));
     $givenName = new \Zend_Form_Element_Text('given_name', array('filters' => array('StringTrim'), 'label' => 'Given name'));
     $middleName = new \Zend_Form_Element_Text('middle_name', array('filters' => array('StringTrim'), 'label' => 'Middle name'));
     $familyName = new \Zend_Form_Element_Text('family_name', array('filters' => array('StringTrim'), 'label' => 'Family name'));
     $displayName = new \Zend_Form_Element_Text('display_name', array('description' => 'This should be used if the person’s name' . ' should not be formatted' . ' “family, given middle”.', 'filters' => array('StringTrim'), 'label' => 'Display name'));
     $gender = new \Zend_Form_Element_Text('gender', array('filters' => array('StringTrim'), 'label' => 'Gender'));
     $tags = new \Zend_Form_Element_Multiselect('tags', array('label' => 'Tags', 'multiOptions' => array()));
     $note = new \Zend_Form_Element_Textarea('note', array('attribs' => array('class' => 'short'), 'filters' => array('StringTrim'), 'label' => 'Notes'));
     $this->addElements(array($id, $givenName, $middleName, $familyName, $displayName, $gender, $tags, $note, $this->createSubmitElement(array('label' => 'Save'))));
 }
 public function init()
 {
     parent::init();
     $id = new \Zend_Form_Element_Hidden('id', array('decorators' => array('ViewHelper')));
     $facilityId = new \Zend_Form_Element_Hidden('facility_id', array('decorators' => array('ViewHelper')));
     $start = new \Tillikum_Form_Element_Date('start', array('label' => 'Start date', 'required' => true));
     $end = new \Tillikum_Form_Element_Date('end', array('label' => 'End date', 'required' => true));
     $name = new \Zend_Form_Element_Text('name', array('label' => 'Name', 'required' => true, 'filters' => array('StringTrim')));
     $gender = new \Zend_Form_Element_Select('gender', array('label' => 'Gender', 'required' => true, 'multiOptions' => array('F' => 'Female', 'M' => 'Male', 'U' => 'Ungendered'), 'value' => 'U'));
     $capacity = new \Tillikum_Form_Element_Number('capacity', array('attribs' => array('min' => 0), 'label' => 'Capacity', 'required' => true, 'filters' => array('Int')));
     $note = new \Zend_Form_Element_Textarea('note', array('attribs' => array('class' => 'short'), 'label' => 'Notes'));
     $defaultBillingRule = new \Zend_Form_Element_Select('default_billing_rule', array('label' => 'Default billing rule'));
     $tags = new \Zend_Form_Element_Multiselect('tags', array('label' => 'Tags'));
     $this->addElements(array($id, $facilityId, $start, $end, $name, $gender, $capacity, $note, $defaultBillingRule, $tags, $this->createSubmitElement(array('label' => 'Save'))));
 }
 public function init()
 {
     parent::init();
     $name = new \Tillikum_Form_Element_Search('name', array('attribs' => array('placeholder' => 'Type the name of a facility'), 'description' => 'A facility is anything that can be booked,' . ' such as a room.', 'label' => 'Facility name'));
     $this->addElements(array($name));
 }
 public function init()
 {
     parent::init();
     $format = new \Zend_Form_Element_Select('format', array('label' => 'In which format do you want to see the report data?', 'multiOptions' => array('csv' => 'CSV (download a file, open with spreadsheet software)', 'html' => 'HTML (view report in a table in your browser)'), 'required' => true));
     $this->setMethod('GET')->addElements(array($format, $this->createSubmitElement(array('label' => 'Generate report', 'order' => PHP_INT_MAX))));
 }
 public function init()
 {
     parent::init();
     $search = new \Tillikum_Form_Element_Search('search', array('attribs' => array('placeholder' => 'Person’s name or identifier'), 'label' => 'Search'));
     $this->setMethod('GET')->addElements(array($search, $this->createSubmitElement(array('label' => 'Search'))));
 }
 public function init()
 {
     parent::init();
     $description = new \Zend_Form_Element_Text('description', array('label' => 'Description', 'required' => true));
     $this->setMethod('POST')->addElements(array($description, $this->createSubmitElement(array('label' => 'Save', 'order' => PHP_INT_MAX))));
 }
 public function init()
 {
     parent::init();
     $type = new \Zend_Form_Element_Select('type', array('label' => 'Which type of facility configuration do you want to add?', 'multiOptions' => self::$typeOptions, 'required' => true));
     $this->addElements(array($type, $this->createSubmitElement(array('label' => 'Next...'))));
 }
 public function init()
 {
     parent::init();
     $name = new \Tillikum_Form_Element_Search('name', array('attribs' => array('placeholder' => 'Type the name of a facility group'), 'description' => 'A facility group is a container for facilities,' . ' such as a building.', 'label' => 'Find a facility group'));
     $this->addElements(array($name));
 }