diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-05 12:42:53 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-05 12:42:53 +0100 |
commit | 01f2ab4e3d5694de81f6ebb594e0e852616ebbd9 (patch) | |
tree | 48613822df4082b080e1ecb68a6c38c1fbdadbfb /app/views | |
parent | 380a4cdfe5cfa573fb916ca7c2145a6062ef8198 (diff) |
Added GsParameter model as a replacement for gemeinschaft_parameters.rb
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/gs_parameters/_form.html.erb | 14 | ||||
-rw-r--r-- | app/views/gs_parameters/edit.html.erb | 6 | ||||
-rw-r--r-- | app/views/gs_parameters/index.html.erb | 29 | ||||
-rw-r--r-- | app/views/gs_parameters/new.html.erb | 5 | ||||
-rw-r--r-- | app/views/gs_parameters/show.html.erb | 25 |
5 files changed, 79 insertions, 0 deletions
diff --git a/app/views/gs_parameters/_form.html.erb b/app/views/gs_parameters/_form.html.erb new file mode 100644 index 0000000..13ad26f --- /dev/null +++ b/app/views/gs_parameters/_form.html.erb @@ -0,0 +1,14 @@ +<%= simple_form_for(@gs_parameter) do |f| %> + <%= f.error_notification %> + + <div class="inputs"> + <%= f.input :name %> + <%= f.input :section %> + <%= f.input :value %> + <%= f.input :class_type %> + </div> + + <div class="actions"> + <%= f.button :submit %> + </div> +<% end %> diff --git a/app/views/gs_parameters/edit.html.erb b/app/views/gs_parameters/edit.html.erb new file mode 100644 index 0000000..6938a40 --- /dev/null +++ b/app/views/gs_parameters/edit.html.erb @@ -0,0 +1,6 @@ +<h1>Editing gs_parameter</h1> + +<%= render 'form' %> + +<%= link_to 'Show', @gs_parameter %> | +<%= link_to 'Back', gs_parameters_path %> diff --git a/app/views/gs_parameters/index.html.erb b/app/views/gs_parameters/index.html.erb new file mode 100644 index 0000000..dee6838 --- /dev/null +++ b/app/views/gs_parameters/index.html.erb @@ -0,0 +1,29 @@ +<h1>Listing gs_parameters</h1> + +<table> + <tr> + <th>Name</th> + <th>Section</th> + <th>Value</th> + <th>Class type</th> + <th></th> + <th></th> + <th></th> + </tr> + +<% @gs_parameters.each do |gs_parameter| %> + <tr> + <td><%= gs_parameter.name %></td> + <td><%= gs_parameter.section %></td> + <td><%= gs_parameter.value %></td> + <td><%= gs_parameter.class_type %></td> + <td><%= link_to 'Show', gs_parameter %></td> + <td><%= link_to 'Edit', edit_gs_parameter_path(gs_parameter) %></td> + <td><%= link_to 'Destroy', gs_parameter, confirm: 'Are you sure?', method: :delete %></td> + </tr> +<% end %> +</table> + +<br /> + +<%= link_to 'New Gs parameter', new_gs_parameter_path %> diff --git a/app/views/gs_parameters/new.html.erb b/app/views/gs_parameters/new.html.erb new file mode 100644 index 0000000..a357e2e --- /dev/null +++ b/app/views/gs_parameters/new.html.erb @@ -0,0 +1,5 @@ +<h1>New gs_parameter</h1> + +<%= render 'form' %> + +<%= link_to 'Back', gs_parameters_path %> diff --git a/app/views/gs_parameters/show.html.erb b/app/views/gs_parameters/show.html.erb new file mode 100644 index 0000000..1f03542 --- /dev/null +++ b/app/views/gs_parameters/show.html.erb @@ -0,0 +1,25 @@ +<p id="notice"><%= notice %></p> + +<p> + <b>Name:</b> + <%= @gs_parameter.name %> +</p> + +<p> + <b>Section:</b> + <%= @gs_parameter.section %> +</p> + +<p> + <b>Value:</b> + <%= @gs_parameter.value %> +</p> + +<p> + <b>Class type:</b> + <%= @gs_parameter.class_type %> +</p> + + +<%= link_to 'Edit', edit_gs_parameter_path(@gs_parameter) %> | +<%= link_to 'Back', gs_parameters_path %> |