-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the form view for entering institution data.
- Loading branch information
1 parent
dba83bf
commit 6438f03
Showing
6 changed files
with
13 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,13 @@ | ||
<%= f.error_messages -%> | ||
|
||
<div class="form-group"> | ||
<%= f.label :title, 'Name', class: 'required' -%> | ||
<%= f.text_field :title, :class=>"form-control" -%> | ||
<div> | ||
<div class="tab-pane fade active in" id="search-by-name-tab" role="tabpanel" aria-labelledby="search-by-name-tab"> | ||
<%= render partial: 'institution_fields', locals: {f:f, institution:institution} %> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= f.label :ror_id, 'ROR ID' -%> | ||
<%= f.text_field :ror_id, :class=>"form-control" -%> | ||
<small class="form-text text-muted"> | ||
<em>The ROR ID (Research Organization Registry Identifier) is a unique 9-character alphanumeric code (e.g., 01f7bcy98). | ||
Please do not include the prefix (e.g., https://ror.org/).</em> | ||
</small> | ||
</div> | ||
<%= render :partial=> "assets/discussion_links_form", :locals=>{:resource => @institution} -%> | ||
|
||
<div class="form-group"> | ||
<%= f.label :web_page -%> | ||
<%= f.text_field :web_page, :class=>"form-control" -%> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= f.label :address -%> | ||
<%= f.text_area :address, :rows => 5, :class=>"form-control" -%> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= f.label :city -%> | ||
<%= f.text_field :city, :class=>"form-control" -%> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= f.label :country -%> | ||
<%= f.country_select :country, { include_blank: 'Please select...' }, class: 'form-control' -%> | ||
</div> | ||
<%= f.submit(institution ? "Update" : "Create",data: { disable_with: (institution ? "Updating..." : "Creating...") }, | ||
:class => 'btn btn-primary') -%> or | ||
<%= cancel_button(institution ? institution_path(institution.id) : institutions_path) -%> | ||
|
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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