|
16 | 16 | </HeroOverlay> |
17 | 17 | </layout.heading> |
18 | 18 | <layout.main local-class='main'> |
| 19 | + <p local-class='InformationText'> |
| 20 | + {{t 'registries.new.provider_info' provider=this.model.name htmlSafe=true}} |
| 21 | + </p> |
19 | 22 | <form data-test-new-registration-form local-class='registrationForm'> |
20 | | - <label |
21 | | - data-test-project-select |
22 | | - local-class='selectLabel' |
23 | | - > |
| 23 | + <label local-class='selectLabel StepOneContainer'> |
24 | 24 | <p local-class='stepLabel'> |
25 | 25 | {{t 'registries.new.step_one'}} |
26 | 26 | </p> |
27 | | - <h2 |
28 | | - data-test-project-select-title |
29 | | - local-class='projectHeading' |
30 | | - > |
31 | | - {{t 'registries.new.select_project'}} |
32 | | - <span local-class='required' aria-label={{t 'registries.new.required'}}>*</span> |
33 | | - </h2> |
34 | | - <PowerSelect |
35 | | - @ariaLabel={{this.selectedProject.title}} |
36 | | - @placeholder={{t 'registries.new.select_project_placeholder'}} |
37 | | - @options={{this.projectOptions}} |
38 | | - @search={{perform this.projectSearch}} |
39 | | - @selected={{this.selectedProject}} |
40 | | - @onchange={{this.updateSelectedProject}} |
41 | | - as |option| |
42 | | - > |
43 | | - {{option.title}} |
44 | | - </PowerSelect> |
| 27 | + <fieldset local-class='RadioFieldset'> |
| 28 | + <legend local-class='RadioLegend'> |
| 29 | + {{t 'registries.new.step_one_project_heading'}} |
| 30 | + </legend> |
| 31 | + <input |
| 32 | + data-test-has-project-button |
| 33 | + local-class='RadioElement RadioInput' |
| 34 | + type='radio' |
| 35 | + name='HasProject' |
| 36 | + value='yes' |
| 37 | + onclick={{fn (mut this.isBasedOnProject) true}} |
| 38 | + checked={{this.isBasedOnProject}} |
| 39 | + > |
| 40 | + <label |
| 41 | + local-class='RadioElement RadioLabel {{if this.isBasedOnProject 'IsChecked'}}' |
| 42 | + for='HasProject' |
| 43 | + > |
| 44 | + {{t 'registries.new.yes'}} |
| 45 | + </label> |
| 46 | + <input |
| 47 | + data-test-no-project-button |
| 48 | + local-class='RadioElement RadioInput' |
| 49 | + type='radio' |
| 50 | + name='no-project' |
| 51 | + value='no' |
| 52 | + onclick={{fn (mut this.isBasedOnProject) false}} |
| 53 | + checked={{not this.isBasedOnProject}} |
| 54 | + > |
| 55 | + <label |
| 56 | + local-class='RadioElement RadioLabel {{unless this.isBasedOnProject 'IsChecked'}}' |
| 57 | + for='NoProject' |
| 58 | + > |
| 59 | + {{t 'registries.new.no'}} |
| 60 | + </label> |
| 61 | + </fieldset> |
45 | 62 | </label> |
| 63 | + {{#if this.isBasedOnProject}} |
| 64 | + <label data-test-project-select local-class='selectLabel'> |
| 65 | + <p local-class='stepLabel'> |
| 66 | + {{t 'registries.new.step_two'}} |
| 67 | + </p> |
| 68 | + <h3 data-test-project-select-title local-class='projectHeading'> |
| 69 | + {{t 'registries.new.select_project'}} |
| 70 | + <span local-class='required' aria-label={{t 'registries.new.required'}}>*</span> |
| 71 | + </h3> |
| 72 | + <PowerSelect |
| 73 | + @ariaLabel={{this.selectedProject.title}} |
| 74 | + @placeholder={{t 'registries.new.select_project_placeholder'}} |
| 75 | + @options={{this.projectOptions}} |
| 76 | + @search={{perform this.projectSearch}} |
| 77 | + @selected={{this.selectedProject}} |
| 78 | + @onchange={{this.updateSelectedProject}} |
| 79 | + as |option| |
| 80 | + > |
| 81 | + {{option.title}} |
| 82 | + </PowerSelect> |
| 83 | + </label> |
| 84 | + <p local-class='InformationText ComponentHelpText'> |
| 85 | + {{t 'registries.new.component_help_text'}} |
| 86 | + </p> |
| 87 | + {{/if}} |
46 | 88 |
|
47 | | - <p local-class='newProjectHelpText'> |
48 | | - {{t 'registries.new.new_project_help_fragment1'}} |
49 | | - <OsfLink |
50 | | - @route='dashboard' |
51 | | - > |
52 | | - {{t 'registries.new.go_to_dashboard'}} |
53 | | - </OsfLink> |
54 | | - {{t 'registries.new.new_project_help_fragment2' htmlSafe=true}} |
55 | | - </p> |
56 | | - |
57 | | - <label |
58 | | - data-test-schema-select |
59 | | - local-class='selectLabel' |
60 | | - > |
| 89 | + <label data-test-schema-select local-class='selectLabel'> |
61 | 90 | <p local-class='stepLabel'> |
62 | | - {{t 'registries.new.step_two'}} |
| 91 | + {{#if this.isBasedOnProject}} |
| 92 | + {{t 'registries.new.step_three'}} |
| 93 | + {{else}} |
| 94 | + {{t 'registries.new.step_two'}} |
| 95 | + {{/if}} |
63 | 96 | </p> |
64 | 97 | <h2 data-test-schema-select-title> |
65 | 98 | {{t 'registries.new.select_schema'}} |
|
0 commit comments