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
b1451127
Commit
b1451127
authored
Nov 09, 2012
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
multi-input field markup and styling
parent
f1e1f9e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
8 deletions
+29
-8
cms/static/sass/_settings.scss
+23
-4
cms/templates/settings.html
+6
-4
No files found.
cms/static/sass/_settings.scss
View file @
b1451127
...
...
@@ -90,10 +90,24 @@
}
.delete-icon
{
position
:
absolute
;
right
:
10px
;
top
:
10px
;
.remove-item
{
display
:
block
;
border-top
:
1px
solid
$lightGrey
;
margin-top
:
5px
;
padding-top
:
10px
;
font-size
:
13px
;
}
}
.element-group
{
width
:
400px
;
padding
:
15px
20px
;
background
:
tint
(
$lightGrey
,
50%
);
@include
border-radius
(
3px
);
@include
box-sizing
(
border-box
);
input
.long
,
textarea
{
width
:
100%
;
}
}
...
...
@@ -118,6 +132,11 @@
margin-right
:
0
;
}
}
.remove-item
{
float
:
left
;
width
:
100%
;
}
}
}
...
...
cms/templates/settings.html
View file @
b1451127
...
...
@@ -150,7 +150,7 @@
<div
class=
"field"
>
<ol
class=
"input-list course-milestone-list"
>
<li
class=
"element element-multi course-milestone-list-element"
>
<li
class=
"element element-multi
element-group
course-milestone-list-element"
>
<div
class=
"course-milestone-date"
>
<input
type=
"text"
class=
"course-milestone-date-input date"
>
<span
class=
"label-micro"
>
Milestone Date
</span>
...
...
@@ -161,6 +161,7 @@
<span
class=
"label-micro"
>
Milestone Name
</span>
</div>
<a
href=
"#"
class=
"remove-item remove-milestone-data"
><span
class=
"delete-icon"
></span>
Delete Milestone
</a>
</li>
</ol>
...
...
@@ -232,7 +233,7 @@
<div
class=
"field"
>
<ol
class=
"input-list course-textbook-list"
>
<li
class=
"element element-stacked course-textbook-list-element"
>
<li
class=
"element element-stacked
element-group
course-textbook-list-element"
>
<div
class=
"course-textbook-name"
>
<input
type=
"text"
class=
"long course-textbook-name-input"
>
<span
class=
"label-micro"
>
Textbook Name
</span>
...
...
@@ -243,7 +244,7 @@
<span
class=
"label-micro"
>
Textbook URL
</span>
</div>
<a
href=
"#"
class=
"
delete-icon remove-textbook-data"
>
</a>
<a
href=
"#"
class=
"
remove-item remove-textbook-data"
><span
class=
"delete-icon"
></span>
Delete Textbook
</a>
</li>
</ol>
...
...
@@ -265,7 +266,7 @@
<div
class=
"field"
>
<ol
class=
"input-list course-faq-list"
>
<li
class=
"element element-stacked course-faq-list-element"
>
<li
class=
"element element-stacked
element-group
course-faq-list-element"
>
<div
class=
"course-faq-question"
>
<input
type=
"text"
class=
"long course-faq-question-input"
>
<span
class=
"label-micro"
>
Question
</span>
...
...
@@ -276,6 +277,7 @@
<span
class=
"label-micro"
>
Answer
</span>
</div>
<a
href=
"#"
class=
"remove-item remove-faq-data"
><span
class=
"delete-icon"
></span>
Delete Question
&
Answer
</a>
</li>
</ol>
...
...
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