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,
|
'initial' => $initial,
|
||||||
'widget' => 'Pluf_Form_Widget_TextareaInput',
|
'widget' => 'Pluf_Form_Widget_TextareaInput',
|
||||||
'widget_attrs' => array(
|
'widget_attrs' => array(
|
||||||
'cols' => 58,
|
'cols' => 68,
|
||||||
'rows' => 26,
|
'rows' => 26,
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
@ -73,7 +73,7 @@ class IDF_Form_WikiUpdate extends Pluf_Form
|
|||||||
'initial' => $rev->content,
|
'initial' => $rev->content,
|
||||||
'widget' => 'Pluf_Form_Widget_TextareaInput',
|
'widget' => 'Pluf_Form_Widget_TextareaInput',
|
||||||
'widget_attrs' => array(
|
'widget_attrs' => array(
|
||||||
'cols' => 58,
|
'cols' => 68,
|
||||||
'rows' => 26,
|
'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.'),
|
'help_text' => __('Used in the url to access the project, must be short with only letters and numbers.'),
|
||||||
'unique' => true,
|
'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' =>
|
'description' =>
|
||||||
array(
|
array(
|
||||||
'type' => 'Pluf_DB_Field_Text',
|
'type' => 'Pluf_DB_Field_Text',
|
||||||
|
@ -134,7 +134,8 @@ class IDF_Views_Project
|
|||||||
{
|
{
|
||||||
$prj = $request->project;
|
$prj = $request->project;
|
||||||
$title = sprintf(__('%s Project Summary'), (string) $prj);
|
$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') {
|
if ($request->method == 'POST') {
|
||||||
$form = Pluf_Shortcuts_GetFormForModel($prj, $request->POST,
|
$form = Pluf_Shortcuts_GetFormForModel($prj, $request->POST,
|
||||||
$form_fields);
|
$form_fields);
|
||||||
@ -149,6 +150,9 @@ class IDF_Views_Project
|
|||||||
$form = Pluf_Shortcuts_GetFormForModel($prj, $prj->getData(),
|
$form = Pluf_Shortcuts_GetFormForModel($prj, $prj->getData(),
|
||||||
$form_fields);
|
$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',
|
return Pluf_Shortcuts_RenderToResponse('idf/admin/summary.html',
|
||||||
array(
|
array(
|
||||||
'page_title' => $title,
|
'page_title' => $title,
|
||||||
|
@ -18,6 +18,13 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<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>
|
<th><strong>{$form.f.description.labelTag}:</strong></th>
|
||||||
<td>{if $form.f.description.errors}{$form.f.description.fieldErrors}{/if}
|
<td>{if $form.f.description.errors}{$form.f.description.fieldErrors}{/if}
|
||||||
{$form.f.description|unsafe}
|
{$form.f.description|unsafe}
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="{media '/idf/css/ie6.css'}" />
|
<link rel="stylesheet" type="text/css" href="{media '/idf/css/ie6.css'}" />
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
{block extraheader}{/block}
|
{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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="{block docid}doc3{/block}">
|
<div id="{block docid}doc3{/block}">
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="{media '/idf/css/ie6.css'}" />
|
<link rel="stylesheet" type="text/css" href="{media '/idf/css/ie6.css'}" />
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
{block extraheader}{/block}
|
{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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="{block docid}doc3{/block}" class="{block docclass}yui-t3{/block}">
|
<div id="{block docid}doc3{/block}" class="{block docclass}yui-t3{/block}">
|
||||||
|
@ -5,10 +5,12 @@
|
|||||||
{block body}
|
{block body}
|
||||||
{if $projects.count() == 0}
|
{if $projects.count() == 0}
|
||||||
<p>{trans 'No projects managed with InDefero were found.'}</p>
|
<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}
|
{else}
|
||||||
<ul>{foreach $projects as $p}
|
<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>
|
{/foreach}</ul>
|
||||||
{/if}
|
{/if}
|
||||||
{/block}
|
{/block}
|
||||||
|
Loading…
Reference in New Issue
Block a user