Commit ad6c69d2 by Simon Chen

Update the add instructor UI on publisher

parent 67e3b525
......@@ -206,23 +206,26 @@
<div class="field-title">{% trans "COURSE STAFF" %} <span class="required float-right">* Required for review</span></div>
<div class="row">
<div class="col col-6 help-text">
{% trans "The primary instructor or instructors for the course." %}
<div>{% trans "The primary instructor or instructors for the course." %}</div>
<strong>
{% trans "Make sure that you search for an instructor before you create a new instructor." %}
</strong>
</div>
<div id="user_organizations_ids" class="hidden">{{ organizations_ids|safe }}</div>
<div id="course_user_role" class="hidden">{{ course_user_role }}</div>
<div class="col col-6 instructor-select">
<label class="field-label ">{{ run_form.staff.label_tag }} <span class="required">*</span></label>
<label class="field-label ">
{% trans "Search for Instructor:" %}
</label>
<select name="staff" data-autocomplete-light-function="select2"
multiple="multiple" data-minimum-input-length="2"
data-autocomplete-light-url="/admin/course_metadata/person-autocomplete/"
id="id_staff" data-html="true" class="field-input">
</select>
<div class="selected-instructor">
{% if publisher_add_instructor_feature %}
<button type="button"
id="add-new-instructor">{% trans "Add New" %}<br>{% trans "Instructor" %}
id="add-new-instructor">{% trans "Create new" %}<br>{% trans "instructor" %}
</button>
{% endif %}
{% for staff in run_form.instance.staff.all %}
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-01 07:46+0000\n"
"POT-Creation-Date: 2017-11-02 12:00+0000\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"
......@@ -708,7 +708,6 @@ msgid "Course End Date"
msgstr ""
#: apps/publisher/forms.py
#: apps/publisher/templates/publisher/course_run/edit_run_form.html
msgid "Instructor"
msgstr ""
......@@ -2078,7 +2077,21 @@ msgid "The primary instructor or instructors for the course."
msgstr ""
#: apps/publisher/templates/publisher/course_run/edit_run_form.html
msgid "Add New"
msgid ""
"Make sure that you search for an instructor before you create a new "
"instructor."
msgstr ""
#: apps/publisher/templates/publisher/course_run/edit_run_form.html
msgid "Search for Instructor:"
msgstr ""
#: apps/publisher/templates/publisher/course_run/edit_run_form.html
msgid "Create new"
msgstr ""
#: apps/publisher/templates/publisher/course_run/edit_run_form.html
msgid "instructor"
msgstr ""
#: apps/publisher/templates/publisher/course_run/edit_run_form.html
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-01 07:46+0000\n"
"POT-Creation-Date: 2017-11-02 12:00+0000\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-11-01 07:46+0000\n"
"POT-Creation-Date: 2017-11-02 12:00+0000\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"
......@@ -843,7 +843,6 @@ msgid "Course End Date"
msgstr "Çöürsé Énd Däté Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт α#"
#: apps/publisher/forms.py
#: apps/publisher/templates/publisher/course_run/edit_run_form.html
msgid "Instructor"
msgstr "Ìnstrüçtör Ⱡ'σяєм ιρѕυм ∂σłσ#"
......@@ -2487,8 +2486,24 @@ msgstr ""
" αмєт, ¢σηѕє¢тєтυя α#"
#: apps/publisher/templates/publisher/course_run/edit_run_form.html
msgid "Add New"
msgstr "Àdd Néw Ⱡ'σяєм ιρѕυм #"
msgid ""
"Make sure that you search for an instructor before you create a new "
"instructor."
msgstr ""
"Mäké süré thät ýöü séärçh för än ïnstrüçtör ßéföré ýöü çréäté ä néw "
"ïnstrüçtör. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєт#"
#: apps/publisher/templates/publisher/course_run/edit_run_form.html
msgid "Search for Instructor:"
msgstr "Séärçh för Ìnstrüçtör: Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢#"
#: apps/publisher/templates/publisher/course_run/edit_run_form.html
msgid "Create new"
msgstr "Çréäté néw Ⱡ'σяєм ιρѕυм ∂σłσ#"
#: apps/publisher/templates/publisher/course_run/edit_run_form.html
msgid "instructor"
msgstr "ïnstrüçtör Ⱡ'σяєм ιρѕυм ∂σłσ#"
#: apps/publisher/templates/publisher/course_run/edit_run_form.html
msgid "ESTIMATED EFFORT"
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-01 07:46+0000\n"
"POT-Creation-Date: 2017-11-02 12:00+0000\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"
......
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