Added ticket 90, propose to create a new documentation page when it doesn't exists.

This commit is contained in:
Loic d'Anterroches
2009-01-02 13:58:55 +01:00
parent a36e89ac2e
commit 60bc06f5c3
4 changed files with 18 additions and 5 deletions

View File

@@ -54,10 +54,11 @@ Add your content here. Format your content with:
or $this->user->hasPerm('IDF.project-member', $this->project)) {
$this->show_full = true;
}
$initname = (!empty($extra['name'])) ? $extra['name'] : __('PageName');
$this->fields['title'] = new Pluf_Form_Field_Varchar(
array('required' => true,
'label' => __('Page title'),
'initial' => __('PageName'),
'initial' => $initname,
'widget_attrs' => array(
'maxlength' => 200,
'size' => 67,