brotherton-erpnext/erpnext/templates/form_grid/includes/visible_cols.html

16 lines
507 B
HTML
Raw Normal View History

{% $.each(visible_columns || [], function(i, df) { %}
2014-07-30 13:02:08 +00:00
{% var val = doc.get_formatted(df.fieldname);
if((df.fieldname !== "description" && df.fieldname !== "item_name") && val) { %}
<div class="row">
2016-11-02 02:04:17 +00:00
<div class="col-xs-4 ellipsis">
<strong title="{%= __(df.label) %}">{%= __(df.label) %}:</strong>
</div>
<div class="col-xs-8">
2014-07-30 13:02:08 +00:00
{%= doc.get_formatted(df.fieldname) %}
</div>
</div>
{% } else if (df.fieldname==="description") { %}
<p>{{ doc.description }}</p>
{% } %}
{% }); %}