-
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.
Refine the project approval page for System Administrators (#673)
- Loading branch information
Showing
13 changed files
with
258 additions
and
19 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,6 +1,31 @@ | ||
<approve id="approve"> | ||
<h1>Project Approval: <%=@title%> </h1> | ||
<h2 >Approve this project by appending a mediaflux id</h2> | ||
|
||
<%= form_with url: project_path(@project), method: :put do |form| %> | ||
<%= render "approve_form" %> | ||
<% end %> | ||
<div class="details"> | ||
<h4>Metadata Highlights</h4> | ||
<dl> | ||
<dt>Data Sponsor</dt> <dd><%= @data_sponsor.display_name_safe %></dd> | ||
<dt>Affiliated Department(s)</dt> <dd><%= @departments %></dd> | ||
<dt>Project Directory</dt> <dd><%= Rails.configuration.mediaflux["api_root_ns"] %>/<%= @project.metadata[:directory] %></dd> | ||
<dt>Title</dt> <dd><%=@project.metadata[:title] %></dd> | ||
<dt>Project ID</dt> <dd><%= @project.metadata[:project_id] %></dd> | ||
<dt>Storage Capacity - Request</dt> <dd><%= "#{@project.metadata[:storage_capacity][:size][:requested]} #{@project.metadata[:storage_capacity][:unit][:requested]}" %></dd> | ||
</dl> | ||
<p> | ||
Submission | ||
<ul class> | ||
<% @provenance_events.each do |event| %> | ||
<li class="provenance"> <%= event.event_details %>, <%=event.created_at.to_time.in_time_zone("America/New_York").iso8601%> </li> | ||
<% end %> | ||
</ul> | ||
</p> | ||
</div> | ||
|
||
<div class="details"> | ||
<h4>Project Approval Confirmation Information</h4> | ||
<%= form_with url: project_path(@project), method: :put do |form| %> | ||
<%= render "approve_form" %> | ||
<% end %> | ||
</div> | ||
|
||
</approve> |
5 changes: 5 additions & 0 deletions
5
db/migrate/20240502205208_add_event_note_to_provenance_event.rb
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddEventNoteToProvenanceEvent < ActiveRecord::Migration[7.0] | ||
def change | ||
add_column :provenance_events, :event_note, :jsonb | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Oops, something went wrong.