Merge ERPNext Schools into ERPNext
diff --git a/erpnext/templates/includes/announcement/announcement_row.html b/erpnext/templates/includes/announcement/announcement_row.html
new file mode 100644
index 0000000..d807bfc
--- /dev/null
+++ b/erpnext/templates/includes/announcement/announcement_row.html
@@ -0,0 +1,34 @@
+<div class="web-list-item blog-list-item">
+ <a href="/announcements?announcement={{doc.name}}">
+ <div class="row">
+ <a href="/announcements?announcement={{doc.name}}">
+ <div class="col-xs-12">
+ <h1 class="blog-header">{{ doc.subject }}</h1>
+ <p class="post-description more">{{ doc.description }}</p>
+ <p class="post-by text-muted small">
+ <i>{{ doc.posted_by }}</i>
+ <i class="blog-dot"></i> {{ frappe.format_date(doc.modified) }}
+ <i class="blog-dot"></i> {{ doc.num_attachments }} attachments
+ </p>
+ </div>
+ </a>
+ </div>
+ </a>
+</div>
+
+<script type="text/javascript">
+ frappe.ready(function() {
+ var show_char = 150;
+ $('.more').each(function() {
+ var content = $(this).text();
+ if(content.length > show_char) {
+
+ var c = content.substr(0, show_char)
+ var h = content.substr(show_char, content.length - show_char);
+
+ html = c + ' ...'
+ $(this).html(html);
+ }
+ });
+ });
+</script>
diff --git a/erpnext/templates/includes/course/course_row.html b/erpnext/templates/includes/course/course_row.html
new file mode 100644
index 0000000..9b9317b
--- /dev/null
+++ b/erpnext/templates/includes/course/course_row.html
@@ -0,0 +1,18 @@
+<div class="web-list-item">
+ <a href="/courses?course={{ doc.course }}">
+ <div class="row">
+ <div class="col-xs-5">
+ {{ doc.course }}
+ </div>
+ <div class="col-xs-3">
+ {{ doc.group_name }}
+ </div>
+ <div class="col-xs-2">
+ {{doc.academic_term }}
+ </div>
+ <div class="col-xs-2">
+ {{ doc.academic_year }}
+ </div>
+ </div>
+ </a>
+</div>
diff --git a/erpnext/templates/includes/course/macros.html b/erpnext/templates/includes/course/macros.html
new file mode 100644
index 0000000..c80dca4
--- /dev/null
+++ b/erpnext/templates/includes/course/macros.html
@@ -0,0 +1 @@
+{% macro back_link(doc) %}&back-to=/courses?course={{ doc.name }}&back-to-title={{ doc.course_name }}{% endmacro %}
\ No newline at end of file
diff --git a/erpnext/templates/includes/discussion/discussion_row.html b/erpnext/templates/includes/discussion/discussion_row.html
new file mode 100644
index 0000000..7bec3cc
--- /dev/null
+++ b/erpnext/templates/includes/discussion/discussion_row.html
@@ -0,0 +1,9 @@
+<div class="web-list-item">
+ <div class="row">
+ <a href="/discussions?discussion={{doc.name}}">
+ <div class="col-xs-12">
+ {{ doc.subject }}
+ </div>
+ </a>
+ </div>
+</div>
diff --git a/erpnext/templates/includes/examination/examination_row.html b/erpnext/templates/includes/examination/examination_row.html
new file mode 100644
index 0000000..a33ccff
--- /dev/null
+++ b/erpnext/templates/includes/examination/examination_row.html
@@ -0,0 +1,19 @@
+<div class="web-list-item">
+ <div class="row">
+ <div class="col-xs-4">
+ {{ doc.course }}
+ </div>
+ <div class="col-xs-2">
+ {{ doc.room }}
+ </div>
+ <div class="col-xs-2">
+ {{doc.schedule_date }}
+ </div>
+ <div class="col-xs-2">
+ {{ doc.from_time }}
+ </div>
+ <div class="col-xs-2">
+ {{ doc.to_time }}
+ </div>
+ </div>
+</div>
diff --git a/erpnext/templates/includes/fee/fee_row.html b/erpnext/templates/includes/fee/fee_row.html
new file mode 100644
index 0000000..ac2b100
--- /dev/null
+++ b/erpnext/templates/includes/fee/fee_row.html
@@ -0,0 +1,18 @@
+<div class="web-list-item">
+ <a href = "/fees/{{doc.name}}/">
+ <div class="row">
+ <div class="col-xs-6">
+ {{ doc.program }}
+ </div>
+ <div class="col-xs-2">
+ {{ doc.get_formatted("total_amount") }}
+ </div>
+ <div class="col-xs-2">
+ {{ doc.get_formatted("paid_amount") }}
+ </div>
+ <div class="col-xs-2">
+ {{ doc.get_formatted("outstanding_amount") }}
+ </div>
+ </div>
+ </a>
+</div>
diff --git a/erpnext/templates/includes/topic/topic_row.html b/erpnext/templates/includes/topic/topic_row.html
new file mode 100644
index 0000000..3401bd3
--- /dev/null
+++ b/erpnext/templates/includes/topic/topic_row.html
@@ -0,0 +1,9 @@
+<div class="web-list-item">
+ <div class="row">
+ <a href = "/topics?topic={{ doc.name }}">
+ <div class="col-xs-12">
+ {{ doc.topic_name }}
+ </div>
+ </a>
+ </div>
+</div>
\ No newline at end of file