Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Commit

Permalink
Begin of customization of the userList
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnhau committed Apr 28, 2014
1 parent 1df13b0 commit 57a3976
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
7 changes: 6 additions & 1 deletion config/ZfcUserList.global.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ $settings = array(
*/
'user_mapper' => 'ZfcUserList\Mapper\UserZendDb',

/**
* an array with as first the label and as second the fielsname in the database
*/
'userListElements' => array('Id' => 'id', 'Email address' => 'email', 'Display name' => 'display_name')

/**
* [WIP]
*/
Expand All @@ -27,7 +32,7 @@ $settings = array(
/**
* [WIP]
*/
'elements' => array("username", "email", "display_name"),
'elementsPerPage' => '10',
);

/**
Expand Down
9 changes: 9 additions & 0 deletions language/msgIds.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
/**
* Ids for poedit
* @method translate()
*/
translate('Id');
translate('Email address');
translate('Display name');
translate('Gender');
2 changes: 1 addition & 1 deletion view/zfc-user-list/user-list/list.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ foreach ($this->userlistElements as $element) {
<thead>
<tr>
<?php foreach ($this->userlistElements as $name => $element): ?>
<th><?php echo $this->escapeHtml($name ? : $element); ?></th>
<th><?php echo $this->translate($this->escapeHtml($name ? : $element)); ?></th>
<?php endforeach; ?>
<th>&nbsp;</th>
</tr>
Expand Down

0 comments on commit 57a3976

Please sign in to comment.