diff --git a/app/views/email_templates/index.html.erb b/app/views/email_templates/index.html.erb index 26a9651..3bf0329 100644 --- a/app/views/email_templates/index.html.erb +++ b/app/views/email_templates/index.html.erb @@ -1,25 +1,27 @@ -

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

+
+

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

- - - - - - +
<%= _('Name') %><%= _('Type') %>
+ + + + + -<% @email_templates.each do |email_template| %> - - - - - -<% end %> -
<%= _('Name') %><%= _('Type') %><%= _('Actions') %>
<%= email_template.name %><%= email_template.available_types[email_template.template_type][:description] if email_template.template_type.present? %> - <%= link_to 'Edit', url_for(:controller => :email_templates, :action => :edit, :id => email_template.id) %> - <%= link_to 'Destroy', url_for(:controller => :email_templates, :action => :destroy, :id => email_template.id), method: :delete, data: { confirm: 'Are you sure?' } %> -
+ <% @email_templates.each do |email_template| %> + + <%= email_template.name %> + <%= email_template.available_types[email_template.template_type][:description] if email_template.template_type.present? %> + + <%= button_without_text(:edit, _('Edit'), {:controller => :email_templates, :action => :edit, :id => email_template.id}) %> + <%= button_without_text(:remove, _('Remove'), {:controller => :email_templates, :action => :destroy, :id => email_template.id}, method: :delete, data: { confirm: 'Are you sure?' }) %> + + + <% end %> + -
+
-<%= button(:new, _('New template'), :controller => :email_templates, :action => :new) %> -<%= button(:back, _('Back to control panel'), :controller => :profile_editor) %> + <%= button(:new, _('New template'), :controller => :email_templates, :action => :new) %> + <%= button(:back, _('Back to control panel'), :controller => :profile_editor) %> +
diff --git a/public/stylesheets/email-templates.css b/public/stylesheets/email-templates.css index 6cf4b4b..556ecd0 100644 --- a/public/stylesheets/email-templates.css +++ b/public/stylesheets/email-templates.css @@ -13,3 +13,6 @@ text-decoration: none; font-size: 10px; } +.email-templates table td { + text-align: center; +} -- libgit2 0.21.2