-
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.
Add active, planned and completed session tabs
This adds new tabs to the "School sessions" page allowing the user to see the sessions that are active, planned in the future, and already completed in the past.
- Loading branch information
1 parent
e99d723
commit deec5b3
Showing
6 changed files
with
69 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<% content_for :page_title, "#{t("sessions.index.title")} – Completed" %> | ||
<%= h1 t("sessions.index.title"), size: "xl" %> | ||
<%= render AppSecondaryNavigationComponent.new do |nav| | ||
nav.with_item(href: sessions_path, text: "Active") | ||
nav.with_item(href: planned_sessions_path, text: "Planned") | ||
nav.with_item(href: completed_sessions_path, text: "Completed", selected: true) | ||
end %> | ||
<% if @sessions.empty? %> | ||
<p>There are no sessions completed.</p> | ||
<% else %> | ||
<%= render AppSessionTableComponent.new(@sessions, description: "completed session", show_programmes: true) %> | ||
<% end %> |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<% content_for :page_title, "#{t("sessions.index.title")} – Planned" %> | ||
<%= h1 t("sessions.index.title"), size: "xl" %> | ||
<%= render AppSecondaryNavigationComponent.new do |nav| | ||
nav.with_item(href: sessions_path, text: "Active") | ||
nav.with_item(href: planned_sessions_path, text: "Planned", selected: true) | ||
nav.with_item(href: completed_sessions_path, text: "Completed") | ||
end %> | ||
<% if @sessions.empty? %> | ||
<p>There are no sessions planned.</p> | ||
<% else %> | ||
<%= render AppSessionTableComponent.new(@sessions, description: "planned session", show_programmes: true) %> | ||
<% end %> |
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