moved CSS out to skin/them files
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 2 Mar 2009 19:50:40 +0000 (19:50 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 2 Mar 2009 19:50:40 +0000 (19:50 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12355 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/conify/global/action/survey/edit.js
Open-ILS/web/templates/default/conify/global/action/survey/edit.tt2

index 2b78e9e..b24b9a3 100644 (file)
@@ -23,9 +23,9 @@ var localeStrings = dojo.i18n.getLocalization('openils.conify', 'conify');
 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 @@ function drawSurvey(svyId) {
     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);
 
 }
index 3a44626..40f57a7 100644 (file)
@@ -1,10 +1,13 @@
 [% WRAPPER 'default/base.tt2' %]
 <script src='[% ctx.media_prefix %]/js/ui/default/conify/global/action/survey/edit.js'></script>
-
-<script type="text/javascript">
-    dojo.require('openils.Util');
-    var surveyId = [%ctx.page_args.0 %];
-    openils.Util.addOnLoad(function() { drawSurvey(surveyId) });
+    <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>
 <!-- General survey info -->