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. #}
{% load compress %}
{% load i18n %}
{% load staticfiles %}
<!DOCTYPE html>
......@@ -18,69 +17,15 @@
{% else %}
<link rel="stylesheet" href="{% static 'sass/main-ltr.scss' %}" type="text/x-scss">
{% 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 %}
{% endcompress %}
</head>
<body>
<div class="container">
{% 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>
{% block content %}{% endblock content %}
<aside class="layout-col layout-col-b border-left layout-col-container">
{% block content %}
{% 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 %}
{% block js %}
<script src="{% url 'javascript-catalog' %}"></script>
{% endblock %}
</body>
</html>
{% extends 'base.html' %}
{% extends 'publisher/base.html' %}
{% load i18n %}
{% load staticfiles %}
{% block title %}
{% trans "Course Form" %}
{% trans "Course Form" %}
{% endblock title %}
{% block content %}
{% block page_content %}
<div>
<h1 class="hd-1 emphasized">New Course</h1>
......@@ -445,8 +447,7 @@
</form>
</div>
</div>
{% endblock content %}
{% endblock %}
{% block extra_js %}
<script src="{% static 'js/publisher/publisher.js' %}"></script>
......
{% extends 'base.html' %}
{% extends 'publisher/base.html' %}
{% load i18n %}
{% load staticfiles %}
......@@ -6,7 +6,7 @@
{% trans "New Course Run" %}
{% endblock title %}
{% block content %}
{% block page_content %}
<div>
<h1 class="hd-1 emphasized">{% trans "New Course Run" %}</h1>
<div class="copy-base">
......@@ -234,7 +234,7 @@
</div>
</form>
</div>
{% endblock content %}
{% endblock %}
{% block extra_js %}
<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 %}
{% block title %}
{% trans "Course Form" %}
{% endblock title %}
{% block content %}
{% block page_content %}
<div class="layout-full layout publisher-layout">
<div class="publisher-container">
<div class="course-information">
......@@ -31,4 +31,4 @@
</div>
</div>
{% endblock content %}
{% endblock %}
{% extends 'base.html' %}
{% extends 'publisher/base.html' %}
{% load compress %}
{% load i18n %}
{% load staticfiles %}
{% block title %}
{% trans "Course Run Detail" %}
{% trans "Course Run Detail" %}
{% endblock title %}
{% block content %}
{% block page_content %}
<div class="publisher-container course-detail">
<nav class="administration-nav">
<div class="tab-container">
......
{% extends 'base.html' %}
{% extends 'publisher/base.html' %}
{% load i18n %}
{% block title %}
{% trans "Course Run Form" %}
{% endblock title %}
{% block content %}
{% block page_content %}
<div class="layout-full layout publisher-layout">
<div class="publisher-container">
<div class="course-information">
......@@ -42,5 +42,4 @@
</div>
</div>
</div>
{% endblock content %}
{% endblock %}
{% extends 'base.html' %}
{% extends 'publisher/base.html' %}
{% load i18n %}
{% block title %}
{% trans "Course Run List" %}
{% endblock title %}
{% block content %}
{% block page_content %}
<div class="layout-full layout">
<div class="publisher-container">
<h2 class="hd-2 emphasized">{{ object_list|length }} {% trans "Course runs in progress" %}</h2>
......@@ -84,5 +84,4 @@
</div>
</div>
</div>
{% endblock %}
{% extends 'base.html' %}
{% extends 'publisher/base.html' %}
{% load i18n %}
{% load staticfiles %}
......@@ -6,7 +6,7 @@
{% trans "Dashboard" %}
{% 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 %}
<div class="publisher-container">
<h2 class="hd-2 emphasized">{% trans "Course runs" %}</h2>
......@@ -48,6 +48,7 @@
{% endwith %}
{% endblock %}
{% block extra_js %}
<script src="{% static 'js/tabs.js' %}"></script>
<script src="{% static 'js/publisher/views/dashboard.js' %}"></script>
......
{% extends 'base.html' %}
{% extends 'publisher/base.html' %}
{% load i18n %}
{% load staticfiles %}
{% block title %}
{% trans "Seat Form" %}
{% endblock title %}
{% block content %}
{% block page_content %}
<div class="layout-full layout publisher-layout">
<div class="publisher-container">
<div class="course-information">
......@@ -27,7 +27,7 @@
</div>
</div>
{% endblock content %}
{% endblock %}
{% block extra_js %}
<script src="{% static 'js/seat-type-change.js' %}"></script>
......
{% extends 'base.html' %}
{% extends 'publisher/base.html' %}
{% load i18n %}
{% block title %}
{% trans "Course Form" %}
{% endblock title %}
{% block content %}
{% block page_content %}
{% include 'alert_messages.html' %}
<div class="layout-full publisher-layout layout">
......@@ -39,4 +39,4 @@
</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