summaryrefslogtreecommitdiff
path: root/app/views/extension_modules
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/extension_modules')
-rw-r--r--app/views/extension_modules/_form.html.haml7
-rw-r--r--app/views/extension_modules/_form_core.html.haml6
-rw-r--r--app/views/extension_modules/_index_core.html.haml13
-rw-r--r--app/views/extension_modules/edit.html.haml3
-rw-r--r--app/views/extension_modules/index.html.haml6
-rw-r--r--app/views/extension_modules/new.html.haml3
-rw-r--r--app/views/extension_modules/show.html.haml22
7 files changed, 60 insertions, 0 deletions
diff --git a/app/views/extension_modules/_form.html.haml b/app/views/extension_modules/_form.html.haml
new file mode 100644
index 0000000..496e695
--- /dev/null
+++ b/app/views/extension_modules/_form.html.haml
@@ -0,0 +1,7 @@
+= simple_form_for([@phone, @extension_module]) do |f|
+ = f.error_notification
+
+ = render "form_core", :f => f
+
+ .form-actions
+ = f.button :submit, conditional_t('extension_modules.form.submit')
diff --git a/app/views/extension_modules/_form_core.html.haml b/app/views/extension_modules/_form_core.html.haml
new file mode 100644
index 0000000..bea4a77
--- /dev/null
+++ b/app/views/extension_modules/_form_core.html.haml
@@ -0,0 +1,6 @@
+.inputs
+ = f.input :model, :collection => ExtensionModule::MODELS, :label => t('extension_modules.form.model.label'), :hint => conditional_hint('extension_modules.form.model.hint'), :include_blank => false
+ = f.input :mac_address, :label => t('extension_modules.form.mac_address.label'), :hint => conditional_hint('extension_modules.form.mac_address.hint')
+ = f.input :position, :label => t('extension_modules.form.position.label'), :hint => conditional_hint('extension_modules.form.position.hint')
+ = f.input :active, :label => t('extension_modules.form.active.label'), :hint => conditional_hint('extension_modules.form.active.hint')
+ = f.input :provisioning_key_active, :label => t('extension_modules.form.provisioning_key_active.label'), :hint => conditional_hint('extension_modules.form.provisioning_key_active.hint')
diff --git a/app/views/extension_modules/_index_core.html.haml b/app/views/extension_modules/_index_core.html.haml
new file mode 100644
index 0000000..d5aef48
--- /dev/null
+++ b/app/views/extension_modules/_index_core.html.haml
@@ -0,0 +1,13 @@
+%table.table.table-striped
+ %tr
+ %th= t('extension_modules.index.model')
+ %th= t('extension_modules.index.mac_address')
+ %th= t('extension_modules.index.active')
+
+
+ - for extension_module in extension_modules
+ %tr
+ %td= extension_module.model
+ %td= extension_module.mac_address
+ %td= extension_module.active
+ =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => @phone, :child => extension_module} \ No newline at end of file
diff --git a/app/views/extension_modules/edit.html.haml b/app/views/extension_modules/edit.html.haml
new file mode 100644
index 0000000..4fcb09b
--- /dev/null
+++ b/app/views/extension_modules/edit.html.haml
@@ -0,0 +1,3 @@
+- content_for :title, t("extension_modules.edit.page_title")
+
+= render "form" \ No newline at end of file
diff --git a/app/views/extension_modules/index.html.haml b/app/views/extension_modules/index.html.haml
new file mode 100644
index 0000000..7a57eb5
--- /dev/null
+++ b/app/views/extension_modules/index.html.haml
@@ -0,0 +1,6 @@
+- content_for :title, t("extension_modules.index.page_title")
+
+- if @extension_modules && @extension_modules.count > 0
+ = render "index_core", :extension_modules => @extension_modules
+
+= render :partial => 'shared/create_link', :locals => {:parent => @phone, :child_class => ExtensionModule} \ No newline at end of file
diff --git a/app/views/extension_modules/new.html.haml b/app/views/extension_modules/new.html.haml
new file mode 100644
index 0000000..2b4ae9a
--- /dev/null
+++ b/app/views/extension_modules/new.html.haml
@@ -0,0 +1,3 @@
+- content_for :title, t("extension_modules.new.page_title")
+
+= render "form" \ No newline at end of file
diff --git a/app/views/extension_modules/show.html.haml b/app/views/extension_modules/show.html.haml
new file mode 100644
index 0000000..ac9d099
--- /dev/null
+++ b/app/views/extension_modules/show.html.haml
@@ -0,0 +1,22 @@
+- content_for :title, t("extension_modules.show.page_title")
+
+%p
+ %strong= t('extension_modules.show.model') + ":"
+ = @extension_module.model
+%p
+ %strong= t('extension_modules.show.mac_address') + ":"
+ = @extension_module.mac_address
+%p
+ %strong= t('extension_modules.show.position') + ":"
+ = @extension_module.position
+%p
+ %strong= t('extension_modules.show.active') + ":"
+ = @extension_module.active
+%p
+ %strong= t('extension_modules.show.provisioning_key_active') + ":"
+ = @extension_module.provisioning_key_active
+
+%p
+ = link_to raw("<i class = 'icon-repeat'></i> ") + t('extension_modules.show.actions.restart'), restart_phone_extension_module_path(@phone, @extension_module), :method => :put, :class => 'btn btn-mini'
+
+= render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @phone, :child => @extension_module }