- This topic has 2 replies, 2 voices, and was last updated 2 days, 13 hours ago by .
-
Topic
-
Hi Guys,
I´m having trouble to format a text out of an array in views. (Image below)
First items OK, date OK, but the description at the end is long and uses more than one line, so my table becomes messy. Question: Is there a way to format the first items to suit the lines of the description, so it keeps the same alignment at the table?
Many thanksand code
<div class="row text-white "> <div class="col-2 bg-secondary border border-right-0 border-dark"> <h8>SETOR</h8></div> <div class="col-3 bg-secondary border border-right-0 border-dark"> <h8>NOME ATIVIDADE</h8></div> <div class="col-1 bg-secondary text-nowrap border border-right-0 border-dark"> <h8>DATA INICIO</h8></div> <div class="col-1 bg-secondary border border-right-0 border-dark"> <h8>DATA FIM</h8></div> <div class="col-2 bg-secondary border border-dark"> <h8>STATUS </h8></div> <div class="col-3 bg-secondary border border-left-0 border-dark"> <h8>DESCRICAO</h8></div></div> <div class="row bg-light "> <div class="col-2 border border-right-0 border-dark"><h7>{% for clone in post.group_atividade %} -- {{ clone.setor_atividade }} <br> {% endfor %} </h7> </div> <div class="col-3 border border-right-0 border-dark"><h7>{% for clone in post.group_atividade %} {{ clone.nome_atividade }} <br> {% endfor %} </h7></div> <div class="col-1 border border-right-0 border-dark">{% for clone in post.group_atividade %} {{ clone.data_inicio }} <br> {% endfor %}</div> <div class="col-1 border border-right-0 border-dark">{% for clone in post.group_atividade %} {{ clone.data_fim }}<br> {% endfor %}</div> <div class="col-2 border border-dark">{% for clone in post.group_atividade %} {{ clone.atividade_status }}<br> {% endfor %}</div> <div class="col-3 border border-left-0 border-dark">{% for clone in post.group_atividade %} {{ clone.desc_atividade }}<br>---<br> {% endfor %}</div> </div></div></div>
many thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.