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());
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);
}
[% 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 -->