]> git.openstreetmap.org Git - rails.git/blob - app/views/shared/_richtext_field.html.erb
Add minitest-focus gem
[rails.git] / app / views / shared / _richtext_field.html.erb
1 <div id="<%= id %>_container" class="row richtext_container">
2   <div id="<%= id %>_content" class="col-sm-8 mb-3 mb-sm-0 richtext_content">
3     <%= builder.text_area(attribute, options.merge(:wrapper => false, "data-preview-url" => preview_url(:type => type))) %>
4     <div id="<%= id %>_preview" class="richtext_preview richtext text-break"></div>
5   </div>
6   <div id="<%= id %>_help" class="col-sm-4 richtext_help">
7     <div class="card bg-light h-100">
8       <div class="card-body">
9         <%= render :partial => "shared/#{type}_help" %>
10         <%= submit_tag t(".edit"), :id => "#{id}_doedit", :class => "richtext_doedit btn btn-primary", :disabled => true %>
11         <%= submit_tag t(".preview"), :id => "#{id}_dopreview", :class => "richtext_dopreview btn btn-primary" %>
12       </div>
13     </div>
14   </div>
15 </div>