Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<section class="flex flex-column p-4 gap-4">
<h2>{{ 'navigation.files' | translate }}</h2>
<h2>{{ 'project.overview.files.filesPreview' | translate }}</h2>
<osf-select
class="w-full"
[options]="options()"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<section class="h-full" data-test-new-registration-form>
<osf-sub-header [title]="'registries.new.addNewRegistry' | translate" />

<section class="flex flex-column lg:flex-row flex-1 p-5 gap-4 bg-white w-full">
<p>
{{ 'registries.new.infoText1' | translate }}
<a class="font-bold" href="https://help.osf.io/"> {{ 'common.links.clickHere' | translate }}</a>
{{ 'registries.new.infoText2' | translate }}
</p>
</section>

<section class="flex flex-column flex-1 p-5 gap-4 w-full bg-white">
<p-card class="w-full">
<h2 class="mb-4">{{ ('registries.new.steps.title' | translate) + '1' }}</h2>
<h2 class="mb-4">{{ 'registries.new.steps.title' | translate }} 1</h2>
<p class="mb-4 text-lg font-bold">{{ 'registries.new.steps.step1' | translate }}</p>
<div class="flex gap-2">
<p-button
Expand All @@ -30,10 +32,11 @@ <h2 class="mb-4">{{ ('registries.new.steps.title' | translate) + '1' }}</h2>
/>
</div>
</p-card>

<form [formGroup]="draftForm" (ngSubmit)="createDraft()" class="flex flex-column gap-4">
@if (fromProject) {
<p-card class="w-full">
<h2 class="mb-4">{{ ('registries.new.steps.title' | translate) + '2' }}</h2>
<h2 class="mb-4">{{ 'registries.new.steps.title' | translate }} 2</h2>
<p class="mb-3 text-lg font-bold">{{ 'registries.new.steps.step2' | translate }}</p>
<p class="mb-4">{{ 'registries.new.steps.step2InfoText' | translate }}</p>
<div class="flex">
Expand All @@ -53,8 +56,9 @@ <h2 class="mb-4">{{ ('registries.new.steps.title' | translate) + '2' }}</h2>
</div>
</p-card>
}

<p-card class="w-full">
<h2 class="mb-4">{{ ('registries.new.steps.title' | translate) + (fromProject ? '3' : '2') }}</h2>
<h2 class="mb-4">{{ 'registries.new.steps.title' | translate }} {{ fromProject ? '3' : '2' }}</h2>
<p class="mb-4 text-lg font-bold">{{ 'registries.new.steps.step3' | translate }}</p>
<div class="flex">
<p-select
Expand All @@ -69,6 +73,7 @@ <h2 class="mb-4">{{ ('registries.new.steps.title' | translate) + (fromProject ?
/>
</div>
</p-card>

<div class="flex justify-content-end">
<p-button
data-test-start-registration-button
Expand Down
5 changes: 3 additions & 2 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,8 @@
"noWikiMessage": "<em>Add important information, links, or images here to describe your project.</em>"
},
"files": {
"title": "Files"
"title": "Files",
"filesPreview": "Files Preview"
},
"components": {
"title": "Components",
Expand Down Expand Up @@ -2339,7 +2340,7 @@
"new": {
"addNewRegistry": "Add New Registration",
"infoText1": "You are submitting to OSF Registries.",
"infoText2": "to learn more about other hosted registries",
"infoText2": "to learn more about other hosted registries.",
"steps": {
"title": "Step",
"step1": "Do you have content for registration in an existing OSF project?",
Expand Down
Loading