Skip to content

Commit 19a7aae

Browse files
author
flo
committed
Improve client circle page
1 parent 6b890e9 commit 19a7aae

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

interface/web/client/form/client_circle.tform.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,11 @@
112112
'default' => '',
113113
'separator' => ',',
114114
'datasource' => array ( 'type' => 'SQL',
115-
'querystring' => 'SELECT client_id,contact_name FROM client WHERE {AUTHSQL} ORDER BY contact_name',
115+
'querystring' => 'SELECT client_id,CONCAT(company_name, " (",contact_firstname, " ", contact_name, ")") as contact_label FROM client WHERE {AUTHSQL} ORDER BY contact_label',
116116
'keyfield'=> 'client_id',
117-
'valuefield'=> 'contact_name'
117+
'valuefield'=> 'contact_label'
118118
),
119+
'render_inline' => 'n',
119120
'value' => ''
120121
),
121122
'description' => array (

interface/web/client/templates/client_circle_edit.htm

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ <h1><tmpl_var name="list_head_txt"></h1>
99
<div class="form-group">
1010
<label for="circle_name" class="col-sm-3 control-label">{tmpl_var name='circle_name_txt'}*</label>
1111
<div class="col-sm-9"><input type="text" name="circle_name" id="circle_name" value="{tmpl_var name='circle_name'}" class="form-control" /></div></div>
12-
<div class="form-group">
13-
<label class="col-sm-3 control-label">{tmpl_var name='client_ids_txt'}</label>
14-
<div class="col-sm-9">
15-
{tmpl_var name='client_ids'}
16-
</div>
17-
</div>
1812
<div class="form-group">
1913
<label for="description" class="col-sm-3 control-label">{tmpl_var name='description_txt'}</label>
2014
<div class="col-sm-9"><textarea class="form-control" name="description" id="description" rows='10' cols='30'>{tmpl_var name='description'}</textarea></div>
@@ -25,6 +19,13 @@ <h1><tmpl_var name="list_head_txt"></h1>
2519
{tmpl_var name='active'}
2620
</div>
2721
</div>
22+
<hr>
23+
<div class="form-group">
24+
<label class="col-sm-3 control-label">{tmpl_var name='client_ids_txt'}</label>
25+
<div class="col-sm-9">
26+
{tmpl_var name='client_ids'}
27+
</div>
28+
</div>
2829
{tmpl_var name='required_fields_txt'}
2930

3031

@@ -33,4 +34,4 @@ <h1><tmpl_var name="list_head_txt"></h1>
3334
<div class="clear"><div class="right">
3435
<button class="btn btn-default formbutton-success" type="button" value="{tmpl_var name='btn_save_txt'}" data-submit-form="pageForm" data-form-action="client/client_circle_edit.php">{tmpl_var name='btn_save_txt'}</button>
3536
<button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="client/client_circle_list.php">{tmpl_var name='btn_cancel_txt'}</button>
36-
</div></div>
37+
</div></div>

0 commit comments

Comments
 (0)