From dcfdfa382ec3e357f1cd3c822fd5e658b0746f85 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 10 Sep 2013 01:34:03 -0700 Subject: svc_cable service have a single serial / MAC / model, not one-to-many devices like svc_phone and svc_dsl, RT#22009 --- httemplate/elements/select-cable_model.html | 7 +++++++ httemplate/elements/tr-select-cable_model.html | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 httemplate/elements/select-cable_model.html create mode 100644 httemplate/elements/tr-select-cable_model.html (limited to 'httemplate/elements') diff --git a/httemplate/elements/select-cable_model.html b/httemplate/elements/select-cable_model.html new file mode 100644 index 000000000..8d65a393e --- /dev/null +++ b/httemplate/elements/select-cable_model.html @@ -0,0 +1,7 @@ +<% include( '/elements/select-table.html', + 'table' => 'cable_model', + 'name_col' => 'model_name', + 'empty_label' => 'Select model', + @_, + ) +%> diff --git a/httemplate/elements/tr-select-cable_model.html b/httemplate/elements/tr-select-cable_model.html new file mode 100644 index 000000000..94b5cd9f0 --- /dev/null +++ b/httemplate/elements/tr-select-cable_model.html @@ -0,0 +1,12 @@ +% #if ( scalar(@domains) < 2 ) { +% #} else { + + <% $opt{'label'} || 'Model' %> + + <% include( '/elements/select-cable_model.html', %opt) %> + + +% #} +<%init> + my %opt = @_; + -- cgit v1.2.1