forked from CenterForOpenScience/ember-osf-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
66 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 24 additions & 11 deletions
35
app/preprints/-components/submit/author-assertions/data-link-widget/data-link/template.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,32 @@ | ||
<div local-class='form-container'> | ||
<div local-class='huh'> | ||
{{@value}} | ||
</div> | ||
<FormControls | ||
@changeset={{this.dataLinkFormChangeset}} | ||
data-test-form | ||
as |form| | ||
> | ||
<form.text | ||
data-test-data-link-input | ||
@isRequired={{true}} | ||
{{on 'focusout' this.onUpdate}} | ||
local-class='input-container' | ||
@placeholder={{t 'preprints.submit.step-three.public-data-link-placeholder'}} | ||
@valuePath={{'value'}} | ||
/> | ||
<div local-class='input-container'> | ||
<form.text | ||
data-test-data-link-input | ||
@isRequired={{true}} | ||
{{on 'focusout' this.onUpdate}} | ||
@placeholder={{t 'preprints.submit.step-three.public-data-link-placeholder'}} | ||
@valuePath={{'value'}} | ||
local-class='input' | ||
/> | ||
|
||
<div local-class='delete-container'> | ||
<Button | ||
data-test-remove-link | ||
aria-label={{t 'preprints.submit.step-three.public-data-link-remove-button'}} | ||
@layout='fake-link' | ||
{{on 'click' this.removeLink}} | ||
> | ||
<FaIcon @icon='times' local-class='delete' /> | ||
<EmberTooltip> | ||
{{t 'preprints.submit.step-three.public-data-link-remove-button'}} | ||
</EmberTooltip> | ||
</Button> | ||
</div> | ||
</div> | ||
</FormControls> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters