Increased the size of the edition area of the documentation pages.
This commit is contained in:
parent
2bd74621ce
commit
209715a6b3
@ -80,7 +80,7 @@ Add your content here. Format your content with:
|
||||
'initial' => $initial,
|
||||
'widget' => 'Pluf_Form_Widget_TextareaInput',
|
||||
'widget_attrs' => array(
|
||||
'cols' => 58,
|
||||
'cols' => 68,
|
||||
'rows' => 26,
|
||||
),
|
||||
));
|
||||
|
@ -73,7 +73,7 @@ class IDF_Form_WikiUpdate extends Pluf_Form
|
||||
'initial' => $rev->content,
|
||||
'widget' => 'Pluf_Form_Widget_TextareaInput',
|
||||
'widget_attrs' => array(
|
||||
'cols' => 58,
|
||||
'cols' => 68,
|
||||
'rows' => 26,
|
||||
),
|
||||
));
|
||||
|
@ -62,6 +62,14 @@ class IDF_Project extends Pluf_Model
|
||||
'help_text' => __('Used in the url to access the project, must be short with only letters and numbers.'),
|
||||
'unique' => true,
|
||||
),
|
||||
'shortdesc' =>
|
||||
array(
|
||||
'type' => 'Pluf_DB_Field_Varchar',
|
||||
'blank' => false,
|
||||
'size' => 255,
|
||||
'verbose' => __('short description'),
|
||||
'help_text' => __('A one line description of the project.'),
|
||||
),
|
||||
'description' =>
|
||||
array(
|
||||
'type' => 'Pluf_DB_Field_Text',
|
||||
|
@ -134,7 +134,8 @@ class IDF_Views_Project
|
||||
{
|
||||
$prj = $request->project;
|
||||
$title = sprintf(__('%s Project Summary'), (string) $prj);
|
||||
$form_fields = array('fields'=> array('name', 'description'));
|
||||
$form_fields = array('fields'=> array('name', 'shortdesc',
|
||||
'description'));
|
||||
if ($request->method == 'POST') {
|
||||
$form = Pluf_Shortcuts_GetFormForModel($prj, $request->POST,
|
||||
$form_fields);
|
||||
@ -149,6 +150,9 @@ class IDF_Views_Project
|
||||
$form = Pluf_Shortcuts_GetFormForModel($prj, $prj->getData(),
|
||||
$form_fields);
|
||||
}
|
||||
$form->fields['description']->widget->attrs['cols'] = 68;
|
||||
$form->fields['description']->widget->attrs['rows'] = 26;
|
||||
$form->fields['shortdesc']->widget->attrs['size'] = 67;
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/admin/summary.html',
|
||||
array(
|
||||
'page_title' => $title,
|
||||
|
@ -18,6 +18,13 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.shortdesc.labelTag}:</strong></th>
|
||||
<td>{if $form.f.shortdesc.errors}{$form.f.shortdesc.fieldErrors}{/if}
|
||||
{$form.f.shortdesc|unsafe}<br />
|
||||
<span class="helptext">{$form.f.shortdesc.help_text}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.description.labelTag}:</strong></th>
|
||||
<td>{if $form.f.description.errors}{$form.f.description.fieldErrors}{/if}
|
||||
{$form.f.description|unsafe}
|
||||
|
@ -28,7 +28,7 @@
|
||||
<link rel="stylesheet" type="text/css" href="{media '/idf/css/ie6.css'}" />
|
||||
<![endif]-->
|
||||
{block extraheader}{/block}
|
||||
<title>{block pagetitle}{$page_title|strip_tags}{/block}</title>
|
||||
<title>{block pagetitle}{$page_title|strip_tags}{/block}{if $project} - {$project.shortdesc}{/if}</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="{block docid}doc3{/block}">
|
||||
|
@ -28,7 +28,7 @@
|
||||
<link rel="stylesheet" type="text/css" href="{media '/idf/css/ie6.css'}" />
|
||||
<![endif]-->
|
||||
{block extraheader}{/block}
|
||||
<title>{block pagetitle}{$page_title|strip_tags}{/block}</title>
|
||||
<title>{block pagetitle}{$page_title|strip_tags}{/block}{if $project} - {$project.shortdesc}{/if}</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="{block docid}doc3{/block}" class="{block docclass}yui-t3{/block}">
|
||||
|
@ -5,10 +5,12 @@
|
||||
{block body}
|
||||
{if $projects.count() == 0}
|
||||
<p>{trans 'No projects managed with InDefero were found.'}</p>
|
||||
{if $user.administrator}<p>{blocktrans}Create a new project.{/blocktrans}</p>{/if}
|
||||
{if $isAdmin}
|
||||
{aurl 'url', 'IDF_Views_Admin::projectCreate'}
|
||||
<p><a href="{$url}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/add.png'}" alt="+" align="bottom" /></a> <a href="{$url}">{trans 'Create Project'}</a></p>{/if}
|
||||
{else}
|
||||
<ul>{foreach $projects as $p}
|
||||
<li><a href="{url 'IDF_Views_Project::home', array($p.shortname)}">{$p}</a></li>
|
||||
<li><a href="{url 'IDF_Views_Project::home', array($p.shortname)}">{$p}</a>, {$p.shortdesc}</li>
|
||||
{/foreach}</ul>
|
||||
{/if}
|
||||
{/block}
|
||||
|
Loading…
Reference in New Issue
Block a user