From f8de6d1b315f64e99988e3c4cffb6bea6fadca61 Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Wed, 8 Aug 2012 13:12:54 -0300 Subject: [PATCH] Changing screen to edit templates --- app/views/templates/index.html.erb | 25 ++++++++++++++++--------- public/stylesheets/application.css | 23 +++++++++++++++++++++++ 2 files changed, 39 insertions(+), 9 deletions(-) diff --git a/app/views/templates/index.html.erb b/app/views/templates/index.html.erb index 7d60e48..afe0f7c 100644 --- a/app/views/templates/index.html.erb +++ b/app/views/templates/index.html.erb @@ -1,19 +1,26 @@

<%= _('Edit Templates') %>

+<%= _('Manage the templates used on creation of profiles') %> + <% list_of_templates = [[_('Person') , Person.templates , 'person' ], [_('Community') , Community.templates , 'community' ], [_('Enterprise'), Enterprise.templates, 'enterprise']] %> - + +<% end %> + +<% button_bar do %> + <%= button :back, _('Back to admin panel'), :controller => 'admin_panel' %> +<% end %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index ac13832..ceb1a51 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -5928,6 +5928,29 @@ h1#agenda-title { font-size: 20px; } +/* Templates */ + +.controller-templates .template-kind { + border-bottom: 1px solid #CCC; +} + +.controller-templates .template-kind ul { + padding-left: 5px; +} + +.controller-templates .template-kind li { + list-style: none; + padding: 3px; +} + +.controller-templates .template-kind li:hover { + background-color: #f0f0f0; +} + +.controller-templates .template-kind li a { + font-size: 13px; +} + /* }}} */ #alt-beautify { -- libgit2 0.21.2