feature: initial comments template

completes #150
This commit is contained in:
Gary Sharp
2025-01-24 17:28:27 +11:00
parent 408e1c4c14
commit 0853bcee50
39 changed files with 956 additions and 527 deletions
@@ -15,7 +15,7 @@
document.DiscoFunctions = {};
}
document.DiscoFunctions.CreateOpenJobDialog = function (url) {
createJobDialog = $('<div>').attr('id', 'createJobDialog').css({ paddingTop: '0' }).appendTo(document.body);
createJobDialog = $('<div>').attr('id', 'createJobDialog').css({ padding: '0', overflow: 'hidden', backgroundColor: '#fff' }).appendTo(document.body);
createJobDialog.dialog({
resizable: false,
@@ -1 +1 @@
(function(n,t,i){n(function(){var r=null,u={close:function(){r.dialog("close")},setButtons:function(n){r&&r.dialog("option","buttons",n)}};i.DiscoFunctions||(i.DiscoFunctions={});i.DiscoFunctions.CreateOpenJobDialog=function(f){r=n("<div>").attr("id","createJobDialog").css({paddingTop:"0"}).appendTo(i.body);r.dialog({resizable:!1,draggable:!1,modal:!0,autoOpen:!1,title:"Create Job",width:850,height:Math.min(670,n(t).height()-50),close:function(){r.find("iframe").attr("src","about:blank");r.dialog("destroy").remove();r=null},buttons:{}});var e=n("<iframe>").attr({src:f}).css({border:"none",height:"100%",width:"100%"}).appendTo(r);r[0].discoDialogMethods=u;t.setTimeout(function(){r.dialog("open")},1)};n("#buttonCreateJob").click(function(){var t=n(this),r=t.attr("href");return i.DiscoFunctions.CreateOpenJobDialog(r),!1})})})($,window,document);
(function(n,t,i){n(function(){var r=null,u={close:function(){r.dialog("close")},setButtons:function(n){r&&r.dialog("option","buttons",n)}};i.DiscoFunctions||(i.DiscoFunctions={});i.DiscoFunctions.CreateOpenJobDialog=function(f){r=n("<div>").attr("id","createJobDialog").css({padding:"0",overflow:"hidden",backgroundColor:"#fff"}).appendTo(i.body);r.dialog({resizable:!1,draggable:!1,modal:!0,autoOpen:!1,title:"Create Job",width:850,height:Math.min(670,n(t).height()-50),close:function(){r.find("iframe").attr("src","about:blank");r.dialog("destroy").remove();r=null},buttons:{}});var e=n("<iframe>").attr({src:f}).css({border:"none",height:"100%",width:"100%"}).appendTo(r);r[0].discoDialogMethods=u;t.setTimeout(function(){r.dialog("open")},1)};n("#buttonCreateJob").click(function(){var t=n(this),r=t.attr("href");return i.DiscoFunctions.CreateOpenJobDialog(r),!1})})})($,window,document);
@@ -15,7 +15,7 @@
document.DiscoFunctions = {};
}
document.DiscoFunctions.CreateOpenJobDialog = function (url) {
createJobDialog = $('<div>').attr('id', 'createJobDialog').css({ paddingTop: '0' }).appendTo(document.body);
createJobDialog = $('<div>').attr('id', 'createJobDialog').css({ padding: '0', overflow: 'hidden', backgroundColor: '#fff' }).appendTo(document.body);
createJobDialog.dialog({
resizable: false,
+7
View File
@@ -1554,6 +1554,13 @@ h1.Config_DocumentTemplates {
height: 200px;
margin: 0 auto;
}
#Config_JobPref_General #InitialCommentsTemplate {
margin-top: 4px;
min-width: calc(100% - 43px);
min-height: 40px;
height: auto;
field-sizing: content;
}
#Config_JobPref_Expressions {
margin-top: 10px;
}
+10
View File
@@ -1813,6 +1813,16 @@ h1.Config_DocumentTemplates {
}
}
#Config_JobPref_General {
#InitialCommentsTemplate {
margin-top: 4px;
min-width: calc(100% - 43px);
min-height: 40px;
height: auto;
field-sizing: content;
}
}
#Config_JobPref_Expressions {
margin-top: 10px;
File diff suppressed because one or more lines are too long
+4 -6
View File
@@ -902,19 +902,16 @@
height: 150px;
}
#createJob_Container {
margin: 0 -20px;
margin: 0 10px;
}
#createJob_Container img.modelImage {
width: 64px;
height: 64px;
}
#createJob_Container .createJob_Component {
#createJob_Container .createJob_Component:not(:first-child) {
margin: 0 10px;
padding: 5px 0;
border-bottom: 1px dashed #ccc;
}
#createJob_Container .createJob_Component:last-child {
border-bottom: none;
border-top: 1px dashed #ccc;
}
#createJob_Container #createJob_Type {
border: 1px solid #ccc;
@@ -962,6 +959,7 @@
#createJob_Container #createJob_CommentsContainer #Comments {
width: 100%;
min-width: 500px;
field-sizing: content;
}
#createJob_Container #createJob_QuickLogAutoCloseContainer h3 {
margin-bottom: 4px;
+4 -8
View File
@@ -970,24 +970,19 @@
}
#createJob_Container {
margin: 0 -20px;
margin: 0 10px;
img.modelImage {
width: 64px;
height: 64px;
}
.createJob_Component {
.createJob_Component:not(:first-child) {
margin: 0 10px;
padding: 5px 0;
border-bottom: 1px dashed #ccc;
border-top: 1px dashed #ccc;
}
.createJob_Component:last-child {
border-bottom: none;
}
#createJob_Type {
border: 1px solid #ccc;
background-color: @BackgroundColourGradient;
@@ -1040,6 +1035,7 @@
#Comments {
width: 100%;
min-width: 500px;
field-sizing: content;
}
}
File diff suppressed because one or more lines are too long