Feature #8343

Add wiki toolbar to "Email header" and "Email footer" in "Email notifications" admin tab

Added by Luis Serrano Aranda over 8 years ago. Updated 2 months ago.

Status:ClosedStart date:2011-05-11
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Administration
Target version:4.1.0
Resolution:Fixed

Description

It is possible to change and put the bar wiki bar indside the emails header ?

I try but don't work ...
Could you helpme

I try changing this in the _notifications.rhtm:
From

<fieldset class="box"><legend><%= l(:setting_emails_header) %></legend>
<%= setting_text_area :emails_header, :label => false, :class => 'wiki-edit', :rows => 5 %>
</fieldset>

To
<fieldset class="box"><legend><%= l(:setting_emails_header) %></legend>
<%= setting_text_area :emails_header, :label => false, :class => 'wiki-edit', :rows => 5 %>
<%= wikitoolbar_for 'settings_emails_header' %>
</fieldset>

Thanks

add-wiki-toolbar@2x.png (29.8 KB) Go MAEDA, 2019-09-17 06:13

Associated revisions

Revision 18475
Added by Go MAEDA 2 months ago

Add wiki toolbar to "Email header" and "Email footer" in "Email notifications" admin tab (#8343).

Patch by Go MAEDA.

History

#1 Updated by Etienne Massip over 8 years ago

  • Category set to Administration

#2 Updated by Etienne Massip over 8 years ago

  • Target version set to Candidate for next major release

#3 Updated by Go MAEDA 2 months ago

Here is a patch to implement the feature.

diff --git a/app/views/settings/_notifications.html.erb b/app/views/settings/_notifications.html.erb
index f50bd33cb..5eb73d879 100644
--- a/app/views/settings/_notifications.html.erb
+++ b/app/views/settings/_notifications.html.erb
@@ -22,10 +22,12 @@

 <fieldset class="box"><legend><%= l(:setting_emails_header) %></legend>
 <%= setting_text_area :emails_header, :label => false, :class => 'wiki-edit', :rows => 5 %>
+<%= wikitoolbar_for 'settings_emails_header' %>
 </fieldset>

 <fieldset class="box"><legend><%= l(:setting_emails_footer) %></legend>
 <%= setting_text_area :emails_footer, :label => false, :class => 'wiki-edit', :rows => 5 %>
+<%= wikitoolbar_for 'settings_emails_footer' %>
 </fieldset>

 <div style="float:right;">

#4 Updated by Go MAEDA 2 months ago

  • Subject changed from Add wikibar inside notifications menu to Add wiki toolbar to "Email header" and "Email footer" in "Email notifications" admin tab
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch.

Also available in: Atom PDF