Indefero

Indefero Commit Details


Date:2009-01-02 05:07:41 (15 years 11 months ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:dc5cdd74af43c70c4d8ff7f5fe722e10e8631091
Parents: dd6b6c9ce60bdeccf22ab3399c3753387d88c2f5
Message:Added the ability to set the staff flag of a user.

Changes:

File differences

src/IDF/Form/Admin/UserUpdate.php
9393
9494
9595
96
97
98
99
100
101
102
103
104
105
96106
97107
98108
),
));
if ($extra['request']->user->administrator) {
$this->fields['staff'] = new Pluf_Form_Field_Boolean(
array('required' => false,
'label' => __('Staff'),
'initial' => $this->user->staff,
'widget' => 'Pluf_Form_Widget_CheckboxInput',
'help_text' => __('If you give staff rights to a user, you really need to trust him.'),
));
}
$attrs = ($extra['request']->user->id == $this->user->id) ?
array('readonly' => 'readonly') : array();
$this->fields['active'] = new Pluf_Form_Field_Boolean(
src/IDF/templates/idf/gadmin/users/update.html
5151
5252
5353
54
54
55
56
57
58
59
60
61
5562
5663
5764
......
7582
7683
7784
85
86
87
88
7889
7990
8091
<td>{if $form.f.password2.errors}{$form.f.password2.fieldErrors}{/if}
{$form.f.password2|unsafe}
</td>
</tr>
</tr>{if $user.administrator}
<tr>
<th>{if $form.f.staff.errors}{$form.f.staff.fieldErrors}{/if}
{$form.f.staff|unsafe}
</th>
<td>{$form.f.staff.labelTag}<br />
<span class="helptext">{$form.f.staff.help_text}</span></td>
</tr>{/if}
<tr>
<th>{if $form.f.active.errors}{$form.f.active.fieldErrors}{/if}
{$form.f.active|unsafe}
<p>{blocktrans}If you are changing the email address of the user, you
need to ensure that you are providing a valid email
address{/blocktrans}</p>
{if $user.administrator}
<p>{blocktrans}If you give the user staff rights, the user will be
able to create new projects and update other non staff users.
{/blocktrans}</p> {/if}
</div>
{/block}

Archive Download the corresponding diff file

Page rendered in 0.08724s using 13 queries.