/**
  * @param ListMapper $listMapper
  */
 protected function configureListFields(ListMapper $listMapper)
 {
     parent::configureListFields($listMapper);
     $listMapper->remove('_action');
     $listMapper->addIdentifier('id', null);
     $label = 'list.' . $this->_prefix_label . '.';
     $listMapper->add('tabs.name', null, array('label' => $label . 'tabs'))->add('text', null, array('label' => $label . 'text'));
 }
 /**
  * @param ListMapper $listMapper
  */
 protected function configureListFields(ListMapper $listMapper)
 {
     parent::configureListFields($listMapper);
     $filterParameters = $this->getFilterParameters();
     if ($filterParameters['_sort_order'] == 'ASC' && $filterParameters['_sort_by'] == $this->datagridValues['_sort_by']) {
         global $SonataAdminBundle_Compte_list_solde;
         $SonataAdminBundle_Compte_list_solde = 0;
     }
     $listMapper->add('date', null, array('label' => $this->getFieldLabel('date'), 'template' => 'ApplicationSonataClientBundle:CRUD:list_date_compte.html.twig'))->add('operation', null, array('label' => $this->getFieldLabel('operation')))->add('montant', 'money', array('label' => $this->getFieldLabel('montant'), 'template' => 'ApplicationSonataClientBundle:CRUD:list_montant.html.twig'))->add('solde', 'money', array('label' => $this->getFieldLabel('solde'), 'template' => 'ApplicationSonataClientBundle:CRUD:list_solde.html.twig'))->add('commentaire', null, array('label' => $this->getFieldLabel('commentaire')))->add('statut.name', null, array('label' => $this->getFieldLabel('statut'), 'template' => 'ApplicationSonataClientBundle:CRUD:list_statut.html.twig'));
 }
示例#3
0
 /**
  * @param ListMapper $listMapper
  */
 protected function configureListFields(ListMapper $listMapper)
 {
     parent::configureListFields($listMapper);
     $listMapper->add('type_garantie.name', null, array('label' => $this->getFieldLabel('type_garantie')))->add('montant', 'money', array('label' => $this->getFieldLabel('montant'), 'template' => 'ApplicationSonataClientBundle:CRUD:list_garantie_montant.html.twig'))->add('date_decheance', 'date', array('label' => $this->getFieldLabel('date_decheance'), 'template' => 'ApplicationSonataClientBundle:CRUD:list_date_decheance.html.twig'))->add('nom_de_la_banques_id', null, array('label' => $this->getFieldLabel('nom_de_la_banques_id'), 'template' => 'ApplicationSonataClientBundle:CRUD:list_banques.html.twig'));
 }
示例#4
0
 /**
  * @param ListMapper $listMapper
  */
 protected function configureListFields(ListMapper $listMapper)
 {
     parent::configureListFields($listMapper);
     $listMapper->add('mode_de_facturation.name', null, array('label' => $this->getFieldLabel('mode_de_facturation')))->add('value', 'money', array('label' => $this->getFieldLabel('value')))->add('value_percentage', 'percent', array('label' => $this->getFieldLabel('value_percentage')))->add('mode_de_facturation.invoice_type.name', null, array('label' => $this->getFieldLabel('invoice_type')));
 }
示例#5
0
 /**
  * @param ListMapper $listMapper
  */
 protected function configureListFields(ListMapper $listMapper)
 {
     parent::configureListFields($listMapper);
     $listMapper->add('affichage_facture_id', null, array('label' => $this->getFieldLabel('affichage_facture_id')))->add('raison_sociale_societe', null, array('label' => $this->getFieldLabel('raison_sociale_societe')))->add('civilite.name', null, array('label' => $this->getFieldLabel('civilite')))->add('nom', null, array('label' => $this->getFieldLabel('nom')))->add('prenom', null, array('label' => $this->getFieldLabel('prenom')))->add('telephone_1', null, array('label' => $this->getFieldLabel('telephone_1')))->add('email', null, array('label' => $this->getFieldLabel('email')))->add('client.raison_sociale', null, array('label' => 'Raison sociale Société', 'data' => $this->getClient()->getRaisonSociale()))->add('commentaire', null, array('label' => $this->getFieldLabel('commentaire')));
 }
示例#6
0
 /**
  * @param ListMapper $listMapper
  */
 protected function configureListFields(ListMapper $listMapper)
 {
     parent::configureListFields($listMapper);
     $listMapper->add('document', null, array('attr' => array('class' => 'no-edit'), 'label' => $this->getFieldLabel('document'), 'template' => 'ApplicationSonataClientBundle:CRUD:document_local_file_path.html.twig'))->add('type_document.name', null, array('label' => $this->getFieldLabel('type_document')))->add('date_document', null, array('label' => $this->getFieldLabel('date_document'), 'template' => 'ApplicationSonataClientBundle:CRUD:list_date_document.html.twig'))->add('statut_document_notaire', null, array('label' => 'Statut Notaire', 'template' => 'ApplicationSonataClientBundle:CRUD:list_statut_document_notaire.html.twig'))->add('statut_document_apostille', null, array('label' => 'Statut Apostille', 'template' => 'ApplicationSonataClientBundle:CRUD:list_statut_document_apostille.html.twig'))->add('client.N_TVA_CEE', null, array('label' => 'N TVA CEE', 'template' => 'ApplicationSonataClientBundle:CRUD:list_client_n_tva_cee_document.html.twig'));
 }
 /**
  * @param ListMapper $listMapper
  */
 protected function configureListFields(ListMapper $listMapper)
 {
     parent::configureListFields($listMapper);
     $listMapper->add('code', null, array('label' => $this->getFieldLabel('code')))->add('n_de_TVA', null, array('label' => $this->getFieldLabel('n_de_TVA')))->add('date_de_verification', null, array('label' => $this->getFieldLabel('date_de_verification'), 'template' => 'ApplicationSonataClientBundle:CRUD:list_date_de_verification.html.twig'));
 }
 /**
  * @param ListMapper $listMapper
  */
 protected function configureListFields(ListMapper $listMapper)
 {
     parent::configureListFields($listMapper);
     $listMapper->add('nom', null, array('label' => $this->getFieldLabel('nom')))->add('code_swift', null, array('label' => $this->getFieldLabel('code_swift')))->add('pays.name', null, array('label' => $this->getFieldLabel('pays_id')))->add('IBAN', null, array('label' => $this->getFieldLabel('IBAN')))->add('pays.sepa', null, array('label' => $this->getFieldLabel('SEPA')));
 }
 /**
  * @param ListMapper $listMapper
  */
 protected function configureListFields(ListMapper $listMapper)
 {
     parent::configureListFields($listMapper);
     $label = 'list.' . $this->_prefix_label . '.';
     $listMapper->add('date', null, array('label' => $label . 'date', 'template' => 'ApplicationSonataClientBundle:CRUD:list_date.html.twig'))->add('categorie.name', null, array('label' => $label . 'categorie'))->add('note', null, array('label' => $label . 'note'));
 }