16 lines
512 B
HTML
16 lines
512 B
HTML
{% $.each(visible_columns || [], function(i, df) { %}
|
|
{% var val = doc.get_formatted(df.fieldname);
|
|
if((df.fieldname !== "description" && df.fieldname !== "item_name") && val) { %}
|
|
<div class="row">
|
|
<div class="col-xs-4 text-ellipsis">
|
|
<strong title="{%= __(df.label) %}">{%= __(df.label) %}:</strong>
|
|
</div>
|
|
<div class="col-xs-8">
|
|
{%= doc.get_formatted(df.fieldname) %}
|
|
</div>
|
|
</div>
|
|
{% } else if (df.fieldname==="description") { %}
|
|
<p>{{ doc.description }}</p>
|
|
{% } %}
|
|
{% }); %}
|