Пример #1
0
 public function __construct()
 {
     parent::__construct();
     $this->compact = true;
     $this->labelWidth = 3;
     $this->controlWidth = 9;
     $this->addText('name', 'Name')->addTextArea('description', 'Description', 5)->addButton('submit', 'Add', 'btn-primary');
 }
Пример #2
0
 public function __construct($name = null, $options = array())
 {
     parent::__construct($name, $options);
     $this->compact = true;
     $this->labelWidth = 2;
     $this->controlWidth = 10;
     $this->addText('comment', 'Comment', false)->addButton('submit', 'Add', 'btn-primary');
 }
Пример #3
0
 public function __construct()
 {
     parent::__construct();
     $this->compact = true;
     $this->labelWidth = 4;
     $this->controlWidth = 8;
     $this->addText('name', 'Name')->addText('dnsSuffix', 'DNS Suffix')->addText('ipv6Address', 'IPv6 Address')->addText('tempIpv6Address', 'Temp IPv6 Address')->addText('localIpv6Address', 'Local IPv6 Address')->addText('physicalAddress', 'Physical Address')->addText('ipv4Address', 'IPv4 Address')->addText('networkMask', 'Network Mask')->addText('subnetMask', 'Subnet Mask')->addText('defaultGateway', 'Default Gateway')->addText('dhcpEnabled', 'DHCP Enabled')->addText('preferredDnsServer', 'Preferred DNS Server')->addText('alternameDnsServer', 'Alternate DNS Server')->addButton('submit', 'Add', 'btn-primary');
 }
Пример #4
0
 public function __construct()
 {
     parent::__construct();
     $this->compact = true;
     $this->labelWidth = 4;
     $this->controlWidth = 8;
     $this->addText('name', 'Domain Name')->addButton('submit', 'Add', 'btn-primary');
 }
Пример #5
0
 public function __construct()
 {
     parent::__construct();
     $this->compact = true;
     $this->labelWidth = 4;
     $this->controlWidth = 8;
     $this->addText('name', 'Name')->addTextArea('description', 'Description', 5)->addText('type', 'Type')->addText('supplier', 'Supplier')->addText('qtyInStock', 'Qty In Stock')->addText('reorderQty', 'Reorder Qty')->addButton('submit', 'Add', 'btn-primary');
 }
Пример #6
0
 public function __construct()
 {
     parent::__construct();
     $this->compact = true;
     $this->labelWidth = 4;
     $this->controlWidth = 8;
     $this->addText('name', 'Name')->addTextArea('description', 'Description', 5)->addSelect('color', 'Colour', array('#d00' => 'Red', '#daa520' => 'Amber', '#5cb85c' => 'Green', '#00d' => 'Blue', '#777' => 'Gray'))->addButton('submit', 'Add', 'btn-primary');
 }
Пример #7
0
 public function __construct()
 {
     parent::__construct();
     $this->compact = true;
     $this->labelWidth = 3;
     $this->controlWidth = 9;
     $this->addText('name', 'Name')->addTextArea('address', 'Address', 5)->addText('supportEmail', 'Support Email')->addText('websiteUrl', 'Website URL')->addButton('submit', 'Add', 'btn-primary');
 }
Пример #8
0
 public function __construct()
 {
     parent::__construct();
     $this->compact = true;
     $this->labelWidth = 4;
     $this->controlWidth = 8;
     $this->addText('name', 'Department Name')->addTextArea('description', 'Description', 5)->addText('phone', 'Telephone No')->addText('fax', 'Fax No')->addButton('submit', 'Add', 'btn-primary');
 }
Пример #9
0
 public function __construct()
 {
     parent::__construct();
     $this->compact = true;
     $this->labelWidth = 4;
     $this->controlWidth = 8;
     $this->addText('question', 'Question')->addTextArea('answer', 'Answer', 10)->addButton('submit', 'Add', 'btn-primary');
 }
Пример #10
0
 public function __construct($em)
 {
     parent::__construct();
     $this->compact = true;
     $this->labelWidth = 4;
     $this->controlWidth = 8;
     $this->addText('name', 'Name')->addText('version', 'Version')->addDoctrineSelect('manufacturer', 'Manufacture', $em, 'Cobalt\\Entity\\SoftwareManufacturer', 'name')->addDoctrineSelect('type', 'Type', $em, 'Cobalt\\Entity\\SoftwareType', 'name')->addDoctrineSelect('category', 'Category', $em, 'Cobalt\\Entity\\SoftwareCategory', 'name')->addButton('submit', 'Add', 'btn-primary');
 }
Пример #11
0
 public function __construct()
 {
     parent::__construct();
     $this->compact = true;
     $this->labelWidth = 4;
     $this->controlWidth = 8;
     $this->addText('name', 'Company Name')->addTextArea('address', 'Registered Address', 5)->addText('phone', 'Telephone No')->addText('fax', 'Fax No')->addButton('submit', 'Add', 'btn-primary');
 }
Пример #12
0
 public function __construct($em)
 {
     parent::__construct();
     $this->em = $em;
     $this->compact = true;
     $this->labelWidth = 4;
     $this->controlWidth = 8;
     $this->addText('username', 'Username', false, true)->addPassword('password', 'Password')->addText('displayName', 'Display Name')->addText('emailAddress', 'Email Address')->addText('telephoneNumber', 'Telephone Number')->addText('extensionNumber', 'Extension Number')->addText('mobileNumber', 'Mobile Number')->addDoctrineSelect('company', 'Company', $em, 'Cobalt\\Entity\\Company', 'name')->addDoctrineSelect('office', 'Office', $em, 'Cobalt\\Entity\\Office', 'name')->addDoctrineSelect('department', 'Department', $em, 'Cobalt\\Entity\\Department', 'name')->addDoctrineSelect('reportsTo', 'Reports To', $em, 'Cobalt\\Entity\\User', 'displayName')->addButton('submit', 'Add', 'btn-primary');
 }
Пример #13
0
 public function __construct($em)
 {
     parent::__construct();
     $this->compact = true;
     $this->labelWidth = 2;
     $this->controlWidth = 10;
     $this->setAttribute('class', 'form-horizontal');
     $this->addDoctrineSelect('consumable', 'Consumable', $em, 'Cobalt\\Entity\\Consumable', 'name')->addButton('submit', 'Add', 'btn-primary');
 }
Пример #14
0
 public function __construct($em)
 {
     parent::__construct();
     $this->compact = true;
     $this->labelWidth = 1;
     $this->controlWidth = 11;
     $this->setAttribute('class', 'form-horizontal');
     $this->addText('subject', 'Subject', true)->addDoctrineSelect('type', 'Type', $em, 'Cobalt\\Entity\\TicketType', 'name')->addDoctrineSelect('status', 'Status', $em, 'Cobalt\\Entity\\TicketStatus', 'name')->addDoctrineSelect('priority', 'Priority', $em, 'Cobalt\\Entity\\TicketPriority', 'name')->addDoctrineSelect('impact', 'Impact', $em, 'Cobalt\\Entity\\TicketImpact', 'name')->addDoctrineSelect('category', 'Category', $em, 'Cobalt\\Entity\\TicketCategory', 'name')->addDoctrineSelect('requestor', 'Requestor', $em, 'Cobalt\\Entity\\User', 'displayName')->addTextArea('problem', 'Problem', 5)->addFilteredDoctrineSelect('technician', 'Technician', $em, 'Cobalt\\Entity\\User', 'displayName', 'findTechnicians')->addTextArea('solution', 'Solution', 5)->addButton('submit', 'Add', 'btn-primary');
 }
Пример #15
0
 public function __construct($em)
 {
     parent::__construct();
     $this->em = $em;
     $this->compact = true;
     $this->labelWidth = 4;
     $this->controlWidth = 8;
     $this->addText('reference', 'Unique Reference')->addText('name', 'Name')->addDoctrineSelect('type', 'Type', $em, 'Cobalt\\Entity\\HardwareType', 'name')->addDoctrineSelect('status', 'Status', $em, 'Cobalt\\Entity\\HardwareStatus', 'name')->addText('model', 'Model')->addText('serialNumber', 'Serial Number')->addDoctrineSelect('manufacturer', 'Manufacturer', $em, 'Cobalt\\Entity\\HardwareManufacturer', 'name')->addText('assetNumber', 'Asset Number')->addTextArea('notes', 'Notes', 5)->addButton('submit', 'Add', 'btn-primary');
 }
Пример #16
0
 public function __construct($em, $name = null, $options = array())
 {
     parent::__construct($name, $options);
     $this->em = $em;
     $this->compact = true;
     $this->labelWidth = 2;
     $this->controlWidth = 10;
     $this->addHidden('id')->addText('name', 'Name', false)->addText('description', 'Description', false)->addDoctrineSelect('status', 'Status', $em, 'Project\\Entity\\TaskStatus', 'name')->addDoctrineSelect('priority', 'Priority', $em, 'Project\\Entity\\TaskPriority', 'name')->addText('estimatedHours', 'Estimated Hours', false)->addText('actualHours', 'Actual Hours', false)->addButton('submit', 'Add', 'btn-primary');
 }
Пример #17
0
 public function __construct()
 {
     parent::__construct();
     $this->compact = true;
     $this->labelWidth = 3;
     $this->controlWidth = 9;
     $this->setAttribute('class', 'form-horizontal');
     $this->addText('hostname', 'Hostname')->addButton('submit', 'Scan', 'btn-primary');
 }
Пример #18
0
 public function __construct($em)
 {
     parent::__construct();
     $this->em = $em;
     $this->compact = true;
     $this->labelWidth = 4;
     $this->controlWidth = 8;
     $this->addDoctrineSelect('software', 'Software', $em, 'Cobalt\\Entity\\Software', 'name')->addText('licenseKey', 'License Key')->addText('installationsAllowed', 'Installations Allowed')->addButton('submit', 'Add', 'btn-primary');
 }