nav change in top-right to JamClass (kill band setup). Also fix right-navs
This commit is contained in:
parent
8727f4224d
commit
46f15568bf
|
|
@ -33,7 +33,56 @@ ActiveAdmin.register JamRuby::User, :as => 'Users' do
|
||||||
row :gender
|
row :gender
|
||||||
row :email_confirmed
|
row :email_confirmed
|
||||||
row :remember_token
|
row :remember_token
|
||||||
|
row :jamclass_credits
|
||||||
|
row :via_amazon
|
||||||
row :image do user.photo_url ? image_tag(user.photo_url) : '' end
|
row :image do user.photo_url ? image_tag(user.photo_url) : '' end
|
||||||
|
row "Taken Lessons" do
|
||||||
|
table_for user.taken_lessons.order('created_at desc') do
|
||||||
|
column "View" do |lesson_session| link_to("View", lesson_session.admin_url) end
|
||||||
|
column :created_at
|
||||||
|
column :status
|
||||||
|
column "Teacher" do |lesson_session|
|
||||||
|
teacher = lesson_session.teacher
|
||||||
|
span do
|
||||||
|
link_to teacher.admin_name, teacher.admin_url
|
||||||
|
end
|
||||||
|
end
|
||||||
|
column "Start Time" do |lesson_session|
|
||||||
|
span do
|
||||||
|
lesson_session.music_session.pretty_scheduled_start(true)
|
||||||
|
end
|
||||||
|
br
|
||||||
|
span do
|
||||||
|
lesson_session.music_session.scheduled_start
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
row "Taught Lessons" do
|
||||||
|
table_for user.taught_lessons.order('created_at desc') do
|
||||||
|
column "View" do |lesson_session| link_to("View", lesson_session.admin_url) end
|
||||||
|
column :created_at
|
||||||
|
column :status
|
||||||
|
column "Student" do |lesson_session|
|
||||||
|
student = lesson_session.student
|
||||||
|
span do
|
||||||
|
link_to student.admin_name, student.admin_name
|
||||||
|
end
|
||||||
|
end
|
||||||
|
column "Start Time" do |lesson_session|
|
||||||
|
span do
|
||||||
|
lesson_session.music_session.pretty_scheduled_start(true)
|
||||||
|
end
|
||||||
|
br
|
||||||
|
span do
|
||||||
|
lesson_session.music_session.scheduled_start
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
active_admin_comments
|
active_admin_comments
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -75,13 +75,15 @@ ActiveAdmin.register JamRuby::LessonSession, :as => 'LessonSessions' do
|
||||||
column "Teacher" do |lesson_session|
|
column "Teacher" do |lesson_session|
|
||||||
teacher = lesson_session.teacher
|
teacher = lesson_session.teacher
|
||||||
span do
|
span do
|
||||||
link_to "#{teacher.name} (#{teacher.email})", "#{Rails.application.config.external_root_url}/client#/profile/teacher/#{teacher.id}"
|
# link_to "#{teacher.name} (#{teacher.email})", "#{Rails.application.config.external_root_url}/client#/profile/teacher/#{teacher.id}"
|
||||||
|
link_to teacher.admin_name, teacher.admin_url
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
column "Student" do |lesson_session|
|
column "Student" do |lesson_session|
|
||||||
student = lesson_session.student
|
student = lesson_session.student
|
||||||
span do
|
span do
|
||||||
link_to "#{student.name} (#{student.email})", "#{Rails.application.config.external_root_url}/client#/profile/#{student.id}"
|
#link_to "#{student.name} (#{student.email})", "#{Rails.application.config.external_root_url}/client#/profile/#{student.id}"
|
||||||
|
link_to student.admin_name, student.admin_url
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -117,13 +119,15 @@ ActiveAdmin.register JamRuby::LessonSession, :as => 'LessonSessions' do
|
||||||
row "Teacher" do |lesson_session|
|
row "Teacher" do |lesson_session|
|
||||||
teacher = lesson_session.teacher
|
teacher = lesson_session.teacher
|
||||||
span do
|
span do
|
||||||
link_to teacher.admin_name, "#{Rails.application.config.external_root_url}/client#/profile/teacher/#{teacher.id}"
|
# link_to teacher.admin_name, "#{Rails.application.config.external_root_url}/client#/profile/teacher/#{teacher.id}"
|
||||||
|
link_to teacher.admin_name, teacher.admin_url
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
row "Student" do |lesson_session|
|
row "Student" do |lesson_session|
|
||||||
student = lesson_session.student
|
student = lesson_session.student
|
||||||
span do
|
span do
|
||||||
link_to student.admin_name, "#{Rails.application.config.external_root_url}/client#/profile/#{student.id}"
|
# link_to student.admin_name, "#{Rails.application.config.external_root_url}/client#/profile/#{student.id}"
|
||||||
|
link_to student.admin_name, student.admin_url
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
row "Followup Emails Sent" do |lesson_session|
|
row "Followup Emails Sent" do |lesson_session|
|
||||||
|
|
|
||||||
|
|
@ -1459,7 +1459,8 @@ module JamRuby
|
||||||
#else
|
#else
|
||||||
body = "Name: #{user.name}\n"
|
body = "Name: #{user.name}\n"
|
||||||
body << "Email: #{user.email}\n"
|
body << "Email: #{user.email}\n"
|
||||||
body << "Admin: #{user.admin_student_url}\n"
|
body << "Student List: #{user.admin_student_url}\n"
|
||||||
|
body << "User Page: #{user.admin_url}\n"
|
||||||
if posa_card
|
if posa_card
|
||||||
body << "Package Details: \n"
|
body << "Package Details: \n"
|
||||||
body << " Package: #{posa_card.lesson_package_type.id}\n"
|
body << " Package: #{posa_card.lesson_package_type.id}\n"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
@import "client/common";
|
@import "client/common";
|
||||||
|
|
||||||
//body.jam, body.web, .dialog{
|
//body.jam, body.web, .dialog{
|
||||||
html body {
|
html {
|
||||||
.bt-wrapper {
|
.bt-wrapper {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: 'Raleway', Arial, Helvetica, sans-serif;
|
font-family: 'Raleway', Arial, Helvetica, sans-serif;
|
||||||
|
|
@ -97,7 +97,7 @@ html body {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.side-remaining-test-drives, .side-buy-test-drive, .side-buy-normal-lesson, .side-didnt-find-teacher {
|
.side-remaining-jamclass-credits, .side-remaining-test-drives, .side-buy-test-drive, .side-buy-normal-lesson, .side-didnt-find-teacher {
|
||||||
h2 {
|
h2 {
|
||||||
font-size:20px;
|
font-size:20px;
|
||||||
color:white;
|
color:white;
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,7 @@
|
||||||
width:100%;
|
width:100%;
|
||||||
margin-bottom:16px;
|
margin-bottom:16px;
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
|
line-height:normal;
|
||||||
}
|
}
|
||||||
.teacher-actions {
|
.teacher-actions {
|
||||||
a {
|
a {
|
||||||
|
|
|
||||||
|
|
@ -424,7 +424,7 @@ script type="text/template" id="template-help-jamtrack-upgrade"
|
||||||
|
|
||||||
script type="text/template" id="template-help-side-remaining-jamclass-credits"
|
script type="text/template" id="template-help-side-remaining-jamclass-credits"
|
||||||
.side-remaining-jamclass-credits
|
.side-remaining-jamclass-credits
|
||||||
h2 Book TestDrive Lesson
|
h2 Book JamClass Lesson
|
||||||
p You currently have {{data.jamclass_credits}} JamClass lesson credits available.
|
p You currently have {{data.jamclass_credits}} JamClass lesson credits available.
|
||||||
a.book-now.button-orange BOOK NOW!
|
a.book-now.button-orange BOOK NOW!
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,8 +50,8 @@
|
||||||
<% if @nativeClient && Rails.application.config.jamblaster_menu %>
|
<% if @nativeClient && Rails.application.config.jamblaster_menu %>
|
||||||
<li class="jamblaster-config"><%= link_to "JamBlaster Settings", '/client#/jamblaster' %></li>
|
<li class="jamblaster-config"><%= link_to "JamBlaster Settings", '/client#/jamblaster' %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if current_user && current_user.musician? %>
|
<% if current_user %>
|
||||||
<li class="band-setup"><%= link_to "Band Setup", '/client#/band/setup/new' %></li>
|
<li class="band-setup"><%= link_to "JamClass", '/client#/jamclass' %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<li class="invite-friends"><span class='menuheader'><span class="arrow-right"></span><%= link_to "Invite Friends", '#' %></span>
|
<li class="invite-friends"><span class='menuheader'><span class="arrow-right"></span><%= link_to "Invite Friends", '#' %></span>
|
||||||
<ul class="shortcuts-submenu">
|
<ul class="shortcuts-submenu">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue