summaryrefslogtreecommitdiff
path: root/app/views/conference_invitees
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/conference_invitees')
-rw-r--r--app/views/conference_invitees/_form.html.haml7
-rw-r--r--app/views/conference_invitees/_form_core.html.haml7
-rw-r--r--app/views/conference_invitees/_index_core.html.haml17
-rw-r--r--app/views/conference_invitees/edit.html.haml3
-rw-r--r--app/views/conference_invitees/index.html.haml6
-rw-r--r--app/views/conference_invitees/new.html.haml3
-rw-r--r--app/views/conference_invitees/show.html.haml20
7 files changed, 63 insertions, 0 deletions
diff --git a/app/views/conference_invitees/_form.html.haml b/app/views/conference_invitees/_form.html.haml
new file mode 100644
index 0000000..400580d
--- /dev/null
+++ b/app/views/conference_invitees/_form.html.haml
@@ -0,0 +1,7 @@
+= simple_form_for([@conference, @conference_invitee]) do |f|
+ = f.error_notification
+
+ = render "form_core", :f => f
+
+ .actions
+ = f.button :submit, conditional_t('conference_invitees.form.submit') \ No newline at end of file
diff --git a/app/views/conference_invitees/_form_core.html.haml b/app/views/conference_invitees/_form_core.html.haml
new file mode 100644
index 0000000..3cac18d
--- /dev/null
+++ b/app/views/conference_invitees/_form_core.html.haml
@@ -0,0 +1,7 @@
+.inputs
+ = f.simple_fields_for :phone_number, @phone_number do |p|
+ = p.input :number, :label => t('phone_numbers.form.number.label'), :hint => conditional_hint('phone_numbers.form.number.hint')
+
+ = f.input :pin, :label => t('conference_invitees.form.pin.label'), :hint => conditional_hint('conference_invitees.form.pin.hint')
+ = f.input :speaker, :label => t('conference_invitees.form.speaker.label'), :hint => conditional_hint('conference_invitees.form.speaker.hint')
+ = f.input :moderator, :label => t('conference_invitees.form.moderator.label'), :hint => conditional_hint('conference_invitees.form.moderator.hint')
diff --git a/app/views/conference_invitees/_index_core.html.haml b/app/views/conference_invitees/_index_core.html.haml
new file mode 100644
index 0000000..f84af7d
--- /dev/null
+++ b/app/views/conference_invitees/_index_core.html.haml
@@ -0,0 +1,17 @@
+%table
+ %tr
+ %th= t('conference_invitees.index.phone_book_entry_id')
+ %th= t('conference_invitees.index.phone_number')
+ %th= t('conference_invitees.index.pin')
+ %th= t('conference_invitees.index.speaker')
+ %th= t('conference_invitees.index.moderator')
+
+ - reset_cycle
+ - for conference_invitee in conference_invitees
+ %tr{:class => cycle('odd', 'even')}
+ %td= conference_invitee.phone_book_entry || '-'
+ %td= conference_invitee.phone_number
+ %td= conference_invitee.pin
+ %td= conference_invitee.speaker
+ %td= conference_invitee.moderator
+ =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => conference_invitee.conference, :child => conference_invitee} \ No newline at end of file
diff --git a/app/views/conference_invitees/edit.html.haml b/app/views/conference_invitees/edit.html.haml
new file mode 100644
index 0000000..ce90bbe
--- /dev/null
+++ b/app/views/conference_invitees/edit.html.haml
@@ -0,0 +1,3 @@
+- title t("conference_invitees.edit.page_title")
+
+= render "form" \ No newline at end of file
diff --git a/app/views/conference_invitees/index.html.haml b/app/views/conference_invitees/index.html.haml
new file mode 100644
index 0000000..2a0c26c
--- /dev/null
+++ b/app/views/conference_invitees/index.html.haml
@@ -0,0 +1,6 @@
+- title t("conference_invitees.index.page_title")
+
+- if @conference_invitees.count > 0
+ = render "index_core", :conference_invitees => @conference_invitees
+
+= render :partial => 'shared/create_link', :locals => {:parent => @conference, :child_class => ConferenceInvitee} \ No newline at end of file
diff --git a/app/views/conference_invitees/new.html.haml b/app/views/conference_invitees/new.html.haml
new file mode 100644
index 0000000..780494e
--- /dev/null
+++ b/app/views/conference_invitees/new.html.haml
@@ -0,0 +1,3 @@
+- title t("conference_invitees.new.page_title")
+
+= render "form"
diff --git a/app/views/conference_invitees/show.html.haml b/app/views/conference_invitees/show.html.haml
new file mode 100644
index 0000000..57c5627
--- /dev/null
+++ b/app/views/conference_invitees/show.html.haml
@@ -0,0 +1,20 @@
+- title t("conference_invitees.show.page_title")
+
+%p
+ %strong= t('conference_invitees.show.conference_id') + ":"
+ = @conference_invitee.conference
+- if @conference_invitee.phone_book_entry_id
+ %p
+ %strong= t('conference_invitees.show.phone_book_entry_id') + ":"
+ = @conference_invitee.phone_book_entry
+%p
+ %strong= t('conference_invitees.show.pin') + ":"
+ = @conference_invitee.pin
+%p
+ %strong= t('conference_invitees.show.speaker') + ":"
+ = @conference_invitee.speaker
+%p
+ %strong= t('conference_invitees.show.moderator') + ":"
+ = @conference_invitee.moderator
+
+= render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @conference_invitee.conference, :child => @conference_invitee } \ No newline at end of file