Dukai Károly 3 лет назад
Родитель
Сommit
3d4a1324c1
2 измененных файлов: 12 добавлений и 3 удалений
  1. +10
    -0
      modules/custom/arlista/css/arlista.css
  2. +2
    -3
      modules/custom/arlista/src/Form/Manufacturer/ManufacturerEdit.php

+ 10
- 0
modules/custom/arlista/css/arlista.css Просмотреть файл

justify-content: center; justify-content: center;
margin-top: 5rem; margin-top: 5rem;
} }

form.arlista-manufacturer-edit-form > a {
display: block;
margin-bottom: 1rem;
}

div.custom-items-wrapper.link-container > ul > li > a {
display: block;
margin-top: 0.5rem;
}

+ 2
- 3
modules/custom/arlista/src/Form/Manufacturer/ManufacturerEdit.php Просмотреть файл

'#weight' => 65, '#weight' => 65,
]; ];


$form['calculations']['prefix'] = ['#prefix' => '<br>'];
if (!$manufacturer->isNew()) { if (!$manufacturer->isNew()) {
$form['items_wrapper'][]['calculation']['link'] = \Drupal\Core\Link::fromTextAndUrl(
$form['items_wrapper'][]['calculations']['link'] = \Drupal\Core\Link::fromTextAndUrl(
'Kalkulációk szerkesztése', 'Kalkulációk szerkesztése',
Url::fromRoute('arlista.manufacturer.calculations.list', [ Url::fromRoute('arlista.manufacturer.calculations.list', [
'mid' => $mid] 'mid' => $mid]
) )
)->toRenderable(); )->toRenderable();
} }
$form['sheet_settings'][]['link'] = ['#prefix' => '<br>'];
if (!$manufacturer->isNew()) { if (!$manufacturer->isNew()) {
$form['items_wrapper'][]['sheet_settings']['link'] = \Drupal\Core\Link::fromTextAndUrl( $form['items_wrapper'][]['sheet_settings']['link'] = \Drupal\Core\Link::fromTextAndUrl(
'Munkalapok szerkesztése', 'Munkalapok szerkesztése',

Загрузка…
Отмена
Сохранить