From 768054582e2dc6c033e08d627521928ab4bd3524 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Tue, 23 Jul 2013 10:46:21 +0200 Subject: extension_modules added --- app/views/extension_modules/_form.html.haml | 7 +++++++ app/views/extension_modules/_form_core.html.haml | 6 ++++++ app/views/extension_modules/_index_core.html.haml | 13 +++++++++++++ app/views/extension_modules/edit.html.haml | 3 +++ app/views/extension_modules/index.html.haml | 6 ++++++ app/views/extension_modules/new.html.haml | 3 +++ app/views/extension_modules/show.html.haml | 19 +++++++++++++++++++ 7 files changed, 57 insertions(+) create mode 100644 app/views/extension_modules/_form.html.haml create mode 100644 app/views/extension_modules/_form_core.html.haml create mode 100644 app/views/extension_modules/_index_core.html.haml create mode 100644 app/views/extension_modules/edit.html.haml create mode 100644 app/views/extension_modules/index.html.haml create mode 100644 app/views/extension_modules/new.html.haml create mode 100644 app/views/extension_modules/show.html.haml (limited to 'app/views/extension_modules') 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..bb408ef --- /dev/null +++ b/app/views/extension_modules/show.html.haml @@ -0,0 +1,19 @@ +- 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 + += render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @phone, :child => @extension_module } -- cgit v1.2.3