Initial views.
[ecs.git] / app / views / admin / ressources / show.html.erb
blob9a751a34287263f7a4f0e2e56e6e0209842f3659
1 <!--
2 Copyright (C) 2007, 2008, 2009, 2010 Heiko Bernloehr (FreeIT.de).
4 This file is part of ECS.
6 ECS is free software: you can redistribute it and/or modify it
7 under the terms of the GNU Affero General Public License as
8 published by the Free Software Foundation, either version 3 of
9 the License, or (at your option) any later version.
11 ECS is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 Affero General Public License for more details.
16 You should have received a copy of the GNU Affero General Public
17 License along with ECS. If not, see <http://www.gnu.org/licenses/>.
18 -->
21 <h1 class="box1">Show Ressource</h1>
23 <%= link_to 'Edit', edit_admin_ressource_path(:id => @ressource) %> |
24 <%= link_to 'Back', admin_ressources_path %>
26 <P>
27   <label class="box2 table-resource-label">Namespace:</label>
28   <%= @ressource.namespace %>
29 </P>
31 <P>
32   <label class="box2 table-resource-label">Name:</label>
33   <%=h(@ressource.ressource).gsub(/\r\n/, '<BR>') %>
34 </P>
36 <P>
37   <label class="box2 table-resource-label">Postrouted:</label>
38   <%= check_box_tag "ressource[postroute]",1,@ressource.postroute, :disabled => true %>
39 </P>
41 <P>
42   <label class="box2 table-resource-label">Events:</label>
43   <%= check_box_tag "ressource[events]",1,@ressource.events, :disabled => true %>
44 </P>
46 <%= link_to 'Edit', edit_admin_ressource_path(:id => @ressource) %> |
47 <%= link_to 'Back', admin_ressources_path %>