unifies styles and html code

This commit is contained in:
decabeza
2017-05-24 13:03:25 +02:00
parent d28c45a926
commit 28e17b870c
8 changed files with 23 additions and 31 deletions

View File

@@ -58,7 +58,7 @@
// 03. Legislation cards
// -----------------
.legislation {
margin: 0 0 5rem 0;
margin: 0 0 $line-height 0;
background: white;
border: 1px solid;
border-color: #e5e6e9 #dfe0e4 #d0d1d5;

View File

@@ -1,7 +1,6 @@
<%= form_for [:admin, @process, @draft_version], url: url, html: {data: {watch_changes: true}} do |f| %>
<% if @draft_version.errors.any? %>
<div id="error_explanation" data-alert class="callout alert" data-closable>
<button class="close-button" aria-label="<%= t("application.close") %>" type="button" data-close>
<span aria-hidden="true">&times;</span>
@@ -12,8 +11,7 @@
<%= t("admin.legislation.draft_versions.errors.form.error", count: @draft_version.errors.count) %>
</strong>
</div>
<% end %>
<% end %>
<div class="row">
<div class="small-12 medium-4 column">

View File

@@ -1,7 +1,6 @@
<%= form_for [:admin, @process, @question], url: url, html: {data: {watch_changes: true}} do |f| %>
<% if @question.errors.any? %>
<div id="error_explanation" data-alert class="callout alert" data-closable>
<button class="close-button" aria-label="<%= t("application.close") %>" type="button" data-close>
<span aria-hidden="true">&times;</span>
@@ -12,9 +11,7 @@
<%= t("admin.legislation.questions.errors.form.error", count: @question.errors.count) %>
</strong>
</div>
<% end %>
<% end %>
<div class="small-12 medium-4 column">
<%= f.label :title %>
@@ -35,7 +32,6 @@
<%= link_to_add_association t('.add_option'), f, :question_options %>
</div>
<div class="row">
<div class="actions small-12 medium-3 column legislation-process-save">
<%= f.submit(class: "button expanded", value: t("admin.legislation.questions.#{admin_submit_action(@question)}.submit_button")) %>

View File

@@ -34,4 +34,3 @@
</div>
</div>
</div>

View File

@@ -1,2 +1 @@
$("#comments-box").html("<%= j render('form') %>");

View File

@@ -44,3 +44,4 @@
</div>
</div>
</div>
</div>

View File

@@ -76,5 +76,4 @@
</div>
</div>
</div>