Skip to content

Commit db4c4d3

Browse files
committed
fix for bulk operations
1 parent 0f8578f commit db4c4d3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

web/templates/admin/list_dns_rec.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
</td>
1818
<td>
1919
<form action="/bulk/dns/" method="post">
20+
<input type="hidden" name="domain" value="<?=htmlentities($_GET['domain'])?>" />
2021
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
2122
<div class="l-select">
22-
<select name="" id="">
23+
<select name="action" id="">
2324
<option value=""><?=__('apply to selected')?></option>
2425
<option value="suspend"><?php print __('suspend');?></option>
2526
<option value="unsuspend"><?php print __('unsuspend');?></option>
@@ -71,8 +72,8 @@
7172
v_unit_id="<?=$key?>" v_section="dns_rec">
7273
<div class="l-unit-toolbar clearfix">
7374
<div class="l-unit-toolbar__col l-unit-toolbar__col--left">
74-
<input id="check<?php echo $i ?>" class="ch-toggle" type="checkbox" name="check" value="check<?php echo $i ?>">
75-
<label for="check<?php echo $i ?>" class="check-label"></label>
75+
<input id="check<?=$data[$key]['ID']?>" class="ch-toggle" type="checkbox" name="record[]" value="<?=$data[$key]['ID']?>">
76+
<label for="check<?=$data[$key]['ID']?>" class="check-label"></label>
7677
</div>
7778
<!-- l-unit-toolbar__col -->
7879
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">

0 commit comments

Comments
 (0)