Commit 42746234 by Tom Giannattasio

tweaked published messaging styles

parent 093d8385
...@@ -285,6 +285,7 @@ ...@@ -285,6 +285,7 @@
} }
.published-alert { .published-alert {
display: none;
padding: 10px; padding: 10px;
border: 1px solid #edbd3c; border: 1px solid #edbd3c;
border-radius: 3px; border-radius: 3px;
...@@ -430,7 +431,11 @@ ...@@ -430,7 +431,11 @@
display: none; display: none;
} }
#create-draft { .published-alert {
display: block;
}
.edit-draft-message {
display: none; display: none;
} }
} }
...@@ -438,13 +443,17 @@ ...@@ -438,13 +443,17 @@
.edit-state-public { .edit-state-public {
#save-draft, #save-draft,
#delete-draft, #delete-draft,
#publish-draft,
.component-actions, .component-actions,
.new-component-item, .new-component-item,
#published-alert { #published-alert,
.publish-draft-message {
display: none; display: none;
} }
.published-alert {
display: block;
}
.drag-handle { .drag-handle {
display: none !important; display: none !important;
} }
......
...@@ -80,8 +80,10 @@ ...@@ -80,8 +80,10 @@
<option value="private">Private</option> <option value="private">Private</option>
</select> </select>
</div> </div>
<a id="create-draft" href="#">This unit has been published. Click here to edit it.</a> <div class="row published-alert">
<a id="publish-draft" href="#">This unit has already been published. Click here to release your changes to it</a> <p class="edit-draft-message">This unit has been published. To make changes, you must <a href="#" id="create-draft">edit a draft</a>.</p>
<p class="publish-draft-message">This is a draft of the published unit. To update the live version, you must <a href="#" id="publish-draft">replace it with this draft</a>.</p>
</div>
<div class="row status"> <div class="row status">
<p>This unit is scheduled to be released to <strong>students</strong> on <strong>${subsection.start}</strong> with the subsection <a href="${reverse('edit_subsection', kwargs={'location': subsection.location})}">"${subsection.display_name}"</a></p> <p>This unit is scheduled to be released to <strong>students</strong> on <strong>${subsection.start}</strong> with the subsection <a href="${reverse('edit_subsection', kwargs={'location': subsection.location})}">"${subsection.display_name}"</a></p>
</div> </div>
......
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