From b6ca062670b342344df08b53fb216db619ef42bc Mon Sep 17 00:00:00 2001 From: Nicolas Braud-Santoni Date: Sun, 7 Aug 2016 16:39:42 +0200 Subject: Import legacy manman source Copied from www.ffgraz.net --- app/views/node/_plist.rhtml | 17 ++++++++++++++ app/views/node/_pshow.rhtml | 54 +++++++++++++++++++++++++++++++++++++++++++ app/views/node/edit.rhtml | 34 +++++++++++++++++++++++++++ app/views/node/edit.rhtml.bak | 25 ++++++++++++++++++++ app/views/node/list.rhtml | 2 ++ app/views/node/new.rhtml | 44 +++++++++++++++++++++++++++++++++++ 6 files changed, 176 insertions(+) create mode 100644 app/views/node/_plist.rhtml create mode 100644 app/views/node/_pshow.rhtml create mode 100644 app/views/node/edit.rhtml create mode 100644 app/views/node/edit.rhtml.bak create mode 100644 app/views/node/list.rhtml create mode 100644 app/views/node/new.rhtml (limited to 'app/views/node') diff --git a/app/views/node/_plist.rhtml b/app/views/node/_plist.rhtml new file mode 100644 index 0000000..c329d4c --- /dev/null +++ b/app/views/node/_plist.rhtml @@ -0,0 +1,17 @@ + + + + + +<% @nodes.each do |node| %> + + + + + + + + +<% end %> +
NameLocationKommentar
<%= node.name %><%= node.location.name %><%= node.comment %><%= link_to 'Show', :action => 'show', :controller => 'node', :id => node %><%= link_to 'Edit', :action => 'edit', :controller => 'node', :id => node %><%= link_to 'Destroy', { :action => 'destroy', :controller => 'node', :id => node }, :confirm => 'Are you sure?', :post => true %>
+ diff --git a/app/views/node/_pshow.rhtml b/app/views/node/_pshow.rhtml new file mode 100644 index 0000000..df7b132 --- /dev/null +++ b/app/views/node/_pshow.rhtml @@ -0,0 +1,54 @@ + +<% @nodes.each do |node| %> + + + + + + + + + + + <% if node.person %> + + + <% end %> + + + + + + + <% node.ip.each do |ip| %> + + + + <% if ip.nets != nil %> + <% if ip.nets.netmask != '255.255.255.255' %> + + <% else %> + + <% end %> + <% else %> + + <% end %> + + + <% end %> + + + + <% if node.smokeping %> + + <% else %> + + <% end %> + +
Name<%= node.name %>
Kommentar<%= node.comment %>
Administrator<%= node.person.email %>
InterfacesNameIPNetmaskLink
<%= ip.name %><%= link_to ip.ip, "http://#{ip.ip}" %><%= ip.nets.netmask %><%= '255.255.0.0' %><%= ip.net_id %><%= link_to "intern", "http://#{ip.name}.#{node.name}.#{node.location.name}.graz.funkfeuer.at" %> | <%= link_to "extern", "http://#{ip.name}.#{node.name}.#{node.location.name}.ext.graz.funkfeuer.at" %>
Smokepingenableddisabled
+

+ <%= link_to 'Edit', { :controller =>'node', :action => 'edit' , :id => node.id } %> | + <%= link_to 'Destroy', { :controller => 'node', :action => 'destroy', :id => node.id } %> +

+

+<% end %> diff --git a/app/views/node/edit.rhtml b/app/views/node/edit.rhtml new file mode 100644 index 0000000..3686853 --- /dev/null +++ b/app/views/node/edit.rhtml @@ -0,0 +1,34 @@ +<%= render :partial => "person/nav" %> + +

Node

+<%= start_form_tag :action => 'update', :id => @node %> + + + + + + + + + + + + + + + +
Name<%= text_field 'node', 'name' %>
Kommentar<%= text_area('node', 'comment', :cols => 40, :rows => 5) %>
Administrator + +
Smokeping<%= check_box "node", "smokeping" %>
+ <%= submit_tag 'Edit' %> +<%= end_form_tag %> +
+<%= link_to 'Back', { :controller => 'location', :action => 'show', :id => @node.location.id } %> diff --git a/app/views/node/edit.rhtml.bak b/app/views/node/edit.rhtml.bak new file mode 100644 index 0000000..c14bd94 --- /dev/null +++ b/app/views/node/edit.rhtml.bak @@ -0,0 +1,25 @@ +

Node

+<%= start_form_tag :action => 'update', :id => @node %> + + + + + + + + + + +
Name<%= text_field 'node', 'name' %>
Kommentar<%= text_field 'location', 'comment' %>
Administrator + +
+ <%= submit_tag 'Edit' %> +<%= end_form_tag %> diff --git a/app/views/node/list.rhtml b/app/views/node/list.rhtml new file mode 100644 index 0000000..a6f4ed4 --- /dev/null +++ b/app/views/node/list.rhtml @@ -0,0 +1,2 @@ +

Nodes

+<%= render :partial => "plist", :object => @nodes %> diff --git a/app/views/node/new.rhtml b/app/views/node/new.rhtml new file mode 100644 index 0000000..a1585fc --- /dev/null +++ b/app/views/node/new.rhtml @@ -0,0 +1,44 @@ +<%= render :partial => "person/nav" %> + +

Neuer Router

+ +<%= start_form_tag :action => 'do_new' %> + + + + + + + + + + + + + + + + + + + +
Location: + <%= @node.location.name %> +
Name:<%= text_field 'node', 'name' %>
Kommentar:<%= text_area 'node', 'comment', 'rows' => 4 %>
Administrator + +
Smokeping<%= check_box "node", "smokeping" %>
+ <%= hidden_field 'node', 'location_id' %> + <%= submit_tag "Create" %> +<%= end_form_tag %> + + +

Hinweise

+

Als Name bitte z.B 'omni' oder einen anden anderen, die Abstrahlcharakteristik bezeichenden Namen.

-- cgit v1.2.1