Adds setup checklist button to Course publish header

When you start a new course and there is the box that says,
"Your Course is Unpublished" we have now added a button that will
kick off the course setup checklist when activiated.

Test Plan:
- Start a new course
- The Wizard should not automatically pop up
- Click on the blue Setup Checklist button
- The Wizard should now pop up

Change-Id: I8a9a46f6eb3ce62a0f29e72ba397eb0169deda91
Reviewed-on: https://gerrit.instructure.com/46980
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
This commit is contained in:
Colleen Palmer 2015-01-09 14:30:27 -07:00 committed by Clay Diffrient
parent ab731fbc9c
commit 76fd81bab2
2 changed files with 34 additions and 4 deletions

View File

@ -154,6 +154,23 @@
:width auto
:padding 5px 10px
.Reminder__course-setup
.Reminder__course-setup-title
text-align: left
.Reminder__course-setup-subttitle
float: right
font-size: 11px
text-transform: capitalize
.Reminder__course-setup-body
text-align: center
p
font-size: 15px
margin-bottom: 0
padding-bottom: 0
a
margin: 0 0 10px 0
#floating_reminders
:cursor move

View File

@ -159,9 +159,21 @@
<% js_bundle 'legacy/courses_show' %>
<% if @context.created? || @context.claimed? %>
<div class="reminder" style='text-align:center;'>
<h2><%= t('headings.unpublished', %{This Course is Unpublished}) %></h2>
<div class="body"><%= t 'teachers_only', "Only teachers can see this course until it is *published*", :wrapper => (can_do(@context, @current_user, :update) ? '<a href="#" class="publish_course_in_wizard_link"><b>\1</b></a>' : '\1') %>
<div class="reminder Reminder__course-setup">
<h2 class="Reminder__course-setup-title">
<%= t('headings.unpublished', %{This Course is Unpublished}) %>
<span class="Reminder__course-setup-subttitle">
<%= t 'teachers_only', "Only teachers can see this course until it is *published*", :wrapper => (can_do(@context, @current_user, :update) ? '<a href="#" class="publish_course_in_wizard_link"><b>\1</b></a>' : '\1') %>
</span>
</h2>
<div class="body Reminder__course-setup-body">
<p>Need help setting up your course?</p>
<br/>
<a href="#" class="btn btn-primary wizard_popup_link <%= 'auto_open' if @context.created? || @context.claimed? %>">
<%= t("Setup Checklist") %>
</a>
<!-- <button class="btn btn-primary">Setup Checklist</button> -->
</div>
</div>
<% end %>
@ -207,6 +219,7 @@
<% end %>
<div id="course_home_content">
<% if @course_home_view == 'wiki' %>
<% js_bundle :wiki_page_show %>
<div id="wiki_page_show"></div>