protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('id'); $listMapper->add('type.name'); $listMapper->add('year.year'); $listMapper->add('comment'); }
protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('id')->add('username')->add('email')->add('lastIp')->add('location')->add('groups')->add('_action', 'actions', array('actions' => array('edit' => array(), 'delete' => array()), "label" => 'actions')); if ($this->isGranted('ROLE_ALLOWED_TO_SWITCH')) { $listMapper->add('impersonating', 'string', array('template' => 'SonataAdminBundle:Admin:Field/impersonating.html.twig')); } }
protected function configureListFields(ListMapper $listMapper) { $listMapper ->addIdentifier('id', 'text') ->addIdentifier('title', 'text') ; }
/** * Список * * @param ListMapper $listMapper */ protected function configureListFields(ListMapper $listMapper) { if ($this->useModel()) { $listMapper->add('Model')->add('ObjectId')->add('Locale'); } $listMapper->add('OldUrlShort', null, array('label' => 'Старый адрес'))->add('NewUrlShort', null, array('label' => 'Новый адрес'))->add('_action', 'actions', array('actions' => array('edit' => array(), 'delete' => array()))); }
/** * {@inheritdoc} */ protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('username')->add('email')->add('groups')->add('enabled', null, array('editable' => true))->add('locked', null, array('editable' => true))->add('createdAt'); if ($this->isGranted('ROLE_ALLOWED_TO_SWITCH')) { $listMapper->add('impersonating'); } }
/** * @param \Sonata\AdminBundle\Datagrid\ListMapper $list */ public function configureListFields(ListMapper $list) { if (!$this->isChild()) { $list->addIdentifier('id')->addIdentifier('product', null, array('admin_code' => 'sonata.product.admin.product')); } $list->addIdentifier('code')->add('enabled')->add('perItem')->add('countryCode')->add('zone'); }
/** * {@inheritdoc} */ public function configureListFields(ListMapper $list) { if (!$this->isChild()) { $list->addIdentifier('id')->addIdentifier('product', null, array('admin_code' => 'sonata.product.admin.product')); } $list->addIdentifier('category'); }
protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('username')->add('email')->add('groups')->add('facebookName', array(), array('label' => 'Fb Name'))->add('gender', array(), array('label' => 'Gender'))->add('locale', array(), array('label' => 'Language'))->add('biography', array(), array('label' => 'Biography'))->add('enabled', null, array('editable' => true)); if ($this->isGranted('ROLE_ALLOWED_TO_SWITCH')) { $listMapper->add('impersonating', 'string', array('template' => 'SonataUserBundle:Admin:Field/impersonating.html.twig')); } }
/** * {@inheritdoc} */ protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('username')->add('email')->add('groups')->add('enabled', null, array('editable' => true))->add('locked', null, array('editable' => true))->add('createdAt'); if ($this->isGranted('ROLE_ALLOWED_TO_SWITCH')) { $listMapper->add('impersonating', 'string', array('template' => 'SonataUserBundle:Admin:Field/impersonating.html.twig')); } }
/** * {@inheritdoc} */ protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('username')->add('email', null, array('footable' => array('attr' => array('data-breakpoints' => array('xs', 'sm')))))->add('enabled', null, array('editable' => true, 'footable' => array('attr' => array('data-breakpoints' => array('xs')))))->add('locked', null, array('editable' => true, 'footable' => array('attr' => array('data-breakpoints' => array('xs')))))->add('createdAt', null, array('footable' => array('attr' => array('data-breakpoints' => array('xs', 'sm', 'md'))))); if ($this->isGranted('ROLE_ALLOWED_TO_SWITCH')) { $listMapper->add('impersonating', 'string', array('template' => 'BrueryUserBundle:Admin:Field/impersonating.html.twig', 'footable' => array('attr' => array('data-breakpoints' => array('all'))))); } }
protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('id')->add('getPeriod', null, array('format' => 'M. Y')); if (!$listMapper->getAdmin()->isChild()) { $listMapper->addIdentifier('employee'); } $listMapper->add('getPayoff')->add('createdAt')->add('_action', 'actions', array('actions' => array('show' => array(), 'edit' => array(), 'print' => array('template' => 'CRUD/list__action_print.html.twig')))); }
protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('id')->add('startDate', null, array('label' => 'first_day', 'format' => 'd. M. Y'))->add('endDate', null, array('label' => 'last_day', 'format' => 'd. M. Y')); if (!$listMapper->getAdmin()->isChild()) { $listMapper->addIdentifier('employee'); } $listMapper->add('days', null, array('label' => 'days'))->add('stateName', null, array('template' => 'CRUD/list_string_translated.html.twig'))->add('comment')->add('createdAt')->add('_action', 'actions', array('actions' => array('show' => array(), 'edit' => array(), 'print' => array('template' => 'CRUD/list__action_print.html.twig')))); }
/** * {@inheritdoc} */ protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('id'); if (interface_exists('Sonata\\ClassificationBundle\\Model\\CategoryInterface')) { $listMapper->add('category'); } $listMapper->add('permalink', 'text')->add('numComments')->add('isCommentable', 'boolean', array('editable' => true)); }
protected function configureListFields(ListMapper $listMapper) { if (!$this->hasParentFieldDescription()) { // this Admin is not embedded $listMapper->add('saleOrder'); } $listMapper->addIdentifier('productNumber', null, array('label' => 'product_number'))->add('shortName', null, array('label' => 'name'))->add('basePrice', null, array('label' => 'base_price'))->add('_action', 'actions', array('actions' => array('edit' => array()))); }
/** * @param ListMapper $listMapper */ protected function configureListFields(ListMapper $listMapper) { $listMapper->add('aliasShort', null, array('sortable' => false)); foreach ($this->getConfigurationPool()->getContainer()->getParameter('it_blaster_translation.locales') as $locale) { $listMapper->add('title' . $locale, null, array('label' => $locale, 'sortable' => false, 'editable' => true)); } $listMapper->add('_action', 'actions', array('label' => 'Редактирование', 'actions' => array('edit' => array(), 'delete' => array()))); }
/** * {@inheritdoc} */ protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('name')->add('getStatusCode', 'text', array('label' => 'status_code', 'sortable' => 'status')); if (!$this->isChild()) { $listMapper->add('post'); } $listMapper->add('email')->add('url')->add('message'); }
/** * {@inheritdoc} */ public function configureListFields(ListMapper $list) { $list->addIdentifier('id'); if (!$list->getAdmin()->isChild()) { $list->add('order'); } $list->add('productType')->add('getStatusName', 'trans', array('name' => 'status', 'catalogue' => 'SonataOrderBundle', 'sortable' => 'status'))->add('getDeliveryStatusName', 'trans', array('name' => 'deliveryStatus', 'catalogue' => 'SonataOrderBundle', 'sortable' => 'deliveryStatus'))->add('getTotalWithVat', 'currency', array('currency' => $this->currencyDetector->getCurrency()->getLabel()))->add('getTotal', 'currency', array('currency' => $this->currencyDetector->getCurrency()->getLabel())); }
/** * @param ListMapper $listMapper */ protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('id')->add('rules')->add('description', 'html')->add('adressDelivery')->add('signDate')->add('expirationDate')->add('repPDF')->add('users', 'entity', array('class' => 'AMAPBundle:Account\\User', 'associated_property' => function ($amap) { return $amap->getUsername(); }))->add('amap', 'contracts_amap', array('class' => 'AMAPBundle:AMAP\\AMAP', 'associated_property' => function ($amap) { return $amap->getName(); }))->add('_action', null, array('actions' => array('show' => array(), 'edit' => array(), 'delete' => array()))); }
/** * {@inheritdoc} */ protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('username')->add('email')->add('groups')->add('enabled', null, array('editable' => true)); if ($this->isGranted('ROLE_ALLOWED_TO_SWITCH')) { $listMapper->add('impersonating', 'string', array('template' => 'NetworkingInitCmsBundle:Admin:Field/impersonating.html.twig')); } $listMapper->add('_action', 'actions', array('label' => ' ', 'actions' => array('edit' => array(), 'delete' => array()))); }
protected function configureListFields(ListMapper $listMapper) { $locales = $this->container->getParameter('ao_translation.locales'); $listMapper->addIdentifier('id')->add('domain')->add('identification'); foreach ($locales as $locale => $label) { $listMapper->add($locale, null, array('template' => 'AOTranslationBundle:MessageAdmin:translation.html.twig', 'label' => $label, 'code' => 'getLocaleTranslation', 'parameters' => array($locale))); } $listMapper->add('_action', 'actions', array('actions' => array('edit' => array(), 'delete' => array()))); }
protected function configureListFields(ListMapper $listMapper) { $listMapper->add('color')->add('price')->add('weight')->add('product.sku')->add('product.color')->add('product.price'); // ->add('products', null, array(), array( // 'edit' => 'inline', // 'inline' => 'table', // 'sortable' => 'position' // )); }
/** * {@inheritdoc} */ protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('username')->add('firstname', null, array('label' => 'form.label_firstname'))->add('lastname', null, array('label' => 'form.label_lastname'))->add('email')->add('groups')->add('createdAt', 'date', array('template' => 'ApplicationSonataUserBundle:CRUD:list_created_at.html.twig'))->add('enabled'); // if ($this->isGranted('ROLE_ALLOWED_TO_SWITCH')) { // $listMapper // ->add('impersonating', 'string', array('template' => 'SonataUserBundle:Admin:Field/impersonating.html.twig')) // ; // } }
/** * @param ListMapper $listMapper */ protected function configureListFields(ListMapper $listMapper) { $container = $this->getConfigurationPool()->getContainer(); $roles = $container->getParameter('security.role_hierarchy.roles'); $rolesChoices = $this->roles->flattenRoles($roles); $listMapper->addIdentifier('name')->add('roles', 'choice', array('choices' => $rolesChoices, 'multiple' => true))->add('users', 'entity', array('class' => 'AMAPBundle:Account\\User', 'associated_property' => function ($amap) { return $amap->getUsername(); }))->add('_action', null, array('actions' => array('show' => array(), 'edit' => array(), 'delete' => array()))); }
protected function configureListFields(ListMapper $listMapper) { $listMapper->add('name')->add('netPurchasePrice')->add('price')->add('originalPrice')->add('mainMaterial')->add('description')->add('measures')->add('color')->add('product.sku')->add('product.color'); // ->add('products', null, array(), array( // 'edit' => 'inline', // 'inline' => 'table', // 'sortable' => 'position' // )); }
protected function configureListFields(ListMapper $listMapper) { $listMapper->add('name')->add('checker')->add('supplierName')->add('start_date', 'date', array('format' => 'd-m-Y'))->add('check_date', 'date', array('format' => 'd-m-Y'))->add('end_date', 'date', array('format' => 'd-m-Y'))->add('status', 'boolean', array('editable' => true))->add('totalItems', null, array('template' => 'SuppliercheckAdminBundle:campaign:list_files.html.twig'))->add('productsCountChecked', null, array('label' => 'Total Products Checked'))->add('productsCountValid', null, array('label' => 'Validated Products'))->add('productsCountRejected', null, array('label' => 'Rejected Products'))->add('globalComment')->add('_action', 'actions', array('actions' => array('Send Mail' => array('template' => 'SuppliercheckAdminBundle:campaign:send_mail.html.twig'), 'Admin Produtcs' => array('template' => 'SuppliercheckAdminBundle:campaign:show_products.html.twig'), 'delete' => array()))); // ->add('products', null, array(), array( // 'edit' => 'inline', // 'inline' => 'table', // 'sortable' => 'position' // )); }
/** * {@inheritdoc} */ public function configureListFields(ListMapper $list) { $currency = $this->currencyDetector->getCurrency()->getLabel(); $list->addIdentifier('id')->addIdentifier('reference'); if (!$list->getAdmin()->isChild()) { $list->addIdentifier('customer'); } $list->add('paymentMethod')->add('deliveryMethod')->add('locale')->add('status', 'string', array('template' => 'SonataOrderBundle:OrderAdmin:list_status.html.twig'))->add('deliveryStatus', 'string', array('template' => 'SonataOrderBundle:OrderAdmin:list_delivery_status.html.twig'))->add('paymentStatus', 'string', array('template' => 'SonataOrderBundle:OrderAdmin:list_payment_status.html.twig'))->add('validatedAt')->add('totalInc', 'currency', array('currency' => $currency))->add('totalExcl', 'currency', array('currency' => $currency)); }
protected function configureListFields(ListMapper $listMapper) { $listMapper->add('name')->add('checker')->add('supplierName')->add('status')->add('totalItems', null, array('template' => 'SuppliercheckAdminBundle:campaign:list_files.html.twig'))->add('productsCountChecked', null, array('label' => 'Total Products Checked'))->add('productsCountValid', null, array('label' => 'Validated Products'))->add('productsCountRejected', null, array('label' => 'Rejected Products'))->add('globalComment')->add('_action', 'actions', array('actions' => array('product' => array('template' => 'SuppliercheckAdminBundle:campaign:show_products_validation.html.twig'), 'Comment' => array('template' => 'SuppliercheckAdminBundle:campaign:add_global_comment.html.twig')))); // ->add('products', null, array(), array( // 'edit' => 'inline', // 'inline' => 'table', // 'sortable' => 'position' // )); }
/** * {@inheritdoc} */ protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('username')->add('createdAt'); // if ($this->isGranted('ROLE_ALLOWED_TO_SWITCH')) { // $listMapper // ->add('impersonating', 'string', array('template' => 'SonataUserBundle:Admin:Field/impersonating.html.twig')) // ; // } }
/** * @param ListMapper $listMapper */ protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('name')->add('phone')->add('adress')->add('description', 'html')->add('repIMG')->add('users', 'entity', array('class' => 'AMAPBundle:Account\\User', 'associated_property' => function ($amap) { return $amap->getUsername(); }))->add('news', 'entity', array('class' => 'AMAPBundle:Announcement\\News', 'associated_property' => function ($amap) { return $amap->getName(); }))->add('contracts_amap', 'entity', array('class' => 'AMAPBundle:Account\\Contract', 'associated_property' => function ($amap) { return $amap->getId(); }))->add('_action', null, array('actions' => array('show' => array(), 'edit' => array(), 'delete' => array()))); }
protected function configureListFields(ListMapper $listMapper) { $listMapper->add('firstname', null, array('label' => 'First name'))->add('lastname', null, array('label' => 'Last name'))->add('year', 'choice', array('label' => 'Year', 'choices' => self::getYearChoices())); if ($this->isGranted('EDIT')) { $listMapper->add('payment', 'choice', array('label' => 'Payment type', 'choices' => self::getPaymentChoices())); } $listMapper->add('deposit', null, array('label' => 'Deposit')); if ($this->isGranted('EDIT')) { $listMapper->add('mailing', 'boolean', array('label' => 'Mailing list', 'editable' => true))->add('_action', 'actions', array('actions' => array('edit' => array(), 'delete' => array()))); } }