Indefero

Indefero Commit Details


Date:2009-01-01 15:11:23 (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:2bfa4478e189a6d76613e67d3c6044c2eecf1c20
Parents: 99f82216dd5dc76c5fd3e8b88d7fc1870746daf0
Message:Added the ability to mark a project as private at creation time.

Changes:

File differences

src/IDF/Form/Admin/ProjectCreate.php
4949
5050
5151
52
53
54
55
56
57
58
5259
5360
5461
55
62
5663
5764
5865
......
149156
150157
151158
159
152160
153161
154162
'initial' => '',
));
$this->fields['private_project'] = new Pluf_Form_Field_Boolean(
array('required' => false,
'label' => __('Private project'),
'initial' => false,
'widget' => 'Pluf_Form_Widget_CheckboxInput',
));
$this->fields['shortname'] = new Pluf_Form_Field_Varchar(
array('required' => true,
'label' => __('Shortname'),
'initial' => 'myproject',
'initial' => '',
'help_text' => __('It must be unique for each project and composed only of letters and digits.'),
));
$project = new IDF_Project();
$project->name = $this->cleaned_data['name'];
$project->shortname = $this->cleaned_data['shortname'];
$project->private = $this->cleaned_data['private_project'];
$project->description = __('Write your project description here.');
$project->create();
$conf = new IDF_Conf();
src/IDF/templates/idf/gadmin/projects/create.html
6868
6969
7070
71
72
73
74
75
76
7177
7278
7379
</td>
</tr>
<tr>
<th>{if $form.f.private_project.errors}{$form.f.private_project.fieldErrors}{/if}
{$form.f.private_project|unsafe}
</th>
<td>{$form.f.private_project.labelTag}</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<input type="submit" value="{trans 'Create Project'}" name="submit" />

Archive Download the corresponding diff file

Page rendered in 0.07660s using 13 queries.