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
ed06700a
Commit
ed06700a
authored
10 years ago
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add space to table header
parent
b7e585c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
lms/templates/instructor/instructor_dashboard_2/e-commerce.html
+16
-17
No files found.
lms/templates/instructor/instructor_dashboard_2/e-commerce.html
View file @
ed06700a
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
<th
class=
"c_code"
>
${_("Code")}
</th>
<th
class=
"c_code"
>
${_("Code")}
</th>
<th
class=
"c_dsc"
>
${_("Description")}
</th>
<th
class=
"c_dsc"
>
${_("Description")}
</th>
<th
class=
"c_course_id"
>
${_("Course_id")}
</th>
<th
class=
"c_course_id"
>
${_("Course_id")}
</th>
<th
class=
"c_discount"
>
${_("Discount(%)")}
</th>
<th
class=
"c_discount"
>
${_("Discount
(%)")}
</th>
<th
class=
"c_count"
>
${_("Count")}
</th>
<th
class=
"c_count"
>
${_("Count")}
</th>
<th
class=
"c_action"
>
${_("Actions")}
</th>
<th
class=
"c_action"
>
${_("Actions")}
</th>
</tr>
</tr>
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
</div>
</div>
<script>
<script>
$
(
function
()
{
$
(
function
()
{
var
icons
=
{
var
icons
=
{
header
:
"ui-icon-circle-arrow-e"
,
header
:
"ui-icon-circle-arrow-e"
,
activeHeader
:
"ui-icon-circle-arrow-s"
activeHeader
:
"ui-icon-circle-arrow-s"
...
@@ -140,7 +140,7 @@
...
@@ -140,7 +140,7 @@
active
:
isNaN
(
parseInt
(
$
.
cookie
(
'saved_index'
)))
?
0
:
parseInt
(
$
.
cookie
(
'saved_index'
)),
active
:
isNaN
(
parseInt
(
$
.
cookie
(
'saved_index'
)))
?
0
:
parseInt
(
$
.
cookie
(
'saved_index'
)),
collapsible
:
true
collapsible
:
true
});
});
$
(
'a[rel*=leanModal]'
).
leanModal
();
$
(
'a[rel*=leanModal]'
).
leanModal
();
$
.
each
(
$
(
"a.edit-right"
),
function
()
{
$
.
each
(
$
(
"a.edit-right"
),
function
()
{
if
(
$
(
this
).
parent
().
parent
(
'tr'
).
hasClass
(
'inactive_coupon'
))
{
if
(
$
(
this
).
parent
().
parent
(
'tr'
).
hasClass
(
'inactive_coupon'
))
{
...
@@ -211,7 +211,7 @@
...
@@ -211,7 +211,7 @@
// Get the Code and Discount value and trim it
// Get the Code and Discount value and trim it
var
code
=
$
.
trim
(
$
(
'#edit_coupon_code'
).
val
());
var
code
=
$
.
trim
(
$
(
'#edit_coupon_code'
).
val
());
var
coupon_discount
=
$
.
trim
(
$
(
'#edit_coupon_discount'
).
val
());
var
coupon_discount
=
$
.
trim
(
$
(
'#edit_coupon_discount'
).
val
());
// Check if empty of not
// Check if empty of not
if
(
code
===
''
)
{
if
(
code
===
''
)
{
$
(
'#edit_coupon_form #coupon_form_error'
).
attr
(
'style'
,
'display: block !important'
);
$
(
'#edit_coupon_form #coupon_form_error'
).
attr
(
'style'
,
'display: block !important'
);
...
@@ -249,7 +249,7 @@
...
@@ -249,7 +249,7 @@
// Get the Code and Discount value and trim it
// Get the Code and Discount value and trim it
var
course_price
=
$
.
trim
(
$
(
'#mode_price'
).
val
());
var
course_price
=
$
.
trim
(
$
(
'#mode_price'
).
val
());
var
currency
=
$
.
trim
(
$
(
'#course_mode_currency'
).
val
());
var
currency
=
$
.
trim
(
$
(
'#course_mode_currency'
).
val
());
// Check if empty of not
// Check if empty of not
if
(
course_price
===
''
)
{
if
(
course_price
===
''
)
{
$
(
'#set_price_form #course_form_error'
).
attr
(
'style'
,
'display: block !important'
);
$
(
'#set_price_form #course_form_error'
).
attr
(
'style'
,
'display: block !important'
);
...
@@ -275,7 +275,7 @@
...
@@ -275,7 +275,7 @@
// Get the Code and Discount value and trim it
// Get the Code and Discount value and trim it
var
code
=
$
.
trim
(
$
(
'#coupon_code'
).
val
());
var
code
=
$
.
trim
(
$
(
'#coupon_code'
).
val
());
var
coupon_discount
=
$
.
trim
(
$
(
'#coupon_discount'
).
val
());
var
coupon_discount
=
$
.
trim
(
$
(
'#coupon_discount'
).
val
());
// Check if empty of not
// Check if empty of not
if
(
code
===
''
)
{
if
(
code
===
''
)
{
$
(
"#add_coupon_button"
).
removeAttr
(
'disabled'
);
$
(
"#add_coupon_button"
).
removeAttr
(
'disabled'
);
...
@@ -302,7 +302,7 @@
...
@@ -302,7 +302,7 @@
return
false
;
return
false
;
}
}
});
});
$
(
'#set_price_form'
).
on
(
'ajax:complete'
,
function
(
event
,
xhr
)
{
$
(
'#set_price_form'
).
on
(
'ajax:complete'
,
function
(
event
,
xhr
)
{
if
(
xhr
.
status
==
200
)
{
if
(
xhr
.
status
==
200
)
{
location
.
reload
(
true
);
location
.
reload
(
true
);
...
@@ -312,7 +312,7 @@
...
@@ -312,7 +312,7 @@
$
(
'#set_price_form #course_form_error'
).
text
(
xhr
.
responseText
);
$
(
'#set_price_form #course_form_error'
).
text
(
xhr
.
responseText
);
}
}
});
});
$
(
'#add_coupon_form'
).
on
(
'ajax:complete'
,
function
(
event
,
xhr
)
{
$
(
'#add_coupon_form'
).
on
(
'ajax:complete'
,
function
(
event
,
xhr
)
{
if
(
xhr
.
status
==
200
)
{
if
(
xhr
.
status
==
200
)
{
location
.
reload
(
true
);
location
.
reload
(
true
);
...
@@ -322,7 +322,7 @@
...
@@ -322,7 +322,7 @@
$
(
'#add_coupon_form #coupon_form_error'
).
text
(
xhr
.
responseText
);
$
(
'#add_coupon_form #coupon_form_error'
).
text
(
xhr
.
responseText
);
}
}
});
});
$
(
'#edit_coupon_form'
).
on
(
'ajax:complete'
,
function
(
event
,
xhr
)
{
$
(
'#edit_coupon_form'
).
on
(
'ajax:complete'
,
function
(
event
,
xhr
)
{
if
(
xhr
.
status
==
200
)
{
if
(
xhr
.
status
==
200
)
{
location
.
reload
(
true
);
location
.
reload
(
true
);
...
@@ -340,7 +340,7 @@
...
@@ -340,7 +340,7 @@
reset_input_fields
();
reset_input_fields
();
e
.
preventDefault
();
e
.
preventDefault
();
});
});
var
onModalClose
=
function
()
{
var
onModalClose
=
function
()
{
$
(
"#add-coupon-modal"
).
attr
(
"aria-hidden"
,
"true"
);
$
(
"#add-coupon-modal"
).
attr
(
"aria-hidden"
,
"true"
);
$
(
".remove_coupon"
).
focus
();
$
(
".remove_coupon"
).
focus
();
...
@@ -352,7 +352,7 @@
...
@@ -352,7 +352,7 @@
$
(
"#update_coupon_button"
).
removeAttr
(
'disabled'
);
$
(
"#update_coupon_button"
).
removeAttr
(
'disabled'
);
reset_input_fields
();
reset_input_fields
();
};
};
var
cycle_modal_tab
=
function
(
from_element_name
,
to_element_name
)
{
var
cycle_modal_tab
=
function
(
from_element_name
,
to_element_name
)
{
$
(
from_element_name
).
on
(
'keydown'
,
function
(
e
)
{
$
(
from_element_name
).
on
(
'keydown'
,
function
(
e
)
{
var
keyCode
=
e
.
keyCode
||
e
.
which
;
var
keyCode
=
e
.
keyCode
||
e
.
which
;
...
@@ -363,12 +363,12 @@
...
@@ -363,12 +363,12 @@
}
}
});
});
};
};
$
(
"#add-coupon-modal .close-modal"
).
click
(
onModalClose
);
$
(
"#add-coupon-modal .close-modal"
).
click
(
onModalClose
);
$
(
"#edit-coupon-modal .close-modal"
).
click
(
onModalClose
);
$
(
"#edit-coupon-modal .close-modal"
).
click
(
onModalClose
);
$
(
"#set-course-mode-price-modal .close-modal"
).
click
(
reset_input_fields
);
$
(
"#set-course-mode-price-modal .close-modal"
).
click
(
reset_input_fields
);
// Hitting the ESC key will exit the modal
// Hitting the ESC key will exit the modal
$
(
"#add-coupon-modal, #edit-coupon-modal, #set-course-mode-price-modal"
).
on
(
"keydown"
,
function
(
e
)
{
$
(
"#add-coupon-modal, #edit-coupon-modal, #set-course-mode-price-modal"
).
on
(
"keydown"
,
function
(
e
)
{
var
keyCode
=
e
.
keyCode
||
e
.
which
;
var
keyCode
=
e
.
keyCode
||
e
.
which
;
...
@@ -391,6 +391,6 @@
...
@@ -391,6 +391,6 @@
$
(
'input#coupon_code'
).
val
(
''
);
$
(
'input#coupon_code'
).
val
(
''
);
$
(
'input#coupon_discount'
).
val
(
''
);
$
(
'input#coupon_discount'
).
val
(
''
);
$
(
'textarea#coupon_description'
).
val
(
''
);
$
(
'textarea#coupon_description'
).
val
(
''
);
}
}
</script>
</script>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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