Commit 9ac85ead by Clinton Blackburn

Created publisher base template

This template, not the base template for the entire project, should be used for publisher-related templates.

ECOM-6466
parent 8bf26d85
{# Base template for edX-specific pages. #} {# Base template for edX-specific pages. #}
{% load compress %} {% load compress %}
{% load i18n %}
{% load staticfiles %} {% load staticfiles %}
<!DOCTYPE html> <!DOCTYPE html>
...@@ -18,69 +17,15 @@ ...@@ -18,69 +17,15 @@
{% else %} {% else %}
<link rel="stylesheet" href="{% static 'sass/main-ltr.scss' %}" type="text/x-scss"> <link rel="stylesheet" href="{% static 'sass/main-ltr.scss' %}" type="text/x-scss">
{% endif %} {% endif %}
<link rel="stylesheet" href="{% static 'bower_components/font-awesome/css/font-awesome.css' %}"
type="text/x-scss">
<link rel="stylesheet" href="{% static 'bower_components/pikaday/css/pikaday.css' %}" type="text/x-scss">
<link rel="stylesheet" href="{% static 'bower_components/datatables/media/css/jquery.dataTables.css' %}"
type="text/x-scss">
{% endblock %} {% endblock %}
{% endcompress %} {% endcompress %}
</head> </head>
<body> <body>
<div class="container"> {% block content %}{% endblock content %}
{% include 'header.html' %}
<div class="layout-1q3q layout-flush border-top">
<main class="layout-col layout-col-a layout-col-menu">
<div class="institute-logo">
<img width="250" height="200" src="{% static 'images/institute-logo.png' %}">
</div>
<ul class="list-divided menu-list">
<li class="item">
{% url 'publisher:publisher_dashboard' as dashboard_url %}
<a class="btn {% if request.path == dashboard_url %}active{% endif %}" href="{{ dashboard_url }}">
{% trans "Dashboard" %}
</a>
</li>
<li class="item">
<a class="btn {% if request.path == new_course_url %}active{% endif %}" href="/publisher/course/">
{% trans "Courses" %}
</a>
</li>
</ul>
</main>
<aside class="layout-col layout-col-b border-left layout-col-container"> {% block js %}
{% block content %} <script src="{% url 'javascript-catalog' %}"></script>
{% endblock content %}
</aside>
</div>
{% include 'footer.html' %}
</div>
{% compress js %}
<script src="{% static 'bower_components/jquery/dist/jquery.js' %}"></script>
<script src="{% static 'bower_components/js-cookie/src/js.cookie.js' %}"></script>
<script src="{% static 'bower_components/underscore/underscore.js' %}"></script>
<script src="{% static 'bower_components/moment/moment.js' %}"></script>
<script src="{% static 'bower_components/pikaday/pikaday.js' %}"></script>
<script src="{% static 'bower_components/datatables/media/js/jquery.dataTables.js' %}"></script>
<script src="{% static 'js/publisher/views/navbar.js' %}"></script>
<script src="{% static 'js/utils.js' %}"></script>
{% endcompress %}
<script src="{% url 'javascript-catalog' %}"></script>
<script type="text/javascript">
$(document).ready(function () {
addDatePicker();
});
</script>
{% block extra_js %}
{% endblock %} {% endblock %}
</body> </body>
</html> </html>
{% extends 'base.html' %} {% extends 'publisher/base.html' %}
{% load i18n %} {% load i18n %}
{% load staticfiles %} {% load staticfiles %}
{% block title %} {% block title %}
{% trans "Course Form" %} {% trans "Course Form" %}
{% endblock title %} {% endblock title %}
{% block content %}
{% block page_content %}
<div> <div>
<h1 class="hd-1 emphasized">New Course</h1> <h1 class="hd-1 emphasized">New Course</h1>
...@@ -445,8 +447,7 @@ ...@@ -445,8 +447,7 @@
</form> </form>
</div> </div>
</div> </div>
{% endblock %}
{% endblock content %}
{% block extra_js %} {% block extra_js %}
<script src="{% static 'js/publisher/publisher.js' %}"></script> <script src="{% static 'js/publisher/publisher.js' %}"></script>
......
{% extends 'base.html' %} {% extends 'publisher/base.html' %}
{% load i18n %} {% load i18n %}
{% load staticfiles %} {% load staticfiles %}
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
{% trans "New Course Run" %} {% trans "New Course Run" %}
{% endblock title %} {% endblock title %}
{% block content %} {% block page_content %}
<div> <div>
<h1 class="hd-1 emphasized">{% trans "New Course Run" %}</h1> <h1 class="hd-1 emphasized">{% trans "New Course Run" %}</h1>
<div class="copy-base"> <div class="copy-base">
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</div> </div>
</form> </form>
</div> </div>
{% endblock content %} {% endblock %}
{% block extra_js %} {% block extra_js %}
<script src="{% static 'js/publisher/publisher.js' %}"></script> <script src="{% static 'js/publisher/publisher.js' %}"></script>
......
{% extends 'base.html' %}
{% load compress %}
{% load i18n %}
{% load staticfiles %}
{% block stylesheets %}
{{ block.super }}
<link rel="stylesheet" href="{% static 'bower_components/font-awesome/css/font-awesome.css' %}" type="text/x-scss">
<link rel="stylesheet" href="{% static 'bower_components/pikaday/css/pikaday.css' %}" type="text/x-scss">
<link rel="stylesheet" href="{% static 'bower_components/datatables/media/css/jquery.dataTables.css' %}"
type="text/x-scss">
{% endblock %}
{% block content %}
<div class="container">
{% include 'publisher/_header.html' %}
<div class="layout-1q3q layout-flush border-top">
<main class="layout-col layout-col-a layout-col-menu">
<div class="institute-logo">
<img width="250" height="200" src="{% static 'images/institute-logo.png' %}">
</div>
<ul class="list-divided menu-list">
<li class="item">
{% url 'publisher:publisher_dashboard' as dashboard_url %}
<a class="btn {% if request.path == dashboard_url %}active{% endif %}"
href="{{ dashboard_url }}">
{% trans "Dashboard" %}
</a>
</li>
<li class="item">
<a class="btn {% if request.path == new_course_url %}active{% endif %}"
href="/publisher/course/">
{% trans "Courses" %}
</a>
</li>
</ul>
</main>
<aside class="layout-col layout-col-b border-left layout-col-container">
{% block page_content %}{% endblock %}
</aside>
</div>
{% include 'publisher/_footer.html' %}
</div>
{% endblock %}
{% block js %}
{{ block.super }}
{% compress js %}
<script src="{% static 'bower_components/jquery/dist/jquery.js' %}"></script>
<script src="{% static 'bower_components/js-cookie/src/js.cookie.js' %}"></script>
<script src="{% static 'bower_components/underscore/underscore.js' %}"></script>
<script src="{% static 'bower_components/moment/moment.js' %}"></script>
<script src="{% static 'bower_components/pikaday/pikaday.js' %}"></script>
<script src="{% static 'bower_components/datatables/media/js/jquery.dataTables.js' %}"></script>
<script src="{% static 'js/publisher/views/navbar.js' %}"></script>
<script src="{% static 'js/utils.js' %}"></script>
{% endcompress %}
<script type="text/javascript">
$(document).ready(function () {
addDatePicker();
});
</script>
{% block extra_js %}{% endblock %}
{% endblock %}
{% extends 'base.html' %} {% extends 'publisher/base.html' %}
{% load i18n %} {% load i18n %}
{% block title %} {% block title %}
{% trans "Course Form" %} {% trans "Course Form" %}
{% endblock title %} {% endblock title %}
{% block content %} {% block page_content %}
<div class="layout-full layout publisher-layout"> <div class="layout-full layout publisher-layout">
<div class="publisher-container"> <div class="publisher-container">
<div class="course-information"> <div class="course-information">
...@@ -31,4 +31,4 @@ ...@@ -31,4 +31,4 @@
</div> </div>
</div> </div>
{% endblock content %} {% endblock %}
{% extends 'base.html' %} {% extends 'publisher/base.html' %}
{% load compress %} {% load compress %}
{% load i18n %} {% load i18n %}
{% load staticfiles %} {% load staticfiles %}
{% block title %} {% block title %}
{% trans "Course Run Detail" %} {% trans "Course Run Detail" %}
{% endblock title %} {% endblock title %}
{% block content %}
{% block page_content %}
<div class="publisher-container course-detail"> <div class="publisher-container course-detail">
<nav class="administration-nav"> <nav class="administration-nav">
<div class="tab-container"> <div class="tab-container">
......
{% extends 'base.html' %} {% extends 'publisher/base.html' %}
{% load i18n %} {% load i18n %}
{% block title %} {% block title %}
{% trans "Course Run Form" %} {% trans "Course Run Form" %}
{% endblock title %} {% endblock title %}
{% block content %} {% block page_content %}
<div class="layout-full layout publisher-layout"> <div class="layout-full layout publisher-layout">
<div class="publisher-container"> <div class="publisher-container">
<div class="course-information"> <div class="course-information">
...@@ -42,5 +42,4 @@ ...@@ -42,5 +42,4 @@
</div> </div>
</div> </div>
</div> </div>
{% endblock %}
{% endblock content %}
{% extends 'base.html' %} {% extends 'publisher/base.html' %}
{% load i18n %} {% load i18n %}
{% block title %} {% block title %}
{% trans "Course Run List" %} {% trans "Course Run List" %}
{% endblock title %} {% endblock title %}
{% block content %} {% block page_content %}
<div class="layout-full layout"> <div class="layout-full layout">
<div class="publisher-container"> <div class="publisher-container">
<h2 class="hd-2 emphasized">{{ object_list|length }} {% trans "Course runs in progress" %}</h2> <h2 class="hd-2 emphasized">{{ object_list|length }} {% trans "Course runs in progress" %}</h2>
...@@ -84,5 +84,4 @@ ...@@ -84,5 +84,4 @@
</div> </div>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}
{% extends 'base.html' %} {% extends 'publisher/base.html' %}
{% load i18n %} {% load i18n %}
{% load staticfiles %} {% load staticfiles %}
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
{% trans "Dashboard" %} {% trans "Dashboard" %}
{% endblock title %} {% endblock title %}
{% block content %} {% block page_content %}
{% with studio_count=studio_request_courses|length published_count=published_course_runs|length preview_count=preview_course_runs|length in_progress_count=in_progress_course_runs|length %} {% with studio_count=studio_request_courses|length published_count=published_course_runs|length preview_count=preview_course_runs|length in_progress_count=in_progress_course_runs|length %}
<div class="publisher-container"> <div class="publisher-container">
<h2 class="hd-2 emphasized">{% trans "Course runs" %}</h2> <h2 class="hd-2 emphasized">{% trans "Course runs" %}</h2>
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
{% endwith %} {% endwith %}
{% endblock %} {% endblock %}
{% block extra_js %} {% block extra_js %}
<script src="{% static 'js/tabs.js' %}"></script> <script src="{% static 'js/tabs.js' %}"></script>
<script src="{% static 'js/publisher/views/dashboard.js' %}"></script> <script src="{% static 'js/publisher/views/dashboard.js' %}"></script>
......
{% extends 'base.html' %} {% extends 'publisher/base.html' %}
{% load i18n %} {% load i18n %}
{% load staticfiles %} {% load staticfiles %}
{% block title %} {% block title %}
{% trans "Seat Form" %} {% trans "Seat Form" %}
{% endblock title %} {% endblock title %}
{% block content %} {% block page_content %}
<div class="layout-full layout publisher-layout"> <div class="layout-full layout publisher-layout">
<div class="publisher-container"> <div class="publisher-container">
<div class="course-information"> <div class="course-information">
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</div> </div>
</div> </div>
{% endblock content %} {% endblock %}
{% block extra_js %} {% block extra_js %}
<script src="{% static 'js/seat-type-change.js' %}"></script> <script src="{% static 'js/seat-type-change.js' %}"></script>
......
{% extends 'base.html' %} {% extends 'publisher/base.html' %}
{% load i18n %} {% load i18n %}
{% block title %} {% block title %}
{% trans "Course Form" %} {% trans "Course Form" %}
{% endblock title %} {% endblock title %}
{% block content %} {% block page_content %}
{% include 'alert_messages.html' %} {% include 'alert_messages.html' %}
<div class="layout-full publisher-layout layout"> <div class="layout-full publisher-layout layout">
...@@ -39,4 +39,4 @@ ...@@ -39,4 +39,4 @@
</div> </div>
</div> </div>
</div> </div>
{% endblock content %} {% endblock %}
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