- Fix business address layout

- Org view enable all columns by default
This commit is contained in:
Nathan Gray 2015-03-31 15:07:31 +00:00
parent 4c1424db9b
commit 82fef6bf66
2 changed files with 15 additions and 7 deletions

View File

@ -323,7 +323,11 @@ class addressbook_ui extends addressbook_bo
} }
// get the availible org-views plus the label of the contacts view of one org // get the availible org-views plus the label of the contacts view of one org
$sel_options['org_view'] = $this->org_views; $sel_options['org_view'] = $this->org_views;
if (isset($org_view)) $content['nm']['org_view'] = $org_view; if (isset($org_view))
{
$content['nm']['org_view'] = $org_view;
$content['nm']['default_cols'] = '';
}
$content['nm']['actions'] = $this->get_actions($content['nm']['col_filter']['tid'], $content['nm']['org_view']); $content['nm']['actions'] = $this->get_actions($content['nm']['col_filter']['tid'], $content['nm']['org_view']);

View File

@ -25,13 +25,17 @@
<description id="${row}[org_name]" no_lang="1"/> <description id="${row}[org_name]" no_lang="1"/>
<description id="${row}[org_unit]" no_lang="1"/> <description id="${row}[org_unit]" no_lang="1"/>
<vbox options="0,0"> <vbox options="0,0">
<description id="${row}[adr_one_countryname]" no_lang="1"/> <description id="${row}[adr_one_street]" no_lang="1"/>
<hbox options="0,0" orient="0">
<description no_lang="1" id="${row}[adr_one_locality]"/>
<description id="${row}[adr_one_postalcode]" class="leftPad5" value=" " no_lang="1"/>
</hbox>
<description no_lang="1" id="${row}[adr_one_street]"/>
<description id="${row}[adr_one_street2]" no_lang="1"/> <description id="${row}[adr_one_street2]" no_lang="1"/>
<hbox options="0,0" orient="0">
<description id="${row}[adr_one_postalcode]" no_lang="1"/>
<description value=" " id="${row}[adr_one_locality]" no_lang="1" class="leftPad5"/>
<description id="${row}[adr_one_region]" no_lang="1" class="leftPad5"/>
</hbox>
<description id="${row}[adr_one_countryname]" no_lang="1"/>
<menulist>
<menupopup type="select-country" id="${row}[adr_one_countrycode]" readonly="true"/>
</menulist>
</vbox> </vbox>
</row> </row>
</rows> </rows>