protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('tabs.client.basic_data');
     $showMapper->add('enabled', null, array('label' => 'client.enabled'));
     $showMapper->add('name', null, array('label' => 'client.name'));
     $showMapper->add('email', null, array('label' => 'client.email'));
     $showMapper->add('phone', null, array('label' => 'client.phone'));
     $showMapper->end();
     $showMapper->with('tabs.client.invoice_data');
     $showMapper->add('invoice_name', null, array('label' => 'client.invoice_name'));
     $showMapper->add('invoice_nip', null, array('label' => 'client.invoice_nip'));
     $showMapper->add('invoice_address', null, array('label' => 'client.invoice_address'));
 }
 public function testReorder()
 {
     $this->assertEquals(array(), $this->admin->getShowGroups());
     $fieldDescription1 = $this->getFieldDescriptionMock('fooName1', 'fooLabel1');
     $fieldDescription2 = $this->getFieldDescriptionMock('fooName2', 'fooLabel2');
     $fieldDescription3 = $this->getFieldDescriptionMock('fooName3', 'fooLabel3');
     $fieldDescription4 = $this->getFieldDescriptionMock('fooName4', 'fooLabel4');
     $this->showMapper->with('Group1');
     $this->showMapper->add($fieldDescription1);
     $this->showMapper->add($fieldDescription2);
     $this->showMapper->add($fieldDescription3);
     $this->showMapper->add($fieldDescription4);
     $this->assertEquals(array('Group1' => array('collapsed' => false, 'fields' => array('fooName1' => 'fooName1', 'fooName2' => 'fooName2', 'fooName3' => 'fooName3', 'fooName4' => 'fooName4'), 'description' => false, 'translation_domain' => null, 'class' => false, 'name' => 'Group1')), $this->admin->getShowGroups());
     $this->showMapper->reorder(array('fooName3', 'fooName2', 'fooName1', 'fooName4'));
     // print_r is used to compare order of items in associative arrays
     $this->assertEquals(print_r(array('Group1' => array('collapsed' => false, 'class' => false, 'description' => false, 'translation_domain' => null, 'name' => 'Group1', 'fields' => array('fooName3' => 'fooName3', 'fooName2' => 'fooName2', 'fooName1' => 'fooName1', 'fooName4' => 'fooName4'))), true), print_r($this->admin->getShowGroups(), true));
 }
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('Article')->add('title')->add('authors')->add('keyword')->add('abstract')->add('stateEnd')->add('createAt')->add('topics')->end()->with('Reviewers')->add('reviewers')->end();
 }
示例#4
0
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('Social')->end();
 }
 /**
  * {@inheritdoc}
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('General')->add('username')->add('email')->end();
 }
 /**
  * {@inheritdoc}
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('General')->add('username')->add('email')->end()->with('Groups')->add('groups')->end()->with('Profile')->add('dateOfBirth')->add('firstname')->add('lastname')->add('gender')->add('phone')->end()->with('Security')->add('token')->add('twoStepVerificationCode')->end();
 }
示例#7
0
 protected function configureShowFields(ShowMapper $showMapper)
 {
     // Fields to be shown on show action
     $showMapper->with('Marque')->add('name', null, array('label' => 'Nom'))->add('slug')->add('templates', null, array('label' => 'Liste des templates'))->end();
 }
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('General')->add('nom')->add('description')->add('charte', 'string', array('template' => 'IuchBundle:Charte:show.html.twig'))->add('service')->add('obligatoire')->end();
 }
示例#9
0
 /**
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('Package General Description')->add('id')->add('packagename')->add('packageAliasname')->add('paperlitId')->end()->with('Package Details')->add('ismagazine')->add('isFasttrack')->add('isSkoar')->add('isDvD1')->add('isDvD2')->add('isDgt')->end()->with('Other Details')->add('duration')->add('coverPrice')->add('youPay')->add('benefit')->end()->with('Package Start and End Date')->add('startFromDate')->add('endDate')->end()->with('Set Priority, Status and Image Details')->add('priority')->add('status')->add('image');
 }
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('Général')->add('user')->add('nom')->end()->with('Entrée')->add('date_donnee')->add('nombre_donne')->end()->with('Sortie')->add('date_rendu')->add('nombre_rendu')->end();
 }
示例#11
0
 protected function configureShowFields(ShowMapper $show)
 {
     $show->with('Computer Info')->add('name', null, array("label" => "field.name"))->add('mac', null, array("label" => "field.mac"))->add('port', null, array("label" => "field.port"))->add('broadcast_ip', null, array("label" => "field.broadcast_ip"))->add('ping_ip', null, array("label" => "field.ping_ip"))->add('ping_port', null, array("label" => "field.ping_port"))->end();
 }
示例#12
0
 /**
  * {@inheritdoc}
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('General')->add('id')->add('title')->add('created_at', null, array('label' => 'Créé le', 'format' => 'd/m/Y à H\\hi'))->add('updated_at', null, array('label' => 'Modifié le', 'format' => 'd/m/Y à H\\hi'))->add('campaign')->add('base_detail')->end();
 }
示例#13
0
 /**
  * {@inheritdoc}
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $authorizationChecker = $this->getConfigurationPool()->getContainer()->get('security.authorization_checker');
     $showMapper->with('General', ['class' => 'col-md-6', 'name' => 'user.general'])->add('username')->add('email')->end()->with('Profile', ['class' => 'col-md-6', 'name' => 'user.profile'])->add('firstname')->add('lastname')->end();
     if ($authorizationChecker->isGranted('ROLE_ADMIN')) {
         $showMapper->with('Groups', ['class' => 'col-md-12', 'name' => 'security.groups'])->add('groups')->end();
     }
 }
示例#14
0
 /**
  * @param \Sonata\AdminBundle\Show\ShowMapper $showMapper
  * 
  * @return void
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('General', array('class' => 'col-md-10'))->add('titre')->add('contenu')->end()->with('Activé sur', array('class' => 'col-md-2'))->add('expertise')->add('atelier')->end()->with('Images')->add('images', 'sonata_type_admin', array('associated_property' => 'path', 'template' => 'PBBijouterieBundle:Admin:images.html.twig', 'required' => false))->end()->with('Video Youtube')->add('video')->end();
 }
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('Général')->add('user', null, array('label' => 'Utilisateur'))->add('rendu', null, array('label' => 'Rendu'))->add('perdu_vol', null, array('label' => 'Perdu/volé'))->add('type')->end()->with('Entrée/Sortie')->add('date_remise', 'date', array('label' => 'Date de remise', 'format' => 'd/m/Y'))->add('date_rendu', 'date', array('label' => 'Date de rendu', 'format' => 'd/m/Y'))->end()->with('Informations complémentaires')->add('intervenant')->add('commentaire')->end();
 }
 /**
  * {@inheritdoc}
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('General')->add('username')->add('gender')->add('firstname')->add('lastname')->add('dateOfBirth', 'date', array('format' => 'd/m/Y'))->end()->with('Contact')->add('phone')->add('email', 'email')->add('adresse', null, array('label' => 'Adresse'))->add('zip', null, array('label' => 'Code postal'))->add('ville', null, array('label' => 'Ville'))->end()->with('Informations internes')->add('fonction', null, array('label' => 'Fonction'))->add('service', null, array('label' => 'Service référent'))->add('chef_service', 'boolean', array('label' => 'Chef de service'))->add('services', null, array('label' => 'Services secondaire'))->add('date_entree', 'date', array('label' => 'Date entrée', 'format' => 'd/m/Y'))->add('date_sortie', 'date', array('label' => 'Date sortie', 'format' => 'd/m/Y'))->add('raison_sortie', null, array('label' => 'Raison de sortie'))->add('code_copieur', null, array('label' => 'Code copieur'))->end();
 }
示例#17
0
 public function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('General')->add('slug')->add('title')->add('content')->add('published')->add('publishedAt', 'datetime')->add('createdAt', 'datetime')->add('updatedAt', 'datetime')->add('metaKeywords')->add('metaDescription')->end();
 }
 /**
  * {@inheritdoc}
  *
  * @throws \RuntimeException
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('title.university_data', ['class' => 'col-md-6'])->add('name', null, ['label' => 'label.name'])->add('cif', null, ['label' => 'label.cif'])->add('type', 'choice', ['label' => 'label.type', 'choices' => ['Privada' => 'Privada', 'Pública' => 'Pública']])->end()->with('title.contact_data', ['class' => 'col-md-6'])->add('address', 'textarea', ['label' => 'label.address'])->add('city', null, ['label' => 'label.city'])->add('province', null, ['label' => 'label.province'])->add('postcode', null, ['label' => 'label.postcode'])->add('phone', null, ['label' => 'label.phone'])->add('fax', null, ['label' => 'label.fax'])->add('web', null, ['label' => 'label.web'])->end();
 }
示例#19
0
 /**
  * @param \Sonata\AdminBundle\Show\ShowMapper $showMapper
  * 
  * @return void
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('General')->add('marque')->add('nom')->add('description')->add('prix')->end()->with('Images')->add('images', 'sonata_type_admin', array('associated_property' => 'path', 'template' => 'PBBijouterieBundle:Admin:images.html.twig'))->end();
 }
 protected function configureShowFields(ShowMapper $showMapper)
 {
     // Here we set the fields of the ShowMapper variable, $showMapper (but this can be called anything)
     $showMapper->with('General')->add('color')->add('price')->end();
 }
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('General')->add('nom')->end();
 }
示例#22
0
 /**
  * {@inheritdoc}
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('tab_user', array('class' => 'col-md-8'))->add('username')->add('email')->add('licence')->end()->with('tab_status', array('class' => 'col-md-4'))->add('enabled')->add('locked')->add('expired')->add('credentialsExpired')->add('newsletter')->add('lastLogin', 'datetime', array('format' => 'd/m/Y, H:i'))->end()->with('tab_roles', array('class' => 'col-md-12'))->add('roles', 'array', array('display_label' => false, 'template' => 'UserBundle:CRUD/Show:field_roles.html.twig'))->end();
 }
示例#23
0
 /**
  * @param \Sonata\AdminBundle\Show\ShowMapper $showMapper
  *
  * @return void
  */
 protected function configureShowField(ShowMapper $showMapper)
 {
     $showMapper->with('Offer')->add('id')->add('category')->add('type')->add('company')->add('logo')->add('url')->add('position')->add('location')->add('description')->add('howToApply')->add('email')->end()->with('API')->add('token')->add('isPublic')->end()->with('System informations')->add('isActivated')->add('expiresAt')->add('createdAt')->add('updatedAt')->end();
 }
示例#24
0
 /**
  * {@inheritdoc}
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('General')->add('username')->add('email')->end()->with('Groups')->add('groups')->end()->with('Profile')->add('firstname')->add('lastname')->end();
 }
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('General')->add('charte')->add('user', null, array('label' => 'Utilisateur'))->add('dateSignature', null, array('label' => 'Date de signature'))->end();
 }
示例#26
0
 /**
  * @param \Sonata\AdminBundle\Show\ShowMapper $filter
  */
 public function configureShowFields(ShowMapper $filter)
 {
     $filter->with('customer.group.general')->add('user', 'sonata_type_model_list')->add('firstname')->add('lastname')->add('locale', 'locale')->add('birthDate')->add('birthPlace')->end()->with('customer.group.contact')->add('email', 'email')->add('phoneNumber')->add('mobileNumber')->add('faxNumber')->add('isFake')->end();
 }
示例#27
0
 /**
  * @param ShowMapper $showMapper
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('Search OR Update File')->add('filename')->add('filecontent');
 }
示例#28
0
 /**
  * {@inheritdoc}
  *
  * @throws \RuntimeException
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('title.college_data', ['class' => 'col-md-6'])->add('name', null, ['label' => 'label.name'])->add('university', null, ['label' => 'label.university'])->add('slug', null, ['label' => 'label.slug'])->add('academic_degrees', null, ['label' => 'label.academic_degrees'])->end()->with('title.contact_data', ['class' => 'col-md-6'])->add('address', 'textarea', ['label' => 'label.address'])->add('city', null, ['label' => 'label.city'])->add('province', null, ['label' => 'label.province'])->add('postcode', null, ['label' => 'label.postcode'])->add('phone', null, ['label' => 'label.phone'])->add('fax', null, ['label' => 'label.fax'])->add('web', null, ['label' => 'label.web'])->end();
 }
示例#29
0
 /**
  * {@inheritdoc}
  */
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('General')->add('username')->add('email')->end()->with('Groups')->add('groups')->end()->with('Profile')->add('dateOfBirth')->add('firstname')->add('lastname')->add('website')->add('biography')->add('gender')->add('locale')->add('timezone')->add('phone')->end()->with('Social')->add('facebookUid')->add('facebookName')->add('twitterUid')->add('twitterName')->add('gplusUid')->add('gplusName')->end()->with('Security')->add('token')->add('twoStepVerificationCode')->end();
 }
 protected function configureShowFields(ShowMapper $showMapper)
 {
     $showMapper->with('Général')->add('user')->add('remis')->end()->with('Entrée/Sortie')->add('date_remise')->add('date_rendu')->end();
 }