|
29 | 29 | label-text="Submission",
|
30 | 30 | field-id="SUBMISSION_ZIP",
|
31 | 31 | button-text="Add File",
|
32 |
| - file-type="(*.zip)", |
| 32 | + file-type="zip", |
| 33 | + show-file-type="true", |
33 | 34 | placeholder="Attach all visible files as a single .zip file",
|
34 | 35 | mandatory="true",
|
35 | 36 | set-file-reference="vm.setFileReference(file, fieldId)",
|
36 |
| - file-value="vm.submissionForm.submissionZip" |
| 37 | + ng-model="vm.submissionForm.submissionZip" |
37 | 38 | )
|
38 | 39 |
|
| 40 | + .tc-error-messages(ng-show="submissionForm['SUBMISSION_ZIP'].$touched && submissionForm['SUBMISSION_ZIP'].$invalid") |
| 41 | + p(ng-show="submissionForm['SUBMISSION_ZIP'].$error.required") This is not the correct file format. Please select a .zip file. |
| 42 | + |
39 | 43 | tc-file-input.tc-file-field(
|
40 | 44 | label-text="Source",
|
41 | 45 | field-id="SOURCE_ZIP",
|
42 | 46 | button-text="Add File",
|
43 |
| - file-type="(*.zip)", |
| 47 | + file-type="zip", |
| 48 | + show-file-type="true", |
44 | 49 | placeholder="Attach all source files as a single .zip file",
|
45 | 50 | mandatory="true",
|
46 | 51 | set-file-reference="vm.setFileReference(file, fieldId)",
|
47 |
| - file-value="vm.submissionForm.sourceZip" |
| 52 | + ng-model="vm.submissionForm.sourceZip" |
48 | 53 | )
|
49 | 54 |
|
| 55 | + .tc-error-messages(ng-show="submissionForm['SOURCE_ZIP'].$touched && submissionForm['SOURCE_ZIP'].$invalid") |
| 56 | + p(ng-show="submissionForm['SOURCE_ZIP'].$error.required") This is not the correct file format. Please select a .zip file. |
| 57 | + |
50 | 58 | tc-file-input.tc-file-field(
|
51 | 59 | label-text="Preview Image",
|
52 | 60 | field-id="DESIGN_COVER",
|
53 | 61 | button-text="Add File",
|
| 62 | + file-type="jpg,jpeg,png" |
54 | 63 | placeholder="Image file as .jpg or .png",
|
55 | 64 | mandatory="true",
|
56 | 65 | set-file-reference="vm.setFileReference(file, fieldId)",
|
57 |
| - file-value="vm.submissionForm.designCover" |
| 66 | + ng-model="vm.submissionForm.designCover" |
| 67 | + ) |
| 68 | + |
| 69 | + .tc-error-messages(ng-show="submissionForm['DESIGN_COVER'].$touched && submissionForm['DESIGN_COVER'].$invalid") |
| 70 | + p(ng-show="submissionForm['DESIGN_COVER'].$error.required") This is not the correct file format. Please select a .jpg or .png file. |
| 71 | + |
| 72 | + tc-input.fieldset__input.submitterRank( |
| 73 | + label-text="Rank #", |
| 74 | + input-name="Submission_Rank", |
| 75 | + input-value="vm.submissionForm.submitterRank", |
| 76 | + input-pattern="vm.rankRegEx", |
| 77 | + update-value-on-blur="vm.setRankTo1(inputValue)" |
58 | 78 | )
|
59 | 79 |
|
60 |
| - tc-input.fieldset__input.submitterRank(label-text="Rank #", input-value="vm.submissionForm.submitterRank") |
| 80 | + .tc-error-messages(ng-show="submissionForm.Submission_Rank.$dirty && submissionForm.Submission_Rank.$invalid") |
| 81 | + p(ng-show="submissionForm.Submission_Rank.$error.pattern") Please enter a positive integer. |
61 | 82 |
|
62 | 83 | .form-block.flex.wrap
|
63 | 84 | .form-block__instructions
|
|
104 | 125 | tc-input.fieldset__input(
|
105 | 126 | label-text="Font Name",
|
106 | 127 | placeholder="Select font source to edit field"
|
107 |
| - input-value="font.name" |
| 128 | + input-value="font.name", |
| 129 | + input-name="fontName{{$index}}" |
108 | 130 | )
|
109 | 131 |
|
110 | 132 | tc-input.fieldset__input(
|
111 | 133 | label-text="Font URL",
|
112 | 134 | placeholder="Select font source to edit field",
|
113 |
| - input-value="font.sourceUrl" |
| 135 | + input-value="font.sourceUrl", |
| 136 | + input-name="fontUrl{{$index}}" |
114 | 137 | )
|
115 | 138 |
|
116 | 139 | button.fieldset__button.tc-btn.tc-btn-s(type="button", ng-click="vm.createAnotherFontFieldset()") + Add Font
|
|
0 commit comments