From b80bd744ad873f6fc43018bc4bfb90677de167bd Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Mon, 17 Dec 2012 12:01:45 +0100 Subject: Start of GS5. --- app/views/api/rows/_form.html.erb | 21 +++++++++++++++ app/views/api/rows/edit.html.erb | 3 +++ app/views/api/rows/index.html.erb | 29 ++++++++++++++++++++ app/views/api/rows/new.html.erb | 3 +++ app/views/api/rows/show.html.erb | 56 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 112 insertions(+) create mode 100644 app/views/api/rows/_form.html.erb create mode 100644 app/views/api/rows/edit.html.erb create mode 100644 app/views/api/rows/index.html.erb create mode 100644 app/views/api/rows/new.html.erb create mode 100644 app/views/api/rows/show.html.erb (limited to 'app/views/api/rows') diff --git a/app/views/api/rows/_form.html.erb b/app/views/api/rows/_form.html.erb new file mode 100644 index 0000000..465b105 --- /dev/null +++ b/app/views/api/rows/_form.html.erb @@ -0,0 +1,21 @@ +<%= simple_form_for(@row) do |f| %> + <%= f.error_notification %> + +
+ <%= f.input :user_name %> + <%= f.input :last_name %> + <%= f.input :middle_name %> + <%= f.input :first_name %> + <%= f.input :office_phone_number %> + <%= f.input :internal_extension %> + <%= f.input :mobile_phone_number %> + <%= f.input :fax_phone_number %> + <%= f.input :email %> + <%= f.input :pin %> + <%= f.input :photo_file_name %> +
+ +
+ <%= f.button :submit %> +
+<% end %> diff --git a/app/views/api/rows/edit.html.erb b/app/views/api/rows/edit.html.erb new file mode 100644 index 0000000..bce5694 --- /dev/null +++ b/app/views/api/rows/edit.html.erb @@ -0,0 +1,3 @@ +

Editing row

+ +<%= render 'form' %> \ No newline at end of file diff --git a/app/views/api/rows/index.html.erb b/app/views/api/rows/index.html.erb new file mode 100644 index 0000000..d65e059 --- /dev/null +++ b/app/views/api/rows/index.html.erb @@ -0,0 +1,29 @@ +

Listing rows

+ + + + + + + + + + + + + + +<% @rows.each do |row| %> + '> + + + + + + + + + + +<% end %> +
IDUser nameLast nameFirst nameInternal extensionOffice phone numberFax phone numberEmailPin
<%= row.id %><%= link_to row.user_name, tenant_user_path(row.user.current_tenant, row.user) %><%= row.last_name %><%= row.first_name %><%= row.internal_extension %><%= row.office_phone_number %><%= row.fax_phone_number %><%= row.email %><%= row.pin %>
\ No newline at end of file diff --git a/app/views/api/rows/new.html.erb b/app/views/api/rows/new.html.erb new file mode 100644 index 0000000..fccd964 --- /dev/null +++ b/app/views/api/rows/new.html.erb @@ -0,0 +1,3 @@ +

New row

+ +<%= render 'form' %> \ No newline at end of file diff --git a/app/views/api/rows/show.html.erb b/app/views/api/rows/show.html.erb new file mode 100644 index 0000000..aad60b5 --- /dev/null +++ b/app/views/api/rows/show.html.erb @@ -0,0 +1,56 @@ +

<%= notice %>

+ +

+ User name: + <%= @row.user_name %> +

+ +

+ Last name: + <%= @row.last_name %> +

+ +

+ Middle name: + <%= @row.middle_name %> +

+ +

+ First name: + <%= @row.first_name %> +

+ +

+ Office phone number: + <%= @row.office_phone_number %> +

+ +

+ Internal extension: + <%= @row.internal_extension %> +

+ +

+ Mobile phone number: + <%= @row.mobile_phone_number %> +

+ +

+ Fax phone number: + <%= @row.fax_phone_number %> +

+ +

+ Email: + <%= @row.email %> +

+ +

+ Pin: + <%= @row.pin %> +

+ +

+ Photo file name: + <%= @row.photo_file_name %> +

\ No newline at end of file -- cgit v1.2.3