|
9 | 9 | a.tc-btn.tc-btn-s(ng-click="'TODO: go back to challenge details'") Back to Challenge Details
|
10 | 10 |
|
11 | 11 | .panel-body
|
12 |
| - form.form-blocks(name="vm.submissionForm", role="form", ng-submit="vm.submissionForm.$valid && vm.uploadSubmission()", novalidate) |
| 12 | + form.form-blocks(name="submissionForm", role="form", ng-submit="submissionForm.$valid && vm.uploadSubmission()", novalidate) |
13 | 13 | .form-block.flex.wrap
|
14 | 14 | .form-block__instructions
|
15 | 15 | .form-block__title Files
|
|
25 | 25 |
|
26 | 26 | .form-block__fields
|
27 | 27 | .fieldset
|
28 |
| - tc-file-input( |
| 28 | + tc-file-input.tc-file-field( |
29 | 29 | label-text="Submission",
|
30 | 30 | field-id="SUBMISSION_ZIP",
|
31 | 31 | button-text="Add File",
|
|
35 | 35 | set-file-reference="vm.setFileReference(file, fieldId)"
|
36 | 36 | )
|
37 | 37 |
|
38 |
| - tc-file-input( |
| 38 | + tc-file-input.tc-file-field( |
39 | 39 | label-text="Source",
|
40 | 40 | field-id="SOURCE_ZIP",
|
41 | 41 | button-text="Add File",
|
|
45 | 45 | set-file-reference="vm.setFileReference(file, fieldId)"
|
46 | 46 | )
|
47 | 47 |
|
48 |
| - tc-file-input( |
| 48 | + tc-file-input.tc-file-field( |
49 | 49 | label-text="Preview Image",
|
50 | 50 | field-id="DESIGN_COVER",
|
51 | 51 | button-text="Add File",
|
|
54 | 54 | set-file-reference="vm.setFileReference(file, fieldId)"
|
55 | 55 | )
|
56 | 56 |
|
| 57 | + tc-input.fieldset__input.submitterRank(label-text="Rank #", input-value="vm.submissionForm.submitterRank") |
| 58 | + |
57 | 59 | .form-block.flex.wrap
|
58 | 60 | .form-block__instructions
|
59 | 61 | .form-block__title Notes
|
|
101 | 103 |
|
102 | 104 | .form-block__fields
|
103 | 105 | .fieldsets
|
104 |
| - .fieldset |
105 |
| - tc-input.fieldset__input(label-text="Photo Description", placeholder="A picture of a girl") |
| 106 | + ng-form.fieldset(name="stockArt_{{$index}}", ng-repeat="stockArt in vm.submissionForm.stockArts track by stockArt.id") |
| 107 | + tc-input.fieldset__input(label-text="Photo Description", placeholder="A picture of a girl", input-value="stockArt.description") |
106 | 108 |
|
107 |
| - tc-input.fieldset__input(label-text="Photo URL", placeholder="www.istockphoto.com") |
| 109 | + tc-input.fieldset__input(label-text="Photo URL", placeholder="www.istockphoto.com", input-value="stockArt.sourceUrl") |
108 | 110 |
|
109 |
| - tc-input.fieldset__input(label-text="File Number", placeholder="u2434312") |
| 111 | + tc-input.fieldset__input(label-text="File Number", placeholder="u2434312", input-value="stockArt.fileNumber") |
110 | 112 |
|
111 |
| - button.fieldset__button.tc-btn.tc-btn-s(ng-click="") + Add Stock Photo |
| 113 | + button.fieldset__button.tc-btn.tc-btn-s(ng-click="vm.createAnotherStockArtFieldset()") + Add Stock Photo |
112 | 114 |
|
113 |
| - .panel-footer |
114 |
| - p Submitting your files means you hereby agree to the #[a(href="https://www.{{DOMAIN}}/community/how-it-works/terms/", target="_blank") Topcoder terms of use] and to the extent your uploaded file wins a Topcoder Competition, you hereby assign, grant, and transfer to Topcoder all rights in and title to the Winning Submission (as further described in the terms of use). |
| 115 | + .panel-footer |
| 116 | + p Submitting your files means you hereby agree to the #[a(href="https://www.{{DOMAIN}}/community/how-it-works/terms/", target="_blank") Topcoder terms of use] and to the extent your uploaded file wins a Topcoder Competition, you hereby assign, grant, and transfer to Topcoder all rights in and title to the Winning Submission (as further described in the terms of use). |
115 | 117 |
|
116 |
| - .checkbox.flex.center |
117 |
| - input(type="checkbox", ng-model="vm.hasAgreedToTerms", id="agree-to-terms", required) |
| 118 | + .checkbox.flex.center |
| 119 | + input(type="checkbox", ng-model="vm.submissionForm.hasAgreedToTerms", id="agree-to-terms", required) |
118 | 120 |
|
119 |
| - label(for="agree-to-terms") I understand and agree |
| 121 | + label(for="agree-to-terms") I understand and agree |
120 | 122 |
|
121 |
| - button.tc-btn.tc-btn-secondary(type="submit", ng-disabled="vm.submissionForm.$invalid") Submit |
| 123 | + button.tc-btn.tc-btn-secondary(type="submit", ng-disabled="submissionForm.$invalid") Submit |
0 commit comments