Form layouts and partials

pull/11725/head
Juan Ignacio Sánchez Lara 8 years ago
parent 45ad61a1ac
commit fb6f989ba0

@ -0,0 +1,3 @@
<%-# @param form [ActionView::Helpers::FormBuilder] Current form -%>
<%-# @param field [Symbol] Model attribute for the field -%>
<%= form.text_field field, :class => "CDB-InputText CDB-Text FormAccount-input FormAccount-input--med" %>

@ -0,0 +1,4 @@
<%-# @param text [String] Text for the label -%>
<div class="FormAccount-rowLabel">
<label class="CDB-Text CDB-Size-medium is-semibold u-mainTextColor"><%= text %></label>
</div>

@ -0,0 +1,3 @@
<div class="FormAccount-row">
<%= yield %>
</div>

@ -0,0 +1,3 @@
<div class="FormAccount-rowData">
<%= yield %>
</div>

@ -0,0 +1,6 @@
<%-# @param form [ActionView::Helpers::FormBuilder] Current form -%>
<%-# @param text [String] Text for the button -%>
<%= button_tag(class: "CDB-Button CDB-Button--primary") do %>
<span class="CDB-Button-Text CDB-Text is-semibold CDB-Size-small u-upperCase"><%= text %></span>
<% end %>
Loading…
Cancel
Save