Commit 72a7ec9e by Brian Talbot

studio - advanced settings: removed new/delete controls from advanced policies…

studio - advanced settings: removed new/delete controls from advanced policies and makde key fields readonly/disabled since we're now showing all policy metadata
parent 95f8f811
<li class="field-group course-advanced-policy-list-item"> <li class="field-group course-advanced-policy-list-item">
<div class="field text key" id="<%= (_.isEmpty(key) ? '__new_advanced_key__' : key) %>"> <div class="field text key" id="<%= (_.isEmpty(key) ? '__new_advanced_key__' : key) %>">
<label for="<%= keyUniqueId %>">Policy Key:</label> <label for="<%= keyUniqueId %>">Policy Key:</label>
<input type="text" class="short policy-key" id="<%= keyUniqueId %>" value="<%= key %>" /> <input disabled readonly title="This field is disabled: policy keys cannot be edited." type="text" class="short policy-key" id="<%= keyUniqueId %>" value="<%= key %>" />
<span class="tip tip-stacked">Keys are case sensitive and cannot contain spaces or start with a number</span> <span class="tip tip-stacked">Keys are case sensitive and cannot contain spaces or start with a number</span>
</div> </div>
...@@ -9,8 +9,4 @@ ...@@ -9,8 +9,4 @@
<label for="<%= valueUniqueId %>">Policy Value:</label> <label for="<%= valueUniqueId %>">Policy Value:</label>
<textarea class="json text" id="<%= valueUniqueId %>"><%= value %></textarea> <textarea class="json text" id="<%= valueUniqueId %>"><%= value %></textarea>
</div> </div>
<div class="actions">
<a href="#" class="button delete-button standard remove-item remove-grading-data"><span class="delete-icon"></span>Delete</a>
</div>
</li> </li>
\ No newline at end of file
...@@ -405,6 +405,11 @@ textarea.text { ...@@ -405,6 +405,11 @@ textarea.text {
@include linear-gradient($paleYellow, tint($paleYellow, 90%)); @include linear-gradient($paleYellow, tint($paleYellow, 90%));
outline: 0; outline: 0;
} }
&[disabled] {
border-color: $gray-l4;
color: $gray-l2;
}
} }
// forms - specific // forms - specific
......
...@@ -672,6 +672,11 @@ body.course.settings { ...@@ -672,6 +672,11 @@ body.course.settings {
.key { .key {
width: flex-grid(3, 9); width: flex-grid(3, 9);
margin-right: flex-gutter(); margin-right: flex-gutter();
// disabled/uneditable style
label {
color: $gray-l2;
}
} }
.value { .value {
......
...@@ -67,12 +67,6 @@ editor.render(); ...@@ -67,12 +67,6 @@ editor.render();
<ul class="list-input course-advanced-policy-list enum"> <ul class="list-input course-advanced-policy-list enum">
</ul> </ul>
<div class="actions">
<a href="#" class="button new-button new-advanced-policy-item add-policy-data">
<span class="plus-icon white"></span>New Manual Policy
</a>
</div>
</section> </section>
</form> </form>
</article> </article>
......
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