From 21995072fb0e57c8209460936c0e5b322a1547c3 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Mon, 3 Jun 2013 17:09:57 +0200 Subject: PagerGroup stuff --- app/views/pager_groups/_form.html.haml | 7 +++++++ app/views/pager_groups/_form_core.html.haml | 3 +++ app/views/pager_groups/_index_core.html.haml | 11 +++++++++++ app/views/pager_groups/edit.html.haml | 3 +++ app/views/pager_groups/index.html.haml | 6 ++++++ app/views/pager_groups/new.html.haml | 3 +++ app/views/pager_groups/show.html.haml | 10 ++++++++++ 7 files changed, 43 insertions(+) create mode 100644 app/views/pager_groups/_form.html.haml create mode 100644 app/views/pager_groups/_form_core.html.haml create mode 100644 app/views/pager_groups/_index_core.html.haml create mode 100644 app/views/pager_groups/edit.html.haml create mode 100644 app/views/pager_groups/index.html.haml create mode 100644 app/views/pager_groups/new.html.haml create mode 100644 app/views/pager_groups/show.html.haml (limited to 'app/views/pager_groups') diff --git a/app/views/pager_groups/_form.html.haml b/app/views/pager_groups/_form.html.haml new file mode 100644 index 0000000..a9d5782 --- /dev/null +++ b/app/views/pager_groups/_form.html.haml @@ -0,0 +1,7 @@ += simple_form_for(@pager_group) do |f| + = f.error_notification + + = render "form_core", :f => f + + .form-actions + = f.button :submit, conditional_t('pager_groups.form.submit') diff --git a/app/views/pager_groups/_form_core.html.haml b/app/views/pager_groups/_form_core.html.haml new file mode 100644 index 0000000..eeb23d2 --- /dev/null +++ b/app/views/pager_groups/_form_core.html.haml @@ -0,0 +1,3 @@ +.inputs + = f.input :sip_account_id, :label => t('pager_groups.form.sip_account_id.label'), :hint => conditional_hint('pager_groups.form.sip_account_id.hint') + = f.input :callback_url, :label => t('pager_groups.form.callback_url.label'), :hint => conditional_hint('pager_groups.form.callback_url.hint') diff --git a/app/views/pager_groups/_index_core.html.haml b/app/views/pager_groups/_index_core.html.haml new file mode 100644 index 0000000..9515bcf --- /dev/null +++ b/app/views/pager_groups/_index_core.html.haml @@ -0,0 +1,11 @@ +%table.table.table-striped + %tr + %th= t('pager_groups.index.sip_account_id') + %th= t('pager_groups.index.callback_url') + + + - for pager_group in pager_groups + %tr + %td= pager_group.sip_account_id + %td= pager_group.callback_url + =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => pager_group} \ No newline at end of file diff --git a/app/views/pager_groups/edit.html.haml b/app/views/pager_groups/edit.html.haml new file mode 100644 index 0000000..ec71984 --- /dev/null +++ b/app/views/pager_groups/edit.html.haml @@ -0,0 +1,3 @@ +- content_for :title, t("pager_groups.edit.page_title") + += render "form" \ No newline at end of file diff --git a/app/views/pager_groups/index.html.haml b/app/views/pager_groups/index.html.haml new file mode 100644 index 0000000..455e90e --- /dev/null +++ b/app/views/pager_groups/index.html.haml @@ -0,0 +1,6 @@ +- content_for :title, t("pager_groups.index.page_title") + +- if @pager_groups && @pager_groups.count > 0 + = render "index_core", :pager_groups => @pager_groups + += render :partial => 'shared/create_link', :locals => {:child_class => PagerGroup} \ No newline at end of file diff --git a/app/views/pager_groups/new.html.haml b/app/views/pager_groups/new.html.haml new file mode 100644 index 0000000..fbb6ac3 --- /dev/null +++ b/app/views/pager_groups/new.html.haml @@ -0,0 +1,3 @@ +- content_for :title, t("pager_groups.new.page_title") + += render "form" \ No newline at end of file diff --git a/app/views/pager_groups/show.html.haml b/app/views/pager_groups/show.html.haml new file mode 100644 index 0000000..5e0a8c7 --- /dev/null +++ b/app/views/pager_groups/show.html.haml @@ -0,0 +1,10 @@ +- content_for :title, t("pager_groups.show.page_title") + +%p + %strong= t('pager_groups.show.sip_account_id') + ":" + = @pager_group.sip_account_id +%p + %strong= t('pager_groups.show.callback_url') + ":" + = @pager_group.callback_url + += render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @pager_group } \ No newline at end of file -- cgit v1.2.3