Skip to content

Commit 15f7b46

Browse files
committed
Radio Units - allow add from radio link view
1 parent b954ceb commit 15f7b46

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

templates/RadioLinks/view.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@
6666
</blockquote>
6767
</div>
6868
<div class="related">
69+
<?= $this->Html->link(
70+
__('New Radio Unit'),
71+
['controller' => 'RadioUnits', 'action' => 'add', '?' => ['radio_link_id' => $radioLink->id]],
72+
['class' => 'button button-small float-right win-link']
73+
) ?>
6974
<h4><?= __('Related Radio Units') ?></h4>
7075
<?php if (!empty($radioLink->radio_units)) : ?>
7176
<div class="table-responsive">

templates/RadioUnits/add.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</aside>
1414
<div class="column-responsive column-90">
1515
<div class="radioUnits form content">
16-
<?= $this->Form->create($radioUnit) ?>
16+
<?= $this->Form->create($radioUnit, ['valueSources' => ['data', 'context', 'query']]) ?>
1717
<fieldset>
1818
<legend><?= __('Add Radio Unit') ?></legend>
1919
<?php

0 commit comments

Comments
 (0)