- <% include( '/elements/tr-select-agent.html',
- 'curr_value' => scalar( $cgi->param('agentnum') ),
- 'disable_empty' => 0,
- )
- %>
-
- <% include( '/elements/tr-select-pkg_class.html',
- 'pre_options' => [ '0' => 'all' ],
- 'empty_label' => '(empty class)',
- )
- %>
-
-% if ( scalar( qsearch( 'part_pkg_report_option', { 'disabled' => '' } ) ) ) {
-% # the m2 javascript magic in edit/elements/edit.html would be better here
-
- <% include( '/elements/tr-select-table.html',
- 'label' => 'Column report classes',
- 'table' => 'part_pkg_report_option',
- 'name_col' => 'name',
- 'hashref' => { 'disabled' => '' },
- 'element_name' => 'column_option',
- 'multiple' => 'multiple',
- )
- %>
-
- <% include( '/elements/tr-select-table.html',
- 'label' => 'Row report classes',
- 'table' => 'part_pkg_report_option',
- 'name_col' => 'name',
- 'hashref' => { 'disabled' => '' },
- 'element_name' => 'row_option',
- 'multiple' => 'multiple',
- )
- %>
-
-% }
-
+ <& /elements/tr-select-agent.html,
+ 'curr_value' => scalar( $cgi->param('agentnum') ),
+ 'disable_empty' => 0,
+ &>
+
+ <& /elements/tr-input-date-field.html, {
+ 'label' => 'As of date',
+ 'name' => 'date',
+ 'value' => '',
+ 'format' => '%m/%d/%Y'
+ } &>
+
+ <& /elements/tr-checkbox-multiple.html,
+ 'label' => 'Enable parts',
+ 'field' => 'parts',
+ 'labels' => {
+ 6 => 'Part 6 (Fixed Broadband Subscription)',
+ #7 => 'Part 7 (Mobile Wireless Broadband Subscription),
+ #8 => 'Part 8 (Mobile Local Telephone Subscription),
+ 9 => 'Part 9 (Local Exchange Telephone Subscription)',
+ 10 => 'Part 10 (Interconnected VoIP Subscription)',
+ 11 => 'Part 11 (Voice Telephone Subscription Detail)',
+ },
+ options => [ 6, 9, 10, 11 ],
+ &>