diff options
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/select-alarm_station.html | 7 | ||||
-rw-r--r-- | httemplate/elements/select-alarm_system.html | 7 | ||||
-rw-r--r-- | httemplate/elements/select-alarm_type.html | 8 | ||||
-rw-r--r-- | httemplate/elements/tr-select-alarm_station.html | 12 | ||||
-rw-r--r-- | httemplate/elements/tr-select-alarm_system.html | 12 | ||||
-rw-r--r-- | httemplate/elements/tr-select-alarm_type.html | 12 |
6 files changed, 58 insertions, 0 deletions
diff --git a/httemplate/elements/select-alarm_station.html b/httemplate/elements/select-alarm_station.html new file mode 100644 index 000000000..04d1383b0 --- /dev/null +++ b/httemplate/elements/select-alarm_station.html @@ -0,0 +1,7 @@ +<% include( '/elements/select-table.html', + 'table' => 'alarm_station', + 'name_col' => 'stationname', + 'empty_label' => 'Select central station', + @_, + ) +%> diff --git a/httemplate/elements/select-alarm_system.html b/httemplate/elements/select-alarm_system.html new file mode 100644 index 000000000..7f22fcefa --- /dev/null +++ b/httemplate/elements/select-alarm_system.html @@ -0,0 +1,7 @@ +<% include( '/elements/select-table.html', + 'table' => 'alarm_system', + 'name_col' => 'systemname', + 'empty_label' => 'Select vendor', + @_, + ) +%> diff --git a/httemplate/elements/select-alarm_type.html b/httemplate/elements/select-alarm_type.html new file mode 100644 index 000000000..5f15988b0 --- /dev/null +++ b/httemplate/elements/select-alarm_type.html @@ -0,0 +1,8 @@ +<% include( '/elements/select-table.html', + 'table' => 'alarm_type', + 'name_col' => 'typename', + 'order_by' => 'ORDER BY inputs, outputs', + 'empty_label' => 'Select type', + @_, + ) +%> diff --git a/httemplate/elements/tr-select-alarm_station.html b/httemplate/elements/tr-select-alarm_station.html new file mode 100644 index 000000000..71ed0db0c --- /dev/null +++ b/httemplate/elements/tr-select-alarm_station.html @@ -0,0 +1,12 @@ +% #if ( scalar(@domains) < 2 ) { +% #} else { + <TR> + <TD ALIGN="right"><% $opt{'label'} || 'Central Station' %></TD> + <TD> + <% include( '/elements/select-alarm_station.html', %opt) %> + </TD> + </TR> +% #} +<%init> + my %opt = @_; +</%init> diff --git a/httemplate/elements/tr-select-alarm_system.html b/httemplate/elements/tr-select-alarm_system.html new file mode 100644 index 000000000..a46a015f2 --- /dev/null +++ b/httemplate/elements/tr-select-alarm_system.html @@ -0,0 +1,12 @@ +% #if ( scalar(@domains) < 2 ) { +% #} else { + <TR> + <TD ALIGN="right"><% $opt{'label'} || 'Vendor' %></TD> + <TD> + <% include( '/elements/select-alarm_system.html', %opt) %> + </TD> + </TR> +% #} +<%init> + my %opt = @_; +</%init> diff --git a/httemplate/elements/tr-select-alarm_type.html b/httemplate/elements/tr-select-alarm_type.html new file mode 100644 index 000000000..b929fb8e6 --- /dev/null +++ b/httemplate/elements/tr-select-alarm_type.html @@ -0,0 +1,12 @@ +% #if ( scalar(@domains) < 2 ) { +% #} else { + <TR> + <TD ALIGN="right"><% $opt{'label'} || 'Type' %></TD> + <TD> + <% include( '/elements/select-alarm_type.html', %opt) %> + </TD> + </TR> +% #} +<%init> + my %opt = @_; +</%init> |