diff --git a/docs/upgrades/upgrade_5.3.0-5.3.1.sql b/docs/upgrades/upgrade_5.3.0-5.3.1.sql index 492599a70..f895fddb2 100644 --- a/docs/upgrades/upgrade_5.3.0-5.3.1.sql +++ b/docs/upgrades/upgrade_5.3.0-5.3.1.sql @@ -1,5 +1,6 @@ insert into webguiVersion values ('5.3.1','upgrade',unix_timestamp()); delete from international where languageId=1 and namespace='DataForm' and internationalId=83; insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (83,1,'DataForm','The following template variables are available for Data Form templates.\r\n
\r\n\r\nacknowledgement\r\nexport.tab.url
\r\nFollowing this URL will export the data stored to this data form as a tab delimited file.\r\n
\r\n\r\nexport.tab.label
\r\nThe default label for the export.tab.url variable.\r\n
\r\n\r\nentryList.url
\r\nFollowing this URL will display a list of all the record entries in this data form.\r\n
\r\n\r\nentryList.label
\r\nThe default label for the entryList.url variable.\r\n
\r\n\r\ncanEdit\r\nA conditional indicating whether the current user has the privileges to edit an existing entry or export the form\'s data.\r\n
\r\n\r\nback.url
\r\nA url that will take you back to the default page in the form.\r\n
\r\n\r\nback.label
\r\nThe default label for the back.url variable.\r\n
\r\n\r\nusername*
\r\nThe username of the user that submitted the data.\r\n
\r\n\r\nuserId*
\r\nThe user id of the user that submitted the data.\r\n
\r\n\r\ndate*
\r\nThe date that this data was submitted or last updated formatted as the user\'s preferred date/time format.\r\n
\r\n\r\n\r\nepoch*
\r\nThe date that this data was submitted or last updated formatted as an epoch date.\r\n
\r\n\r\nipAddress*
\r\nThe IP address of the user that submitted the data.\r\n
\r\n\r\nedit.url*
\r\nThe URL to the page to edit this entry.\r\n
\r\n\r\nerror_loop*
\r\nA loop containing error information, for instance if someone doesn\'t fill out a required field.\r\n
\r\n\r\n
\r\n\r\nerror.message*\r\n\r\naddField.url
\r\nAn error message indicating what the user might have done wrong.\r\n\r\n
\r\n\r\naddField.label
\r\nThe default label for the addField.url variable.\r\n
\r\n\r\nform.start
\r\nThe beginning of the form.\r\n
\r\n\r\nfield_loop
\r\nA loop containing all of the field information.\r\n
\r\n\r\n
\r\n\r\nfield.form\r\n\r\nform.send
\r\nThe form element for this field.\r\n\r\n\r\nfield.name
\r\nThe name of this field.\r\n\r\n\r\nfield.value
\r\nThe value of this field. If this is new data, then the default value will be used.\r\n\r\n\r\nfield.label
\r\nThe text label for this field.\r\n\r\n\r\nfield.isHidden
\r\nA conditional indicating whether this field is supposed to be hidden. \r\n\r\n\r\nfield.isDisplayed
\r\nA conditional indicating whether this field is supposed to be displayed. \r\n\r\n\r\nfield.isEditable
\r\nA conditional indicating whether this field is editable. \r\n\r\n\r\nfield.isRequired
\r\nA conditional indicating whether this field is required. \r\n\r\n\r\nfield.isMailField
\r\nA conditional indicating whether this field is present only to facilitate sending an email. \r\n\r\n\r\n\r\nfield.subtext
\r\nA description of the field so that users know what to put in the field.\r\n\r\n\r\nfield.controls
\r\nWebGUI\'s administrative controls for this field.\r\n\r\n\r\n
\r\n\r\nform.save/b>
\r\nA form button with the word "save" printed on it.\r\n
\r\n\r\nform.end
\r\nThe end of the form.\r\n
\r\n\r\n*Only available if the user has already submitted the form.', 1053948922,NULL);
-
+delete from template where namespace='DataForm' and templateId=3;
+INSERT INTO template VALUES (3,'Default Acknowledgement','\r\n
\r\n\r\n\"> \r\n \r\n