Skip to content

Commit 9168d82

Browse files
authored
Merge pull request #43 from abhishekdixitadobe/master
Fixed customer raised issues/enhancements
2 parents 3fc498d + 21dd855 commit 9168d82

File tree

7 files changed

+21
-8
lines changed

7 files changed

+21
-8
lines changed

static/css/stylesheet.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ governing permissions and limitations under the License.
2424
--workflow-form-submit-color: #2175c8;
2525
}
2626

27-
27+
#required:after{
28+
content:" *";
29+
color: red;
30+
}
2831
body{
2932
background: var(--application-background-color);
3033
font-family: "adobe-clean-n4", "adobe-clean", Helvetica, Arial, sans-serif;

static/js/CarbonCopy.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ governing permissions and limitations under the License.
1212

1313
class CarbonCopy{
1414

15-
constructor(parent_div, email, id){
15+
constructor(parent_div, email, id,cc_group_data){
1616
this.parent_div = parent_div;
1717
this.email = email;
1818
this.id = id;
1919
this.target_div = "";
2020
this.predefined = false;
21+
this.cc_group_data = cc_group_data;
2122
}
2223

2324
createCcDiv(){
@@ -87,7 +88,9 @@ class CarbonCopy{
8788
input.value = this.email;
8889
input.className = input.className + " predefined_input";
8990
this.predefined = true;
90-
91+
if (!(this.cc_group_data['editable'])) {
92+
input.disabled = true;
93+
}
9194
// Hide all settings turned on
9295
if(hide_all_trigger && !(hide_predefined_trigger)){
9396
var recipient_div = document.getElementById("cc_div_" + this.id);

static/js/DynamicForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@ class DynamicForm {
117117
for (let counter = 0; counter < max; counter++) {
118118
// If cc group is editable we create the max # of cc recipients
119119
if (cc_group_data['editable']) {
120-
this.cc_group.push(new CarbonCopy(this.parent_div.children[0], cc_group_recipients[counter], (counter + 1)))
120+
this.cc_group.push(new CarbonCopy(this.parent_div.children[0], cc_group_recipients[counter], (counter + 1),cc_group_data))
121121
this.cc_group[counter].createCcDiv();
122122
this.cc_group[counter].createCcLabelField();
123123
this.cc_group[counter].createCcInputField(hide_all_cc_trigger, hide_cc_predefined_trigger);
124124
}
125125
// If not editable only create the predefine ones
126126
else {
127127
if (counter < cc_group_recipients.length) {
128-
this.cc_group.push(new CarbonCopy(this.parent_div.children[0], cc_group_recipients[counter], (counter + 1)))
128+
this.cc_group.push(new CarbonCopy(this.parent_div.children[0], cc_group_recipients[counter], (counter + 1),cc_group_data))
129129
this.cc_group[counter].createCcDiv();
130130
this.cc_group[counter].createCcLabelField();
131131
this.cc_group[counter].createCcInputField(hide_all_cc_trigger, hide_cc_predefined_trigger);

static/js/FileInfo.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ class FileInfo {
5757

5858
// Create the element
5959
var doc_label = document.createElement('h3');
60-
60+
if(this.required){
61+
doc_label.id = "required";
62+
}
6163
// Add the attributes
6264
doc_label.innerText = this.label;
6365

static/js/MergeField.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ class MergeField{
5454

5555
// Create element
5656
var merge_field_label = document.createElement('h3');
57-
57+
if(this.required){
58+
merge_field_label.id = "required";
59+
}
5860
// Add attributes
5961
merge_field_label.innerText = this.display_name;
6062

static/js/RecipientGroup.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ class RecipientGroup {
5252

5353
// Add attributes
5454
label.className = "recipient_label";
55+
if(this.required){
56+
label.id = "required";
57+
}
5558
label.innerHTML = this.recipient_group_data['label'];
5659

5760
// Append to parent

static/js/Reminder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class Reminder{
126126
'Every third day': 'EVERY_THIRD_DAY_UNTIL_SIGNED',
127127
'Every fifth day': 'EVERY_FIFTH_DAY_UNTIL_SIGNED'
128128
}
129-
129+
dropdown.value = 'DAILY_UNTIL_SIGNED';
130130
this.sub_div.append(dropdown)
131131

132132
for (const [key, value] of Object.entries(dropdown_options)) {

0 commit comments

Comments
 (0)