Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
bc4d5f41
Commit
bc4d5f41
authored
Nov 19, 2012
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
settings - various style/alignment tweaks to inline/existinf fields
parent
14f668a4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
36 deletions
+103
-36
cms/static/sass/_settings.scss
+38
-6
cms/static/sass/_variables.scss
+1
-0
cms/templates/settings.html
+64
-30
No files found.
cms/static/sass/_settings.scss
View file @
bc4d5f41
...
...
@@ -129,6 +129,7 @@
}
&
.short
{
min-width
:
100px
;
width
:
25%
;
}
...
...
@@ -148,8 +149,8 @@
}
}
.input-default
{
color
:
$
dark
Grey
;
.input-default
input
,
.input-default
textarea
{
color
:
$
medium
Grey
;
background
:
$lightGrey
;
}
...
...
@@ -379,7 +380,7 @@
}
.field
{
width
:
400px
;
width
:
400px
!
important
;
}
&
.multi-inline
{
...
...
@@ -426,10 +427,10 @@
.current
{
width
:
100%
;
margin
:
10px
0
;
padding
:
1
5
px
;
padding
:
1
0
px
;
@include
box-sizing
(
border-box
);
@include
border-radius
(
5px
);
background
:
tint
(
$
blue
,
8
0%
);
background
:
tint
(
$
lightGrey
,
5
0%
);
}
}
...
...
@@ -464,6 +465,10 @@
border-bottom
:
none
;
}
}
.remove-faculty-photo
{
display
:
inline-block
;
}
}
#course-faculty-bio-input
{
...
...
@@ -493,7 +498,6 @@
.course-grading-gradeweight
,
.course-grading-totalassignments
,
.course-grading-totalassignmentsdroppable
{
input
{
width
:
73px
;
}
}
}
...
...
@@ -514,6 +518,23 @@
.settings-discussions
{
.settings-discussions-categories
.course-discussions-categories-list-item
{
label
{
display
:
none
;
}
.group
{
display
:
inline-block
;
}
.remove-item
{
display
:
inline-block
!
important
;
margin-left
:
10px
;
}
}
}
// states
...
...
@@ -543,6 +564,17 @@
// }
// }
input
.error
,
textarea
.error
{
border-color
:
$red
;
}
.message-error
{
display
:
block
;
margin-top
:
5px
;
color
:
$red
;
font-size
:
13px
;
}
// misc
.divide
{
display
:
none
;
...
...
cms/static/sass/_variables.scss
View file @
bc4d5f41
...
...
@@ -16,6 +16,7 @@ $error-red: rgb(253, 87, 87);
$offBlack
:
#3c3c3c
;
$blue
:
#5597dd
;
$orange
:
#edbd3c
;
$red
:
#e23c3e
;
$lightGrey
:
#edf1f5
;
$mediumGrey
:
#ced2db
;
$darkGrey
:
#8891a1
;
...
...
cms/templates/settings.html
View file @
bc4d5f41
...
...
@@ -171,7 +171,18 @@
<div
class=
"field"
>
<div
class=
"input"
>
<input
type=
"text"
class=
"start-date date set-date"
id=
"course-start-date-input"
placeholder=
"MM/DD/YYYY"
>
<span
class=
"tip tip-inline"
>
First day the class begins
</span>
<span
class=
"tip tip-inline"
>
First day the course begins
</span>
</div>
</div>
</div>
<div
class=
"row row-col2"
>
<label
for=
"course-start-date-input"
>
Course Start Date:
</label>
<div
class=
"field"
>
<div
class=
"input"
>
<input
type=
"text"
class=
"error start-date date set-date"
id=
"course-start-date-input"
placeholder=
"MM/DD/YYYY"
value=
"12/25/2014"
>
<span
class=
"tip tip-inline"
>
First day the course begins
</span>
<span
class=
"message-error"
>
The start date of the course cannot be after the end date of the course
</span>
</div>
</div>
</div>
...
...
@@ -181,7 +192,18 @@
<div
class=
"field"
>
<div
class=
"input"
>
<input
type=
"text"
class=
"end-date date set-date"
id=
"course-end-date-input"
placeholder=
"MM/DD/YYYY"
>
<span
class=
"tip tip-inline"
>
Last day the class begins
</span>
<span
class=
"tip tip-inline"
>
Last day the course begins
</span>
</div>
</div>
</div>
<div
class=
"row row-col2"
>
<label
for=
"course-end-date-input"
>
Course End Date:
</label>
<div
class=
"field"
>
<div
class=
"input"
>
<input
type=
"text"
class=
"error end-date date set-date"
id=
"course-end-date-input"
placeholder=
"MM/DD/YYYY"
value=
"12/25/2014"
>
<span
class=
"tip tip-inline"
>
Last day the course begins
</span>
<span
class=
"message-error"
>
The end date of the course cannot be before the start date of the course
</span>
</div>
</div>
</div>
...
...
@@ -205,6 +227,36 @@
<a
href=
"#"
class=
"remove-item remove-milestone-data"
><span
class=
"delete-icon"
></span>
Delete Milestone
</a>
</li>
<li
class=
"input input-existing multi multi-inline course-milestone-list-item"
>
<div
class=
"group"
>
<label
for=
"course-milestone-1-date-input"
>
Milestone Date
</label>
<input
type=
"text"
id=
"course-milestone-1-date-input"
class=
"error course-milestone-date-input date set-date"
placeholder=
"MM/DD/YYYY"
value=
"12/25/2014"
>
<span
class=
"message-error"
>
A milestone date cannot be after the end of a course
</span>
</div>
<div
class=
"group"
>
<label
for=
"course-milestone-1-name-input"
>
Milestone Name
</label>
<input
type=
"text"
class=
"course-milestone-name-input"
id=
"course-milestone-1-name-input"
>
</div>
<a
href=
"#"
class=
"remove-item remove-milestone-data"
><span
class=
"delete-icon"
></span>
Delete Milestone
</a>
</li>
<li
class=
"input input-existing multi multi-inline course-milestone-list-item"
>
<div
class=
"group"
>
<label
for=
"course-milestone-1-date-input"
>
Milestone Date
</label>
<input
type=
"text"
id=
"course-milestone-1-date-input"
class=
"error course-milestone-date-input date set-date"
placeholder=
"MM/DD/YYYY"
value=
"12/25/2011"
>
<span
class=
"message-error"
>
A milestone date cannot be before the start of a course
</span>
</div>
<div
class=
"group"
>
<label
for=
"course-milestone-1-name-input"
>
Milestone Name
</label>
<input
type=
"text"
class=
"course-milestone-name-input"
id=
"course-milestone-1-name-input"
>
</div>
<a
href=
"#"
class=
"remove-item remove-milestone-data"
><span
class=
"delete-icon"
></span>
Delete Milestone
</a>
</li>
<li
class=
"input multi multi-inline course-milestone-list-item"
>
<div
class=
"group"
>
<label
for=
"course-milestone-2-date-input"
>
Milestone Date
</label>
...
...
@@ -233,8 +285,6 @@
</div>
<a
href=
"#"
class=
"remove-item remove-course-syllabus remove-doc-data"
><span
class=
"delete-icon"
></span>
Delete Syllabus
</a>
<span
class=
"tip tip-inline"
>
PDF formatting preferred
</span>
</div>
<div
class=
"input"
>
...
...
@@ -259,7 +309,7 @@
<label
for=
"course-overview"
>
Course Overview:
</label>
<div
class=
"field"
>
<div
class=
"input"
>
<textarea
class=
"long
tall"
input
=
"course-overview"
></textarea>
<textarea
class=
"long
"
id
=
"course-overview"
></textarea>
<span
class=
"tip tip-stacked"
>
Detailed summary of concepts and lessons covered
</span>
</div>
</div>
...
...
@@ -280,7 +330,7 @@
<div
class=
"field"
>
<div
class=
"input input-existing"
>
<div
class=
" current current-course-introduction-video"
>
<iframe
width=
"
400"
height=
"225
"
src=
"http://www.youtube.com/embed/6F0pR-ANmXY"
frameborder=
"0"
allowfullscreen
></iframe>
<iframe
width=
"
370"
height=
"208
"
src=
"http://www.youtube.com/embed/6F0pR-ANmXY"
frameborder=
"0"
allowfullscreen
></iframe>
</div>
<a
href=
"#"
class=
"remove-item remove-course-introduction-video remove-video-data"
><span
class=
"delete-icon"
></span>
Delete Video
</a>
...
...
@@ -482,13 +532,6 @@
<div
class=
"row row-col2"
>
<label
for=
"course-faculty-photo-input"
>
Faculty Photo
</label>
<div
class=
"field"
>
<div
class=
"input"
>
<a
href=
"#"
class=
"new-item new-faculty-photo add-faculty-photo-data"
id=
"course-faculty-photo-input"
>
<span
class=
"upload-icon"
></span>
Upload Faculty Photo
</a>
<span
class=
"tip tip-inline"
>
Max size: 30KB
</span>
</div>
<div
class=
"input input-existing"
>
<div
class=
" current current-faculty-photo"
>
<img
src=
"http://dummyimage.com/800x600/4d494d/686a82.gif&text=faculty+photo"
alt=
"Faculty Photo"
/>
...
...
@@ -534,17 +577,6 @@
</a>
<span
class=
"tip tip-inline"
>
Max size: 30KB
</span>
</div>
<div
class=
"input input-existing"
>
<div
class=
" current current-course-faculty-photo"
>
</div>
<a
href=
"#"
class=
"replace-item replace-faculty-photo add-faculty-photo-data"
id=
"course-faculty-photo-input"
>
<span
class=
"upload-icon"
></span>
Upload Faculty Photo
</a>
<span
class=
"tip tip-inline"
>
Max size: 30KB
</span>
</div>
</div>
</div>
...
...
@@ -640,8 +672,8 @@
<div
class=
"field"
>
<div
class=
"input"
>
<input
type=
"text"
id=
"course-grading-duetime"
placeholder=
"HH:MM"
>
<span
class=
"tip tip-
stacked
"
>
Boston, MA Local Time (UTC/GMT -5 hours)
</span>
<input
type=
"text"
class=
"short"
id=
"course-grading-duetime"
placeholder=
"HH:MM"
>
<span
class=
"tip tip-
inline
"
>
Boston, MA Local Time (UTC/GMT -5 hours)
</span>
<span
class=
"tip tip-stacked"
><a
href=
"http://www.worldtimeserver.com/convert_time_in_UTC.aspx"
>
Convert to your time zone
</a></span>
</div>
</div>
...
...
@@ -1105,6 +1137,8 @@
<div
class=
"group"
>
<label
for=
"course-discussions-categories-4-name-input"
>
Category Name:
</label>
<input
type=
"text"
class=
"course-discussions-categories-name-input"
id=
"course-discussions-categories-4-name-input"
placeholder=
""
value=
"Study Groups"
>
<a
href=
"#"
class=
"remove-item remove-course-discussions-categories-data"
><span
class=
"delete-icon"
></span>
Delete Category
</a>
</div>
</li>
...
...
@@ -1114,7 +1148,7 @@
<input
type=
"text"
class=
"course-discussions-categories-name-input"
id=
"course-discussions-categories-5-name-input"
placeholder=
""
value=
"Lectures"
>
</div>
<a
href=
"#"
class=
"remove-item remove-course-discussions-categories-data"
><span
class=
"delete-icon"
></span>
Delete
Discussion
Category
</a>
<a
href=
"#"
class=
"remove-item remove-course-discussions-categories-data"
><span
class=
"delete-icon"
></span>
Delete Category
</a>
</li>
<li
class=
"input course-discussions-categories-list-item"
>
...
...
@@ -1123,7 +1157,7 @@
<input
type=
"text"
class=
"course-discussions-categories-name-input"
id=
"course-discussions-categories-6-name-input"
placeholder=
""
>
</div>
<a
href=
"#"
class=
"remove-item remove-course-discussions-categories-data"
><span
class=
"delete-icon"
></span>
Delete
Discussion
Category
</a>
<a
href=
"#"
class=
"remove-item remove-course-discussions-categories-data"
><span
class=
"delete-icon"
></span>
Delete Category
</a>
</li>
</ul>
...
...
@@ -1134,11 +1168,11 @@
</div>
<div
class=
"row row-col2"
>
<h4
class=
"label"
>
Create Discussion
Categories per
Unit
</h4>
<h4
class=
"label"
>
Create Discussion
<br
/>
Categories for Each
<br
/>
Course
Unit
</h4>
<div
class=
"field ui-status"
>
<div
class=
"input"
>
<input
type=
"radio"
class=
"ui-status-input ui-status-input-radio"
name=
"discussions-categories-perunit"
id=
"discussions-categories-perunit-allow"
value=
"
Allow"
disabled=
"disabl
ed"
>
<input
type=
"radio"
class=
"ui-status-input ui-status-input-radio"
name=
"discussions-categories-perunit"
id=
"discussions-categories-perunit-allow"
value=
"
Create"
disabled=
"disabled"
checked=
"check
ed"
>
<div
class=
"ui-status-indic ui-status-indic-discussions-categories-perunit-allow"
></div>
<label
for=
"discussions-categories-perunit-allow"
>
Allow
</label>
<span
class=
"tip tip-stacked"
>
This option is automatically set currently
</span>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment