Commit b75291c0 by tasawernawaz Committed by Tasawer Nawaz

save & cancel button added on edit page

ECOM-6054
parent 3359f3f6
......@@ -178,7 +178,7 @@ class CreateUpdateCourseViewTests(TestCase):
self.assertRedirects(
response,
expected_url=reverse('publisher:publisher_courses_edit', kwargs={'pk': self.course.id}),
expected_url=reverse('publisher:publisher_course_detail', kwargs={'pk': self.course.id}),
status_code=302,
target_status_code=200
)
......@@ -223,7 +223,7 @@ class CreateUpdateCourseViewTests(TestCase):
)
self.assertRedirects(
response,
expected_url=reverse('publisher:publisher_courses_edit', kwargs={'pk': self.course.id}),
expected_url=reverse('publisher:publisher_course_detail', kwargs={'pk': self.course.id}),
status_code=302,
target_status_code=200
)
......
......@@ -245,7 +245,7 @@ class UpdateCourseView(mixins.PublisherPermissionMixin, mixins.FormValidMixin, U
form_class = CourseForm
permission = OrganizationExtension.VIEW_COURSE
template_name = 'publisher/course_form.html'
success_url = 'publisher:publisher_courses_edit'
success_url = 'publisher:publisher_course_detail'
def get_success_url(self):
return reverse(self.success_url, kwargs={'pk': self.object.id})
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-06 09:45-0500\n"
"POT-Creation-Date: 2017-01-09 18:20+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -725,12 +725,13 @@ msgstr ""
msgid "Edit Comment"
msgstr ""
#: templates/comments/edit_comment.html templates/publisher/course_form.html
#: templates/comments/edit_comment.html
#: templates/publisher/course_run_form.html templates/publisher/seat_form.html
msgid "Save"
msgstr ""
#: templates/metadata/admin/course_run.html
#: templates/publisher/course_form.html
msgid "Cancel"
msgstr ""
......@@ -1258,6 +1259,10 @@ msgid "Courses"
msgstr ""
#: templates/publisher/course_form.html
msgid "UPDATE COURSE"
msgstr ""
#: templates/publisher/course_form.html
msgid "Add Course Run"
msgstr ""
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-06 09:45-0500\n"
"POT-Creation-Date: 2017-01-09 18:20+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-06 09:45-0500\n"
"POT-Creation-Date: 2017-01-09 18:20+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -860,12 +860,13 @@ msgstr "Çöürsé Rün Förm Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт α#"
msgid "Edit Comment"
msgstr "Édït Çömmént Ⱡ'σяєм ιρѕυм ∂σłσя ѕ#"
#: templates/comments/edit_comment.html templates/publisher/course_form.html
#: templates/comments/edit_comment.html
#: templates/publisher/course_run_form.html templates/publisher/seat_form.html
msgid "Save"
msgstr "Sävé Ⱡ'σяєм ι#"
#: templates/metadata/admin/course_run.html
#: templates/publisher/course_form.html
msgid "Cancel"
msgstr "Çänçél Ⱡ'σяєм ιρѕυ#"
......@@ -1529,6 +1530,10 @@ msgid "Courses"
msgstr "Çöürsés Ⱡ'σяєм ιρѕυм #"
#: templates/publisher/course_form.html
msgid "UPDATE COURSE"
msgstr "ÛPDÀTÉ ÇÖÛRSÉ Ⱡ'σяєм ιρѕυм ∂σłσя ѕι#"
#: templates/publisher/course_form.html
msgid "Add Course Run"
msgstr "Àdd Çöürsé Rün Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт#"
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-06 09:45-0500\n"
"POT-Creation-Date: 2017-01-09 18:20+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......
......@@ -737,3 +737,15 @@ select {
text-decoration: underline;
}
}
.btn-cancel {
padding-right: 10px;
padding-left: 10px;
color: #25A1D8;
}
.btn-save {
background-color: #169BD5;
border-radius: 5px;
padding: 10px;
}
......@@ -16,7 +16,8 @@
{% include "publisher/form_field.html" %}
{% endfor %}
</fieldset>
<button class="btn-brand btn-base" type="submit">{% trans "Save" %}</button>
<a class="btn-cancel" href="{% url 'publisher:publisher_course_detail' course.id %}">{% trans "Cancel" %}</a>
<button class="btn-brand btn-base btn-save" type="submit">{% trans "UPDATE COURSE" %}</button>
</form>
</div>
<div class="comment-container">
......
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