/** * Список * * @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()))); }
protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('id'); $listMapper->add('type.name'); $listMapper->add('year.year'); $listMapper->add('comment'); }
/** * {@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()))); }
/** * @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('id'); if (interface_exists('Sonata\\ClassificationBundle\\Model\\CategoryInterface')) { $listMapper->add('category'); } $listMapper->add('permalink', 'text')->add('numComments')->add('isCommentable', 'boolean', array('editable' => true)); }
/** * {@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())); }
protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('title', null, array('label' => 'Заголовок')); $listMapper->add('description', null, array('label' => 'Описание')); $listMapper->add('content', null, array('label' => 'Содержание')); $listMapper->add('createdAt', null, array('label' => 'Дата создания')); $listMapper->add('updatedAt', null, array('label' => 'Дата обновления')); }
/** * {@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'); }
protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('title', null, array('label' => 'Заголовок')); $listMapper->add('slug', null, array('label' => 'Ссылка')); $listMapper->add('createdAt', null, array('label' => 'Дата создания')); $listMapper->add('updatedAt', null, array('label' => 'Дата обновления')); $listMapper->add('news', null, array('label' => 'Связанная новость')); }
protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('title', null, array('label' => 'Заголовок'))->add('draft'); $listMapper->add('description', null, array('label' => 'Описание')); $listMapper->add('createdAt', null, array('label' => 'Дата создания')); $listMapper->add('updatedAt', null, array('label' => 'Дата обновления')); $listMapper->add('category', null, array('label' => 'Связанная категория')); $listMapper->add('slug', null, array('label' => 'Ссылка')); }
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 $mapper) { $mapper->addIdentifier('id', null, array('route' => array('name' => 'show'))); $mapper->add('action'); $mapper->add('objectId'); $mapper->add('objectClass'); $mapper->add('changeAt'); $mapper->add('username'); }
protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('id'); $listMapper->add('team1', 'sonata_type_model', array()); $listMapper->add('team2', 'sonata_type_model', array()); $listMapper->add('score1', 'text'); $listMapper->add('score2', 'text'); $listMapper->add('startTime', 'datetime'); }
protected function configureListFields(ListMapper $listMapper) { $listMapper->addIdentifier('id'); $listMapper->addIdentifier('getSaleOrderNumber', null, array('label' => 'order_number')); $listMapper->add('orderDate', null, array('label' => 'date')); if (!$listMapper->getAdmin()->isChild()) { $listMapper->addIdentifier('partner', null, array('by_reference' => false, 'label' => 'customer', 'admin_code' => 'app.customer')); } $listMapper->add('amountUntaxed', 'money', array('label' => 'amount_untaxed', 'currency' => 'CHF'))->add('amountTotal', 'money', array('label' => 'amount_total', 'currency' => 'CHF'))->add('state', 'colored_choice', array('choices' => SaleOrder::getStateChoices(), 'colors' => SaleOrder::getStateColors(), 'catalogue' => 'messages'))->add('_action', 'actions', array('actions' => array('edit' => 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()))); } }
/** * {@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')->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'); } }
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')); } }
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')); } }
/** * {@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')))); }
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()))); }
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' // )); }
/** * @param ListMapper $list */ protected function configureListFields(ListMapper $list) { $list->add('key', 'string')->add('domain', 'string'); foreach ($this->managedLocales as $locale) { if ($this->request) { $localeString = $this->request->getLocale(); } else { $localeString = $locale; } $localeList = Intl::getLocaleBundle()->getLocaleNames(substr($localeString, 0, 2)); $fieldDescription = $this->modelManager->getNewFieldDescriptionInstance($this->getClass(), $locale); $fieldDescription->setTemplate('NetworkingInitCmsBundle:CRUD:base_inline_translation_field.html.twig'); $fieldDescription->setOption('locale', $locale); $fieldDescription->setOption('editable', $this->editableOptions); $fieldDescription->setOption('label', $localeList[$locale]); $list->add($fieldDescription); } }
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' // )); }
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('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' // )); }
protected function configureListFields(ListMapper $listMapper) { /* $listMapper ->add('is_active') ->addIdentifier('email') ->add('url') ->add('created_at') ->add('token') ; */ $listMapper->add('is_active')->addIdentifier('email')->add('url')->add('created_at')->add('token')->add('_action', 'actions', array('actions' => array('activate' => array('template' => 'IbwJobeetBundle:AffiliateAdmin:list__action_activate.html.twig'), 'deactivate' => array('template' => 'IbwJobeetBundle:AffiliateAdmin:list__action_deactivate.html.twig')))); }