Merge pull request #3152 from NahiaSolutions/add_image_to_legislation_processes

Add image to legislation processes and banner colors
This commit is contained in:
Alberto
2019-01-29 16:06:54 +01:00
committed by GitHub
14 changed files with 148 additions and 9 deletions

View File

@@ -201,6 +201,35 @@
<hr>
</div>
<div class="images small-12 column">
<%= render 'images/nested_image', imageable: @process, f: f %>
</div>
<div class="small-12 column">
<hr>
</div>
<div class="small-12 column">
<h3><%= t("admin.legislation.processes.form.banner_title") %></h3>
</div>
<div class="row">
<div class="small-3 column">
<%= f.label :sections, t("admin.legislation.processes.form.banner_background_color") %>
<%= color_field(:process, :background_color, id: 'banner_background_color_picker') %>
<%= f.text_field :background_color, label: false, id: 'banner_background_color' %>
</div>
<div class="small-3 column end">
<%= f.label :sections, t("admin.legislation.processes.form.banner_font_color") %>
<%= color_field(:process, :font_color, id: 'banner_font_color_picker') %>
<%= f.text_field :font_color, label: false, id: 'banner_font_color' %>
</div>
</div>
<div class="small-12 column">
<hr>
</div>
<%= f.translatable_fields do |translations_form| %>
<div class="small-12 medium-9 column">
<%= translations_form.text_field :title,