- =form_label($this->lang->line('Summary').': ', 'issue_summary')?>
- =form_error('issue_summary');?>
-
- =form_input('issue_summary',
- set_value('issue_summary', $issue->summary),
- 'size="80" id="project_issue_summary"')
- ?>
-
+ =form_label($this->lang->line('Summary').': ', 'issue_summary')?>
+ =form_error('issue_summary');?>
+
+ =form_input('issue_summary',
+ set_value('issue_summary', $issue->summary),
+ 'size="80" id="issue_edit_mainarea_summary"')
+ ?>
-
- =form_label($this->lang->line('Description').': ', 'issue_description')?>
- =form_error('issue_description');?>
-
-
- 'issue_description',
- 'value' => set_value ('issue_description', $issue->description),
- 'id' => 'project_issue_description',
- 'rows' => 20,
- 'cols' => 80
- );
- print form_textarea ($xdata);
- ?>
-
+
+
+ 'issue_description',
+ 'value' => set_value ('issue_description', $issue->description),
+ 'id' => 'issue_edit_mainarea_description',
+ 'rows' => 20,
+ 'cols' => 80
+ );
+ print form_textarea ($xdata);
+ ?>
+
+
-
- lang->line('Update'): $this->lang->line('Create'); ?>
- =form_submit('issue', $caption)?>
-
+
+ lang->line('Update'): $this->lang->line('Create'); ?>
+ =form_submit('issue', $caption)?>
=form_fieldset_close()?>
=form_close();?>
diff --git a/codepot/src/codepot/views/project_edit.php b/codepot/src/codepot/views/project_edit.php
index a6f58718..8424a577 100644
--- a/codepot/src/codepot/views/project_edit.php
+++ b/codepot/src/codepot/views/project_edit.php
@@ -6,6 +6,32 @@
+
+
+
+
+
+
+
+
=$project->name?>
@@ -48,97 +74,82 @@ $this->load->view (
=form_open($formurl)?>
=form_fieldset()?>
-
-
- =form_label($this->lang->line('ID').': ', 'project_id')?>
- =form_error('project_id')?>
-
-
-
-
- =form_input('project_id', set_value('project_id', $project->id), $extra)?>
-
+
+ =form_label($this->lang->line('ID').': ', 'project_id')?>
+
+ =form_input('project_id', set_value('project_id', $project->id), $extra)?>
+ =form_error('project_id')?>
-
-
- =form_label($this->lang->line('Name').': ', 'project_name')?>
- =form_error('project_name')?>
-
-
-
- =form_input('project_name', set_value('project_name', $project->name), $extra)?>
-
+
+ =form_label($this->lang->line('Name').': ', 'project_name')?>
+ =form_error('project_name')?>
+
+
+
+ =form_input('project_name', set_value('project_name', $project->name), $extra)?>
-
-
- =form_label($this->lang->line('Summary').': ', 'project_summary')?>
- =form_error('project_summary')?>
-
-
-
- =form_input('project_summary', set_value('project_summary', $project->summary), $extra)?>
-
+
+ =form_label($this->lang->line('Summary').': ', 'project_summary')?>
+ =form_error('project_summary')?>
+
+
+
+ =form_input('project_summary', set_value('project_summary', $project->summary), $extra)?>
-
-
- =form_label($this->lang->line('Description').': ', 'project_description')?>
- =form_error('project_description')?>
-
-
- 'project_description',
- 'value' => set_value ('project_description', $project->description),
- 'id' => 'project_edit_mainarea_description',
- 'rows' => 20,
- 'cols' => 80
- );
- print form_textarea ($xdata);
- ?>
-
+
+
+ 'project_description',
+ 'value' => set_value ('project_description', $project->description),
+ 'id' => 'project_edit_mainarea_description',
+ 'rows' => 20,
+ 'cols' => 80
+ );
+ print form_textarea ($xdata);
+ ?>
+
+
+
+
+ =form_label($this->lang->line('Commitable').': ', 'project_commitable')?>
+ =form_checkbox('project_commitable', 'Y', set_checkbox('project_commitable', $project->commitable, $project->commitable == 'Y'))?>
+ =form_error('project_commitable')?>
+
+ =form_label($this->lang->line('Public').': ', 'project_public')?>
+ =form_checkbox('project_public', 'Y', set_checkbox('project_public', $project->public, $project->public == 'Y'))?>
+ =form_error('project_public')?>
-
-
- =form_label($this->lang->line('Commitable').': ', 'project_commitable')?>
- =form_checkbox('project_commitable', 'Y', set_checkbox('project_commitable', $project->commitable, $project->commitable == 'Y'))?>
- =form_error('project_commitable')?>
-
- =form_label($this->lang->line('Public').': ', 'project_public')?>
- =form_checkbox('project_public', 'Y', set_checkbox('project_public', $project->public, $project->public == 'Y'))?>
- =form_error('project_public')?>
-
+
+ =form_label($this->lang->line('Members').': ', 'project_members')?>
+ =form_error('project_members')?>
+
+
+ 'project_members',
+ 'value' => set_value ('project_members', $project->members),
+ 'id' => 'project_edit_mainarea_members',
+ 'rows' => 2,
+ 'cols' => 80
+ );
+ print form_textarea ($xdata);
+ ?>
-
-
- =form_label($this->lang->line('Members').': ', 'project_members')?>
- =form_error('project_members')?>
-
-
- 'project_members',
- 'value' => set_value ('project_members', $project->members),
- 'id' => 'project_edit_mainarea_members',
- 'rows' => 2,
- 'cols' => 80
- );
- print form_textarea ($xdata);
- ?>
-
-
-
-
- lang->line('Update'): $this->lang->line('Create'); ?>
- =form_submit('project', $caption)?>
-
+ lang->line('Update'): $this->lang->line('Create'); ?>
+ =form_submit('project', $caption)?>
=form_fieldset_close()?>
=form_close();?>
diff --git a/codepot/src/codepot/views/site_edit.php b/codepot/src/codepot/views/site_edit.php
index d45214b2..055164d6 100644
--- a/codepot/src/codepot/views/site_edit.php
+++ b/codepot/src/codepot/views/site_edit.php
@@ -6,6 +6,36 @@
+
+
+
+
+
+
+
+
+
+
+
=htmlspecialchars($site->name)?>
@@ -48,55 +78,45 @@ $this->load->view (
=form_open($formurl, 'id="site_edit_form"')?>
=form_fieldset()?>
-
-
- =form_label($this->lang->line('Language').': ', 'site_id')?>
- =form_error('site_id')?>
-
-
-
+
+ =form_label($this->lang->line('Language').': ', 'site_id')?>
+
- =form_input('site_id',
- set_value('site_id', $site->id),
- $extra)
- ?>
-
+ =form_input('site_id',
+ set_value('site_id', $site->id),
+ $extra)
+ ?>
+ =form_error('site_id')?>
-
-
- =form_label($this->lang->line('Name').': ', 'site_name')?>
- =form_error('site_name')?>
-
-
- =form_input('site_name',
- set_value('site_name', $site->name),
- 'maxlength="80" size="40" class="name"');
- ?>
-
+
+ =form_label($this->lang->line('Name').': ', 'site_name')?>
+ =form_input('site_name',
+ set_value('site_name', $site->name),
+ 'maxlength="80" size="40" class="name"');
+ ?>
+ =form_error('site_name')?>
-
-
- =form_label($this->lang->line('Text').': ', 'site_text')?>
- =form_error('site_text')?>
-
-
- =form_textarea('site_text',
- set_value('site_text', $site->text),
- 'class="text"')
- ?>
-
+
-
-
- lang->line('Update'): $this->lang->line('Create'); ?>
- =form_submit('site', $caption)?>
+
+ =form_textarea('site_text',
+ set_value('site_text', $site->text),
+ 'class="text" id="site_edit_mainarea_text"')
+ ?>
+
+
+ lang->line('Update'): $this->lang->line('Create'); ?>
+ =form_submit('site', $caption)?>
=form_fieldset_close()?>
=form_close();?>
diff --git a/codepot/src/codepot/views/wiki_edit.php b/codepot/src/codepot/views/wiki_edit.php
index 141fa2c7..3ddad54e 100644
--- a/codepot/src/codepot/views/wiki_edit.php
+++ b/codepot/src/codepot/views/wiki_edit.php
@@ -6,12 +6,28 @@
+
+
+
+
@@ -65,46 +87,44 @@ $this->load->view (
=form_open_multipart("wiki/{$mode}/{$project->id}/".$this->converter->AsciiToHex($wiki->name))?>
=form_fieldset()?>
-
-
- =form_label($this->lang->line('Name').': ', 'wiki_name')?>
- =form_error('wiki_name');?>
-
-
-
- =form_input('wiki_name', set_value('wiki_name', $wiki->name), $extra)?>
-
+
+ =form_label($this->lang->line('Name').': ', 'wiki_name')?>
+ =form_error('wiki_name');?>
+
+
+
+ =form_input('wiki_name', set_value('wiki_name', $wiki->name), $extra)?>
-
-
- =form_label($this->lang->line('Text').': ', 'wiki_text')?>
- =form_error('wiki_text');?>
-
-
- 'wiki_text',
- 'value' => set_value ('wiki_text', $wiki->text),
- 'id' => 'wiki_edit_mainarea_text',
- 'rows' => 20,
- 'cols' => 80
- );
- print form_textarea ($xdata);
- ?>
-
+
+
+ 'wiki_text',
+ 'value' => set_value ('wiki_text', $wiki->text),
+ 'id' => 'wiki_edit_mainarea_text',
+ 'rows' => 20,
+ 'cols' => 80
+ );
+ print form_textarea ($xdata);
+ ?>
+
+
attachments)): ?>
-
-
- =form_label($this->lang->line('WIKI_ATTACHMENTS').': ', 'wiki_edit_attachment_list')?>
- =form_error('wiki_attachment_list');?>
-
+
+ =form_label($this->lang->line('WIKI_ATTACHMENTS').': ', 'wiki_edit_attachment_list')?>
+ =form_error('wiki_attachment_list');?>
+
+
-
-
+
-
+
diff --git a/codepot/src/css/common.css b/codepot/src/css/common.css
index ce03ea58..54e00860 100644
--- a/codepot/src/css/common.css
+++ b/codepot/src/css/common.css
@@ -217,12 +217,39 @@ body {
font-size: inherit;
}
+.content .mainarea .form_input_label {
+ margin-bottom: 0.2em;
+}
+
+.content .mainarea .form_input_label .ui-button {
+ font-size: 80%;
+ font-style: italic;
+}
+
+
+.content .mainarea .form_input_field {
+ margin-bottom: 0.5em;
+}
+
+.content .mainarea .form_input_preview {
+ width: 100%;
+ /*border: 1px solid #DDDDDD;*/
+ background-color: #FFFFF0;
+ font-size: 90%;
+}
+
+.content .mainarea .form_input_preview pre {
+ background-color: inherit;
+ /*background-color: #FDF5D6;*/
+ /*border: none;*/
+}
+
.content .mainarea .icon {
border: 0;
}
.content .mainarea pre {
- padding: .3em .3em .3em .3em;
+ /*padding: .3em .3em .3em .3em;*/
border: 1px dashed #BBCCDD;
background-color: #F1F1FF;
overflow: auto;
diff --git a/codepot/src/css/file.css b/codepot/src/css/file.css
index dc611b5e..a03541d9 100644
--- a/codepot/src/css/file.css
+++ b/codepot/src/css/file.css
@@ -11,3 +11,8 @@
}
+#file_edit_mainarea_description {
+ width: 100%;
+}
+
+
diff --git a/codepot/src/css/project.css b/codepot/src/css/project.css
index 7564362d..a23b0e8b 100644
--- a/codepot/src/css/project.css
+++ b/codepot/src/css/project.css
@@ -50,6 +50,7 @@
width: 100%;
}
+
/*-----------------------------------------------
* project catalog view
*-----------------------------------------------*/
diff --git a/codepot/src/js/creole.js b/codepot/src/js/creole.js
index cbec0bb4..9ed037ac 100644
--- a/codepot/src/js/creole.js
+++ b/codepot/src/js/creole.js
@@ -536,3 +536,33 @@ function creole_render_wiki (inputid, outputid, linkbase, imgbase)
output.innerHTML = '';
creole.parse (output, xinput);
}
+
+function creole_render_wiki_with_input_text (input_text, outputid, linkbase, imgbase)
+{
+ function $(id) { return document.getElementById(id); }
+
+ function decodeEntities(str)
+ {
+ return str.replace(/&/g, '&').
+ replace(/</g, '<').
+ replace(/>/g, '>').
+ replace(/"/g, '"');
+ }
+
+ //var input = $(inputid);
+ var output = $(outputid);
+ var creole = new Parse.Simple.Creole(
+ {
+ forIE: document.all,
+ /*interwiki: {
+ WikiCreole: 'http://www.wikicreole.org/wiki/',
+ Wikipedia: 'http://en.wikipedia.org/wiki/'
+ },*/
+ linkFormat: linkbase,
+ imgFormat: imgbase
+ } );
+
+ var xinput = decodeEntities(input_text);
+ output.innerHTML = '';
+ creole.parse (output, xinput);
+}