From 17e61d8c8a16d79fbe8bc22d588f011813a354e8 Mon Sep 17 00:00:00 2001 From: Vadim Costin Date: Wed, 10 Jun 2015 15:37:38 +0300 Subject: [PATCH] chanche buttons style --- app/views/documents/edit.html.erb | 2 +- app/views/documents/new.html.erb | 2 +- app/views/documents/show.html.erb | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/documents/edit.html.erb b/app/views/documents/edit.html.erb index 16c30785fc..b386fb907e 100644 --- a/app/views/documents/edit.html.erb +++ b/app/views/documents/edit.html.erb @@ -34,5 +34,5 @@ See doc/COPYRIGHT.rdoc for more details. <%= labelled_tabular_form_for @document, url: project_document_path(@document) do |f| -%> <%= render partial: "documents/form", locals: { f: f } %> - <%= f.submit l(:button_save), class: "button -highlight" %> + <%= styled_button_tag l(:button_save), class: "-highlight -with-icon icon-yes" %> <% end %> diff --git a/app/views/documents/new.html.erb b/app/views/documents/new.html.erb index bbe95b80c6..6b27ba5572 100644 --- a/app/views/documents/new.html.erb +++ b/app/views/documents/new.html.erb @@ -34,7 +34,7 @@ See doc/COPYRIGHT.rdoc for more details. <%= labelled_tabular_form_for @document, url: project_documents_path(@project), html: { multipart: true } do |f| -%> <%= render :partial => 'documents/form', locals: { f: f } %> <%= render :partial => 'attachments/form' %> - <%= f.submit l(:button_create), class: "button -highlight" %> + <%= styled_button_tag l(:button_create), class: "-highlight -with-icon icon-yes" %> <% end %> diff --git a/app/views/documents/show.html.erb b/app/views/documents/show.html.erb index 3b6a7cd358..4dc3350f27 100644 --- a/app/views/documents/show.html.erb +++ b/app/views/documents/show.html.erb @@ -62,7 +62,8 @@ See doc/COPYRIGHT.rdoc for more details.

<%= render :partial => 'attachments/form' %>

- <%= submit_tag l(:button_add) %> + <%= styled_button_tag l(:button_add), class: "-highlight -with-icon icon-yes" %> + <% end %> <% end %>