Jobs page changes. Modified JobsEdit controller to incorporate new fields. Shows/hides job template based on the type of job. Re-ordered fields. Made the stdout textarea resizable. Fixed a bug in the accordions.

This commit is contained in:
Chris Houseknecht
2014-03-23 04:14:29 -04:00
parent 65aae82827
commit 10e6baaca0
10 changed files with 601 additions and 77 deletions

View File

@@ -1308,16 +1308,13 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies', 'Utilities'])
if (this.form.collapse && this.form.collapseMode === options.mode) {
html += "</div>\n";
//html += "</div>\n";
}
if ((!this.modal) && options.related && this.form.related) {
html += this.buildCollections(options);
}
return html;
},
buildCollections: function (options) {
@@ -1339,7 +1336,7 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies', 'Utilities'])
for (itm in form.related) {
if (form.related[itm].type === 'collection') {
html += "<h3 class=\"" + itm + "_collapse\">" + form.related[itm].title + "<h3>\n";
html += "<h3 class=\"" + itm + "_collapse\">" + form.related[itm].title + "</h3>\n";
html += "<div>\n";
if (form.related[itm].instructions) {