mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 11:21:42 +00:00
forzar al ancho de columnas
This commit is contained in:
parent
8af9b4a2a5
commit
6173922a35
1 changed files with 3 additions and 2 deletions
|
@ -26,10 +26,11 @@
|
|||
= fa_icon 'close', title: t('posts.row.del', group: template.key.humanize)
|
||||
= t('posts.row.del', group: template.key.humanize)
|
||||
-# Separar los campos en dos columnas
|
||||
- template.nested_fields.each_slice(template.cols || 2).to_a.each do |col|
|
||||
- cols = template.cols || 2
|
||||
- template.nested_fields.each_slice(cols).to_a.each do |col|
|
||||
.form-row{class: "align-items-#{template.align || 'start'}"}
|
||||
- col.each do |nf|
|
||||
.col-md
|
||||
%div{class: "col-md-#{12/cols}"}
|
||||
-# Si el template es un array, quiere decir que esperamos un array de hashes.
|
||||
-# El valor vacío luego es reemplazado por un id temporal
|
||||
|
||||
|
|
Loading…
Reference in a new issue