forked from ontoportal/ontoportal_web_ui
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Make agent indentifiers field set by default based on agent …
…type (#721) * remove the restriction for certain submission fields to create only organization type or person type agents * make orcid or ror default input based on agent type in agent form * fix disappeared signup form icons * fix nested agents creation * fix agent form not filling saved identifier values * create an agent identifier input helper * disable cookie banner in development and test mode * fix agent tests after enforcing ROR for organizations --------- Co-authored-by: Syphax <gs_bouazzouni@esi.dz>
- Loading branch information
1 parent
c6d7c8e
commit 5925571
Showing
7 changed files
with
110 additions
and
47 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
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,45 +1,63 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" <%="xml:lang=\"#{I18n.locale}\""%> lang="<%=I18n.locale%>"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" <%= "xml:lang=\"#{I18n.locale}\"" %> lang="<%= I18n.locale %>"> | ||
<head> | ||
<%= render partial: 'ga_tracking' %> | ||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" /> | ||
<%= render partial: 'ga_tracking' %> | ||
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/> | ||
|
||
<!-- Force IE to use latest rendering engine --> | ||
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/> | ||
<!-- Force IE to use latest rendering engine --> | ||
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/> | ||
|
||
<% unless Rails.env.appliance? %> | ||
<% unless Rails.env.appliance? %> | ||
<!-- Google Webmaster Tools verifications --> | ||
<meta name="google-site-verification" content="IBxfKu6VbYH9atd5OLu2zXVD2ZRWi9SgMKTi8nvw3ks" /> | ||
<meta name="google-site-verification" content="IBxfKu6VbYH9atd5OLu2zXVD2ZRWi9SgMKTi8nvw3ks"/> | ||
<% end %> | ||
<meta name="turbo-cache-control" content="no-cache"> | ||
<%= csrf_meta_tag %> | ||
|
||
<title><%if @title.nil?%><%=$ORG_SITE%><%else%><%="#{@title} | #{$ORG_SITE}"%><%end%></title> | ||
|
||
<link rel="shortcut icon" href="/fav.ico" type="image/x-icon" /> | ||
<!-- Fonts --> | ||
<link href='//fonts.googleapis.com/css?family=Droid+Sans:400' rel='stylesheet' type='text/css'> | ||
<!-- CSS --> | ||
<meta name="turbo-cache-control" content="no-cache"> | ||
<%= csrf_meta_tag %> | ||
|
||
<title> | ||
<% if @title.nil? %><%= $ORG_SITE %> | ||
<% else %><%= "#{@title} | #{$ORG_SITE}" %> | ||
<% end %></title> | ||
|
||
<link rel="shortcut icon" href="/fav.ico" type="image/x-icon"/> | ||
<!-- Fonts --> | ||
<link href='//fonts.googleapis.com/css?family=Droid+Sans:400' rel='stylesheet' type='text/css'> | ||
<!-- CSS --> | ||
<%= stylesheet_link_tag "https://use.fontawesome.com/releases/v5.2.0/css/all.css", integrity: "sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ", crossorigin: "anonymous" %> | ||
<%= stylesheet_link_tag "application" %> | ||
|
||
<!-- JavaScript --> | ||
<%= javascript_include_tag "vendor" %> | ||
|
||
<script> | ||
jQuery(document).data({bp: {config: <%=bp_config_json.html_safe%>, user: <%=(session[:user] || {}).to_hash.to_json.html_safe%>}}); | ||
jQuery(document).data().bp.ontology = <%=@ontology.to_json.html_safe%> || {}; | ||
jQuery(document).data().bp.submission_latest = <%=@submission_latest.to_json.html_safe%> || {}; | ||
jQuery(document).data().bp.ontolobridge_ontologies = <%=$NEW_TERM_REQUEST_ONTOLOGIES.to_json.html_safe%> || []; | ||
jQuery(document).data().bp.ont_viewer = {}; | ||
jQuery(document).data().bp.ont_chart = {}; | ||
jQuery(document).data({ | ||
bp: { | ||
config: <%=bp_config_json.html_safe%>, | ||
user: <%=(session[:user] || {}).to_hash.to_json.html_safe%> | ||
} | ||
}); | ||
jQuery(document).data().bp.ontology = | ||
<%=@ontology.to_json.html_safe%> || | ||
{ | ||
} | ||
; | ||
jQuery(document).data().bp.submission_latest = | ||
<%=@submission_latest.to_json.html_safe%> || | ||
{ | ||
} | ||
; | ||
jQuery(document).data().bp.ontolobridge_ontologies = | ||
<%=$NEW_TERM_REQUEST_ONTOLOGIES.to_json.html_safe%> || | ||
[]; | ||
jQuery(document).data().bp.ont_viewer = {}; | ||
jQuery(document).data().bp.ont_chart = {}; | ||
</script> | ||
|
||
<!-- BioPortal-specific JavaScript is loaded in _footer.html.erb. --> | ||
<!-- BioPortal-specific JavaScript is loaded in _footer.html.erb. --> | ||
</head> | ||
<body class="<%= controller_name %> <%= action_name %>"> | ||
<%=render partial: 'layouts/topnav'%> | ||
<%= turbo_frame_tag :cookies_modal, src: cookies_path if session[:cookies_accepted].nil? %> | ||
<%= render partial: 'layouts/topnav' %> | ||
<%= turbo_frame_tag :cookies_modal, src: cookies_path if session[:cookies_accepted].nil? && !(Rails.env.development? || Rails.env.test?) %> | ||
|
||
<div class="flex-grow-1"> | ||
<%=render partial: 'layouts/notices'%> | ||
<div class="flex-grow-1"> | ||
<%= render partial: 'layouts/notices' %> |
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