@title;noquote@
@context;noquote@
-[#lab-report.admin#]
@@ -14,7 +13,7 @@
- - #lab-report.overview#
+ - #lab-report.report_view#
- @sections.section_name;noquote@
@@ -24,7 +23,7 @@
-
-
#lab-report.description# @template_desc;noquote@
+ #lab-report.instructions# @template_desc;noquote@
-
Index: openacs-4/packages/lab-report/www/view-section.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/view-section.adp,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/lab-report/www/view-section.adp 21 Aug 2006 23:25:16 -0000 1.5
+++ openacs-4/packages/lab-report/www/view-section.adp 23 Aug 2006 05:43:56 -0000 1.6
@@ -1,19 +1,18 @@
@title;noquote@
@context;noquote@
-[#lab-report.admin#]
-
+
@template_name@ - @title@
- - #lab-report.overview#
+ - #lab-report.report_view#
-
@@ -40,7 +39,7 @@
-
-
#lab-report.description# @section_desc;noquote@
+ #lab-report.instructions# @section_desc;noquote@
-
@section_name@
@@ -55,23 +54,34 @@
-
-
-
+
+ |
+
+
+
+
+ -
#lab-report.feedback#
-
-
-
-
+
|
+
+
|
Index: openacs-4/packages/lab-report/www/view-section.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/view-section.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/lab-report/www/view-section.tcl 21 Aug 2006 23:25:16 -0000 1.4
+++ openacs-4/packages/lab-report/www/view-section.tcl 23 Aug 2006 05:43:56 -0000 1.5
@@ -63,6 +63,16 @@
}
}
+# General comments
+set return_url [export_vars -url \
+ -base "[ad_conn package_url]view-report" \
+ { lab_id template_id report_id }]
+
+set gc_link [general_comments_create_link -link_attributes {class="button"} \
+ $report_id $return_url]
+set gc_comments [general_comments_get_comments $report_id $return_url]
+
+
# Title and context
set title "$section_name"
set context [list [list $lab_url $lab_name] \
Index: openacs-4/packages/lab-report/www/iframe/feedback-ae-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/iframe/feedback-ae-postgresql.xql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/lab-report/www/iframe/feedback-ae-postgresql.xql 21 Aug 2006 23:25:21 -0000 1.1
+++ openacs-4/packages/lab-report/www/iframe/feedback-ae-postgresql.xql 23 Aug 2006 05:43:56 -0000 1.2
@@ -13,8 +13,7 @@
UPDATE lr_section_feedback
- SET rating = :rating,
- comment = :comment
+ SET rating = :rating
WHERE feedback_id = :feedback_id
Index: openacs-4/packages/lab-report/www/iframe/feedback-ae.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/iframe/feedback-ae.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/lab-report/www/iframe/feedback-ae.adp 21 Aug 2006 23:25:21 -0000 1.1
+++ openacs-4/packages/lab-report/www/iframe/feedback-ae.adp 23 Aug 2006 05:43:56 -0000 1.2
@@ -1,9 +1,7 @@
@page_title;noquote@
-
-
-
+
Index: openacs-4/packages/lab-report/www/iframe/feedback-ae.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/iframe/feedback-ae.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/lab-report/www/iframe/feedback-ae.tcl 21 Aug 2006 23:25:21 -0000 1.1
+++ openacs-4/packages/lab-report/www/iframe/feedback-ae.tcl 23 Aug 2006 05:43:56 -0000 1.2
@@ -24,7 +24,7 @@
set criteria_name [db_string select_criteria_name {} -default ""]
-ad_form -name feedback -cancel_url $return_url -form {
+ad_form -name feedback -form {
{feedback_id:key(acs_object_id_seq)}
{report_id:text(hidden) {value $report_id}}
{lab_id:text(hidden) {value $lab_id}}
@@ -39,18 +39,10 @@
}
{rating:text(select),optional
{label "[_ lab-report.rating]" }
- {help_text "[_ lab-report.help_select_rating]"}
{options {{None none} {"Needs Work" needs_work} {Satisfactory satisfactory} {Complete complete}}}
}
- {comment:richtext(richtext),optional
- {html {cols 50 rows 4}}
- {htmlarea_p 0}
- {nospell}
- {label "[_ lab-report.comments]" }
- {help_text "[_ lab-report.help_enter_comments]"}
- }
} -select_query {
- SELECT rating, comment
+ SELECT rating
FROM lr_section_feedback WHERE feedback_id = :feedback_id
} -new_data {
@@ -64,8 +56,7 @@
[list report_id $report_id] \
[list section_id $section_id] \
[list instructor_id $instructor_id] \
- [list rating $rating] \
- [list comment $comment]] \
+ [list rating $rating]] \
-form_id feedback lr_section_feedback]
}
Index: openacs-4/packages/lab-report/www/iframe/feedback-view-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/iframe/feedback-view-postgresql.xql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/lab-report/www/iframe/feedback-view-postgresql.xql 21 Aug 2006 23:25:21 -0000 1.1
+++ openacs-4/packages/lab-report/www/iframe/feedback-view-postgresql.xql 23 Aug 2006 05:43:56 -0000 1.2
@@ -5,8 +5,7 @@
- SELECT c.name AS feedback_criteria_name, sf.feedback_id,
- sf.rating, sf.comment
+ SELECT c.name AS feedback_criteria_name, sf.feedback_id, sf.rating
FROM lrc_feedback_criteria c LEFT OUTER JOIN lr_section_feedback sf
ON (c.feedback_criteria_id = sf.feedback_criteria_id
AND sf.report_id = :report_id)
Index: openacs-4/packages/lab-report/www/iframe/feedback-view.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/iframe/feedback-view.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/lab-report/www/iframe/feedback-view.adp 21 Aug 2006 23:25:21 -0000 1.1
+++ openacs-4/packages/lab-report/www/iframe/feedback-view.adp 23 Aug 2006 05:43:56 -0000 1.2
@@ -12,7 +12,6 @@
- @feedback_criteria_name@
- #lab-report.rating#: @rating@
- - #lab-report.comments#: @comment;noquote@
- #lab-report.edit#
Index: openacs-4/packages/lab-report/www/iframe/feedback-view.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/iframe/feedback-view.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/lab-report/www/iframe/feedback-view.tcl 21 Aug 2006 23:25:21 -0000 1.1
+++ openacs-4/packages/lab-report/www/iframe/feedback-view.tcl 23 Aug 2006 05:43:56 -0000 1.2
@@ -19,7 +19,6 @@
# set defaults
set rating "none"
-set comment ""
db_0or1row select_feedback {}
@@ -33,8 +32,6 @@
set rating "None"
}
-set comment [template::util::richtext::get_property html_value $comment]
-
if { [info exists feedback_id] && $feedback_id ne "" } {
set edit_url [export_vars -url -base feedback-ae {report_id lab_id template_id section_id feedback_criteria_id feedback_id}]
} else {
Index: openacs-4/packages/lab-report/www/resources/lab-report.css
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/resources/lab-report.css,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/lab-report/www/resources/lab-report.css 21 Aug 2006 23:25:25 -0000 1.6
+++ openacs-4/packages/lab-report/www/resources/lab-report.css 23 Aug 2006 05:43:56 -0000 1.7
@@ -76,13 +76,15 @@
margin-left: 3px;
}
+
#lr-lab-list-container ul ul.report li span.label {
margin-left: 3em;
float:left;
}
#lr-lab-list-container ul ul.report li span.options {
float: right;
+ border: 1px solid #000;
}
#lr-lab-list-container ul ul li.notice {
@@ -144,6 +146,7 @@
#lr-report-list-container ul.report li span.options {
float: right;
+ border: 1px solid #000;
}
@@ -212,8 +215,8 @@
vertical-align: top;
margin: 0;
padding: 0;
- padding-right: 1em;
- padding-top: 1em;
+ padding-right: 0.5em;
+ padding-top: 0.5em;
}
div#report-container table tr td.content {
@@ -235,6 +238,7 @@
padding: 5px;
margin-bottom: 1em;
border: 1px solid #000;
+ background-color: #FFFFCC;
}
div#report-container table tr td.content ul li.content {
@@ -265,7 +269,24 @@
color: #686868;
}
+div#report-container table tr td.feedback {
+ padding: 0;
+ width: 100%;
+ vertical-align: top;
+ line-height: 130%;
+}
+div#report-container table tr td.feedback ul {
+ margin: 0 0 0 0.5em;
+ padding: 0.5em;
+ list-style-type: none;
+ border: 1px solid #000;
+ font-family: verdana, arial, sans-serif;
+ font-size: small;
+ background-color: #CCFF99;
+}
+
+
/* Resources container */
ul#resources-list {
width: 158px;
@@ -326,18 +347,21 @@
padding: 0;
list-style-type: none;
font-family: verdana, arial, sans-serif;
- font-size: small;
+ font-size: x-small;
}
#lr-feedback-container ul li.title {
padding-top: 0.5em;
padding-bottom: 0.5em;
font-weight: bold;
color: #686868;
+ font-size: x-small;
}
#lr-feedback-container ul li.edit {
- padding-top: 2em;
+ padding-top: 0.5em;
+ padding-bottom: 0.5em;
padding-right: 0.5em;
float: right;
-}
\ No newline at end of file
+ font-size: small;
+}
Index: openacs-4/packages/lab-report/www/resources/main-portal.css
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/resources/main-portal.css,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/lab-report/www/resources/main-portal.css 11 May 2006 11:11:37 -0000 1.1
+++ openacs-4/packages/lab-report/www/resources/main-portal.css 23 Aug 2006 05:43:56 -0000 1.2
@@ -25,8 +25,7 @@
/* Padding for the columns */
#portal-column-content .visualPadding {
- /*padding: 0em 2em 1em 2em;*/
- padding: 0em 1em 1em 1em;
+ padding: 0em 0.5em 0.5em 0.5em;
}
.documentBorder {
@@ -35,5 +34,10 @@
}
.documentContent {
- padding: 1em !important;
+ padding: 0.5em !important;
}
+
+.documentContentBorder {
+ border: 0px solid #666;
+ background: White;
+}
| |