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
74643321
Commit
74643321
authored
Aug 22, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added fix for error styles and swapped some the button order
parent
1277c5f8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
13 deletions
+36
-13
lms/static/sass/course/wiki/_wiki.scss
+22
-1
lms/templates/wiki/create.html
+5
-4
lms/templates/wiki/edit.html
+9
-8
No files found.
lms/static/sass/course/wiki/_wiki.scss
View file @
74643321
...
...
@@ -390,7 +390,6 @@ section.wiki {
.CodeMirror
{
background
:
#fafafa
;
border
:
1px
solid
#c8c8c8
;
@include
border-radius
(
3px
);
@include
box-shadow
(
0
1px
0
0
rgba
(
255
,
255
,
255
,
0
.6
)
,
inset
0
0
3px
0
rgba
(
0
,
0
,
0
,
0
.1
));
}
...
...
@@ -690,6 +689,28 @@ section.wiki {
margin-top
:
9px
;
}
.error
{
font-size
:
1em
;
color
:
$pink
;
.help-block
{
margin-top
:
10px
;
}
input
{
border-color
:
$pink
;
}
}
.back
{
float
:
right
;
}
/*-----------------
Directory
...
...
lms/templates/wiki/create.html
View file @
74643321
...
...
@@ -32,14 +32,15 @@
<form
method=
"POST"
class=
"form-horizontal"
>
{% wiki_form create_form %}
<div
class=
"form-actions"
>
<a
href=
"{% url 'wiki:get' path=parent_urlpath.path %}"
class=
"btn btn-large"
>
<span
class=
"icon-circle-arrow-left"
></span>
{% trans "Go back" %}
</a>
<button
type=
"submit"
name=
"save_changes"
class=
"btn btn-primary btn-large"
>
<span
class=
"icon-plus"
></span>
{% trans "Create article" %}
</button>
<a
href=
"{% url 'wiki:get' path=parent_urlpath.path %}"
class=
"btn btn-large back"
>
<span
class=
"icon-circle-arrow-left"
></span>
{% trans "Go back" %}
</a>
</div>
</form>
...
...
lms/templates/wiki/edit.html
View file @
74643321
...
...
@@ -9,14 +9,14 @@
<form
method=
"POST"
class=
"form-horizontal"
id=
"article_edit_form"
enctype=
"multipart/form-data"
>
{% include "wiki/includes/editor.html" %}
<div
class=
"form-actions"
>
<button
type=
"submit"
name=
"preview"
value=
"1"
class=
"btn btn-large"
onclick=
"$('#previewModal').modal('show'); this.form.target = 'previewWindow'; this.form.action = '{% url 'wiki:preview' path=urlpath.path article_id=article.id %}';"
>
<span
class=
"icon-eye-open"
></span>
{% trans "Preview" %}
</button>
<button
type=
"submit"
name=
"save"
value=
"1"
class=
"btn btn-large btn-primary"
onclick=
"this.form.target=''; this.form.action='{% url 'wiki:edit' path=urlpath.path article_id=article.id %}'"
>
<span
class=
"icon-ok"
></span>
{% trans "Save changes" %}
</button>
<button
type=
"submit"
name=
"preview"
value=
"1"
class=
"btn btn-large"
onclick=
"$('#previewModal').modal('show'); this.form.target = 'previewWindow'; this.form.action = '{% url 'wiki:preview' path=urlpath.path article_id=article.id %}';"
>
<span
class=
"icon-eye-open"
></span>
{% trans "Preview" %}
</button>
<a
href=
"{% url 'wiki:delete' path=urlpath.path article_id=article.id %}"
class=
"pull-right btn btn-danger"
>
<span
class=
"icon-trash"
></span>
...
...
@@ -29,14 +29,15 @@
<iframe
name=
"previewWindow"
frameborder=
"0"
></iframe>
</div>
<div
class=
"modal-footer"
>
<a
href=
"#"
class=
"btn btn-large"
data-dismiss=
"modal"
>
<span
class=
"icon-circle-arrow-left"
></span>
{% trans "Back to editor" %}
</a>
<button
type=
"submit"
name=
"save"
value=
"1"
class=
"btn btn-large btn-primary"
onclick=
"this.form.target=''; this.form.action='{% url 'wiki:edit' path=urlpath.path article_id=article.id %}'"
>
<span
class=
"icon-ok"
></span>
{% trans "Save changes" %}
</button>
<a
href=
"#"
class=
"btn btn-large"
data-dismiss=
"modal"
>
<span
class=
"icon-circle-arrow-left"
></span>
{% trans "Back to editor" %}
</a>
</div>
</div>
</form>
...
...
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