- Fix business address layout

- Org view enable all columns by default
This commit is contained in:
Nathan Gray 2015-03-03 22:23:19 +00:00
parent e785f4ba29
commit 3ea2ed1332
2 changed files with 15 additions and 7 deletions

View File

@ -325,7 +325,11 @@ class addressbook_ui extends addressbook_bo
}
// get the availible org-views plus the label of the contacts view of one org
$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']);

View File

@ -41,13 +41,17 @@
</vbox>
<description id="${row}[org_unit]" no_lang="1"/>
<vbox>
<description id="${row}[adr_one_countryname]" no_lang="1"/>
<hbox>
<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_street]" no_lang="1"/>
<description id="${row}[adr_one_street2]" no_lang="1"/>
<hbox>
<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>
<url-phone id="${row}[tel_work]" readonly="true" class="telNumbers"/>