blob: b0b439ea02662847448319df122d6da88f4b7233 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<script type="text/x-jquery-tmpl" id="inventory-filter-row">
<tr class="form_row">
<td>
<select class="input select" id="inventory_#{rowNum}_field" name="inventory[#{rowNum}][field]">
<?php foreach (getHostInventories() as $field): ?>
<option value="<?php echo $field['db_field'] ?>"><?php echo $field['title'] ?></option>
<?php endforeach ?>
</select>
</td>
<td>
<input class="input text" type="text" id="inventory_#{rowNum}_value" name="inventory[#{rowNum}][value]"
size="20" maxlength="255">
</td>
<td>
<input class="input link_menu element-table-remove" type="button" id="inventory_#{rowNum}_remove"
name="inventory_#{rowNum}_remove" value="<?php echo _('Remove'); ?>">
</td>
</tr>
</script>
<script type="text/javascript">
(function($) {
$(function() {
$('#inventory-filter').dynamicRows({ template: '#inventory-filter-row' });
});
})(jQuery);
</script>
|