Skip to content
Snippets Groups Projects
Commit 9d1226f4 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unused code removed

parent 33a5aff5
No related branches found
No related tags found
1 merge request!107Resolve "exceeded visits list & unfinished visits list"
...@@ -186,8 +186,8 @@ desired effect ...@@ -186,8 +186,8 @@ desired effect
</div> </div>
</div> </div>
<!-- /.row --> <!-- /.row -->
{% endcomment %}
</li> </li>
{% endcomment %}
<!-- Menu Footer--> <!-- Menu Footer-->
<li class="user-footer"> <li class="user-footer">
<!--<div class="pull-left"> <!--<div class="pull-left">
......
{% extends "_base.html" %}
{% load static %}
{% block styles %}
{{ block.super }}
<!-- DataTables -->
<link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}">
{% endblock styles %}
{% block ui_active_tab %}'mail_templates'{% endblock ui_active_tab %}
{% block page_header %}Mail templates{% endblock page_header %}
{% block page_description %}{% endblock page_description %}
{% block breadcrumb %}
{% include "mail_templates/breadcrumb.html" %}
{% endblock breadcrumb %}
{% block maincontent %}
<div class="box box-danger box-solid">
<div class="box-header with-border">
<h3 class="box-title">Not yet implemented</h3>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
This is only a static page to show, how the system would look like.
A comprehensive system for template editing and generation has to be developed.
</div>
<!-- /.box-body -->
</div>
<div>
<a class="btn btn-app">
<i class="fa fa-plus"></i> Add new letter
</a>
</div>
<div class="box-body">
<table id="table" class="table table-bordered table-striped">
<thead>
<tr>
<th>No.</th>
<th>Destination</th>
<th>Language</th>
<th>Title</th>
<th>Details</th>
<th>Edit</th>
<th>Delete</th>
<th>Generate</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Patients</td>
<td>english</td>
<td>"Thank you" letter</td>
<td>
<button type="button" class="btn btn-block btn-default">Details</button>
</td>
<td>
<button type="button" class="btn btn-block btn-warning">Edit</button>
</td>
<td>
<button type="button" class="btn btn-block btn-danger">Delete</button>
</td>
<td>
<button type="button" class="btn btn-block btn-default">Generate</button>
</td>
</tr>
<tr>
<td>2</td>
<td>Patients</td>
<td>english</td>
<td>"Dankescreiben" letter</td>
<td>
<button type="button" class="btn btn-block btn-default">Details</button>
</td>
<td>
<button type="button" class="btn btn-block btn-warning">Edit</button>
</td>
<td>
<button type="button" class="btn btn-block btn-danger">Delete</button>
</td>
<td>
<button type="button" class="btn btn-block btn-default">Generate</button>
</td>
</tr>
<tr>
<td>3</td>
<td>Doctors</td>
<td>english</td>
<td>"New Scheduling system"</td>
<td>
<button type="button" class="btn btn-block btn-default">Details</button>
</td>
<td>
<button type="button" class="btn btn-block btn-warning">Edit</button>
</td>
<td>
<button type="button" class="btn btn-block btn-danger">Delete</button>
</td>
<td>
<button type="button" class="btn btn-block btn-default">Generate</button>
</td>
</tr>
</tbody>
</table>
</div>
{% endblock maincontent %}
{% block scripts %}
{{ block.super }}
<script src="{% static 'AdminLTE/plugins/datatables/jquery.dataTables.min.js' %}"></script>
<script src="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.min.js' %}"></script>
<script>
$(function () {
$('#table').DataTable({
"paging": true,
"lengthChange": false,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": false
});
});
</script>
{% endblock scripts %}
...@@ -133,7 +133,6 @@ urlpatterns = [ ...@@ -133,7 +133,6 @@ urlpatterns = [
# MAIL # # MAIL #
#################### ####################
url(r'^mail_templates_old$', views.mails.mail_templates, name='web.views.mail_templates_old'),
url(r'^mail_templates$', views.mails.MailTemplatesListView.as_view(), name='web.views.mail_templates'), url(r'^mail_templates$', views.mails.MailTemplatesListView.as_view(), name='web.views.mail_templates'),
url(r'^mail_templates/add$', views.mails.MailTemplatesCreateView.as_view(), name='web.views.mail_template_add'), url(r'^mail_templates/add$', views.mails.MailTemplatesCreateView.as_view(), name='web.views.mail_template_add'),
url(r'^mail_templates/(?P<pk>\d+)/delete$', views.mails.MailTemplatesDeleteView.as_view(), url(r'^mail_templates/(?P<pk>\d+)/delete$', views.mails.MailTemplatesDeleteView.as_view(),
......
...@@ -12,7 +12,7 @@ from django.views.generic import DeleteView ...@@ -12,7 +12,7 @@ from django.views.generic import DeleteView
from django.views.generic import ListView from django.views.generic import ListView
from django.views.generic import UpdateView from django.views.generic import UpdateView
from . import wrap_response, WrappedView from . import WrappedView
from ..models import StudySubject, Visit, Appointment, MailTemplate from ..models import StudySubject, Visit, Appointment, MailTemplate
from ..models.constants import MAIL_TEMPLATE_CONTEXT_SUBJECT, MAIL_TEMPLATE_CONTEXT_VISIT, \ from ..models.constants import MAIL_TEMPLATE_CONTEXT_SUBJECT, MAIL_TEMPLATE_CONTEXT_VISIT, \
MAIL_TEMPLATE_CONTEXT_APPOINTMENT MAIL_TEMPLATE_CONTEXT_APPOINTMENT
...@@ -26,10 +26,6 @@ CONTEXT_TYPES_MAPPING = { ...@@ -26,10 +26,6 @@ CONTEXT_TYPES_MAPPING = {
} }
def mail_templates(request):
return wrap_response(request, "mail_templates/index.html", {})
class MailTemplatesListView(ListView, WrappedView): class MailTemplatesListView(ListView, WrappedView):
model = MailTemplate model = MailTemplate
context_object_name = "mail_templates" context_object_name = "mail_templates"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment