[open-ils-commits] r12355 - in trunk/Open-ILS/web: js/ui/default/conify/global/action/survey templates/default/conify/global/action/survey (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Mar 2 14:50:44 EST 2009
Author: erickson
Date: 2009-03-02 14:50:40 -0500 (Mon, 02 Mar 2009)
New Revision: 12355
Modified:
trunk/Open-ILS/web/js/ui/default/conify/global/action/survey/edit.js
trunk/Open-ILS/web/templates/default/conify/global/action/survey/edit.tt2
Log:
moved CSS out to skin/them files
Modified: trunk/Open-ILS/web/js/ui/default/conify/global/action/survey/edit.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/action/survey/edit.js 2009-03-02 19:24:15 UTC (rev 12354)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/action/survey/edit.js 2009-03-02 19:50:40 UTC (rev 12355)
@@ -23,9 +23,9 @@
function drawSurvey(svyId) {
today = new Date();
var surveyTable = dojo.byId('edit-pane');
- var surveyHead = dojo.create('thead', {style: "background-color: #99CCFF"}, surveyTable);
+ var surveyHead = dojo.create('thead', {id: "survey_head"}, surveyTable);
var headRow = dojo.create('tr', null, surveyHead);
- var headCell = dojo.create('td', {innerHTML: "<h3>" +dojo.string.substitute(localeStrings.SURVEY_ID, [svyId])+"</h3>", style: "width: 100%"}, headRow);
+ var headCell = dojo.create('td', {id: "head_cell", innerHTML: "<h3>" +dojo.string.substitute(localeStrings.SURVEY_ID, [svyId])+"</h3>" }, headRow);
var pcrud = new openils.PermaCrud();
var survey = pcrud.retrieve('asv', svyId);
startDate = dojo.date.stamp.fromISOString(survey.start_date());
@@ -38,10 +38,10 @@
pane.fieldOrder = ['id', 'name', 'description', 'owner', 'start_date', 'end_date'];
pane.onCancel = cancelEdit;
pane.startup();
- var surveyFoot = dojo.create('tfoot', {style: "background-color: #99CCFF"}, surveyTable);
- var footRow = dojo.create('tr', { style: "width: 100%"}, surveyFoot);
- var footLabel = dojo.create('td', {innerHTML: "<h3>"+localeStrings.SURVEY_FOOT_LABEL+"</h3>", style: "width: 100%"}, footRow);
- var footCell = dojo.create('td', {innerHTML: "<hr>", style: "width: 100%"}, footRow);
+ var surveyFoot = dojo.create('tfoot', { id: "survey_foot"}, surveyTable);
+ var footRow = dojo.create('tr', {id: "foot_row"}, surveyFoot);
+ var footLabel = dojo.create('td', {id: "foot_label", innerHTML: "<h3>"+localeStrings.SURVEY_FOOT_LABEL+"</h3>"}, footRow);
+ var footCell = dojo.create('td', {innerHTML: "<hr>", id: "foot_cell"}, footRow);
getQuestions(svyId, survey);
}
Modified: trunk/Open-ILS/web/templates/default/conify/global/action/survey/edit.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/action/survey/edit.tt2 2009-03-02 19:24:15 UTC (rev 12354)
+++ trunk/Open-ILS/web/templates/default/conify/global/action/survey/edit.tt2 2009-03-02 19:50:40 UTC (rev 12355)
@@ -1,11 +1,14 @@
[% WRAPPER 'default/base.tt2' %]
<script src='[% ctx.media_prefix %]/js/ui/default/conify/global/action/survey/edit.js'></script>
+ <link rel='stylesheet' type='text/css'
+ href='[% ctx.media_prefix %]/css/skin/default/conify.css'></link>
+ <link rel='stylesheet' type='text/css'
+ href='[% ctx.media_prefix %]/css/theme/default/conify.css'></link>
+ <script type="text/javascript">
+ dojo.require('openils.Util');
+var surveyId = [%ctx.page_args.0 %];
+openils.Util.addOnLoad(function() { drawSurvey(surveyId) });
-<script type="text/javascript">
- dojo.require('openils.Util');
- var surveyId = [%ctx.page_args.0 %];
- openils.Util.addOnLoad(function() { drawSurvey(surveyId) });
-
</script>
<!-- General survey info -->
<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
More information about the open-ils-commits
mailing list