Commit e3457fa2 by Tom Giannattasio

started styling section date pickers

parent b0055879
...@@ -734,7 +734,7 @@ function saveSetSectionScheduleDate(e) { ...@@ -734,7 +734,7 @@ function saveSetSectionScheduleDate(e) {
id = $(this).closest("section.courseware-section").data("id"); id = $(this).closest("section.courseware-section").data("id");
var $_this = $(this); var $_this = $(this);
// call into server to commit the new order // call into server to commit the new order
$.ajax({ $.ajax({
url: "/save_item", url: "/save_item",
type: "POST", type: "POST",
......
...@@ -28,14 +28,45 @@ input.courseware-unit-search-input { ...@@ -28,14 +28,45 @@ input.courseware-unit-search-input {
&.collapsed { &.collapsed {
padding-bottom: 0; padding-bottom: 0;
}
header { label {
height: 47px; float: left;
} line-height: 29px;
}
h4 {
display: none !important; .datepair {
} float: left;
margin-left: 10px;
}
.section-published-date {
position: absolute;
top: 12px;
right: 90px;
width: 250px;
font-size: 13px;
}
.datepair .date,
.datepair .time {
padding-left: 0;
padding-right: 0;
border: none;
background: none;
@include box-shadow(none);
font-size: 13px;
font-weight: 700;
color: $blue;
cursor: pointer;
}
.datepair .date {
width: 80px;
}
.datepair .time {
width: 65px;
} }
&.collapsed .subsection-list, &.collapsed .subsection-list,
...@@ -45,11 +76,11 @@ input.courseware-unit-search-input { ...@@ -45,11 +76,11 @@ input.courseware-unit-search-input {
} }
header { header {
height: 67px; height: 55px;
.item-details { .item-details {
float: left; float: left;
padding: 10px 0 0; padding: 15px 0 0;
} }
.item-actions { .item-actions {
...@@ -64,7 +95,7 @@ input.courseware-unit-search-input { ...@@ -64,7 +95,7 @@ input.courseware-unit-search-input {
.expand-collapse-icon { .expand-collapse-icon {
float: left; float: left;
margin: 16px 6px 16px 16px; margin: 20px 6px 16px 16px;
@include transition(none); @include transition(none);
} }
......
...@@ -74,24 +74,19 @@ ...@@ -74,24 +74,19 @@
<a href="#" class="save-button edit-section-name-save">Save</a><a href="#" class="cancel-button edit-section-name-cancel">Cancel</a> <a href="#" class="save-button edit-section-name-save">Save</a><a href="#" class="cancel-button edit-section-name-cancel">Cancel</a>
</div> </div>
</h3> </h3>
<h4 class='section-published-date'> <div class="section-published-date">
<label>Release Date:</label>
<% <%
start_date = datetime.fromtimestamp(mktime(section.start)) if section.start is not None else None start_date = datetime.fromtimestamp(mktime(section.start)) if section.start is not None else None
start_date_str = start_date.strftime('%m/%d/%Y') if start_date is not None else '' start_date_str = start_date.strftime('%m/%d/%Y') if start_date is not None else ''
start_time_str = start_date.strftime('%H:%M') if start_date is not None else '' start_time_str = start_date.strftime('%H:%M') if start_date is not None else ''
%> %>
%if start_date is None: <div class="datepair" data-language="javascript">
<strong>Unscheduled:</strong> <input type="text" name="start_date" value="${start_date_str}" placeholder="MM/DD/YYYY" class="date" size='15' autocomplete="off"/>
<a href="#" class="set-publish-date">click here to set</a> <input type="text" name="start_time" value="${start_time_str}" placeholder="HH:MM" class="time" size='10' autocomplete="off"/>
%else: <!--<a href="#" class="save-button edit-section-start-save">Save</a><a href="#" class="cancel-button edit-section-start-cancel">Cancel</a>-->
<strong>${start_date_str} at ${start_time_str}</strong> <a href="#" class="set-publish-date">click here to edit</a> </div>
%endif </div>
</h4>
<div class="datepair" data-language="javascript" style="display: none">
<input type="text" name="start_date" value="${start_date_str}" placeholder="MM/DD/YYYY" class="date" size='15' autocomplete="off"/>
<input type="text" name="start_time" value="${start_time_str}" placeholder="HH:MM" class="time" size='10' autocomplete="off"/>
<a href="#" class="save-button edit-section-start-save">Save</a><a href="#" class="cancel-button edit-section-start-cancel">Cancel</a>
</div>
</div> </div>
<div class="item-actions"> <div class="item-actions">
<a href="#" class="delete-button delete-section-button"><span class="delete-icon"></span></a> <a href="#" class="delete-button delete-section-button"><span class="delete-icon"></span></a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment