diff options
author | Filipp Lepalaan <filipp@mac.com> | 2021-05-13 00:03:55 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2021-05-13 00:03:55 +0300 |
commit | 98b8e9006e2cfdf155c2789393251d77ef027161 (patch) | |
tree | c8999a4b24d9c50b5059bb735cfab33351a18521 /servo/templates/accounts | |
parent | 86c04e60b932b8051cde013396aec84a35eff871 (diff) | |
download | Servo-98b8e9006e2cfdf155c2789393251d77ef027161.tar.gz Servo-98b8e9006e2cfdf155c2789393251d77ef027161.tar.bz2 Servo-98b8e9006e2cfdf155c2789393251d77ef027161.zip |
Removed calendars
Diffstat (limited to 'servo/templates/accounts')
-rwxr-xr-x | servo/templates/accounts/calendar_form.html | 12 | ||||
-rwxr-xr-x | servo/templates/accounts/calendars.html | 55 | ||||
-rwxr-xr-x | servo/templates/accounts/delete_calendar.html | 17 | ||||
-rwxr-xr-x | servo/templates/accounts/delete_calendar_event.html | 13 | ||||
-rwxr-xr-x | servo/templates/accounts/edit_calendar_event.html | 14 | ||||
-rwxr-xr-x | servo/templates/accounts/print_calendar.html | 82 | ||||
-rwxr-xr-x | servo/templates/accounts/tabs.html | 3 | ||||
-rwxr-xr-x | servo/templates/accounts/view_calendar.html | 66 |
8 files changed, 0 insertions, 262 deletions
diff --git a/servo/templates/accounts/calendar_form.html b/servo/templates/accounts/calendar_form.html deleted file mode 100755 index 4094d01..0000000 --- a/servo/templates/accounts/calendar_form.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "snippets/modal.html" %} - -{% block header %} - {{ title }} -{% endblock header %} - -{% block body %} - <form method="post" action="{{ action }}" accept-charset="utf-8" class="form-horizontal"> - {% csrf_token %} - {% include "form_snippet.html" %} - </form> -{% endblock body %} diff --git a/servo/templates/accounts/calendars.html b/servo/templates/accounts/calendars.html deleted file mode 100755 index 72a83f9..0000000 --- a/servo/templates/accounts/calendars.html +++ /dev/null @@ -1,55 +0,0 @@ -{% extends "accounts/orders.html" %} -{% load i18n %} -{% load servo_tags %} - -{% block toolbar %} -<div class="btn-group"> - <a href="{% url 'calendars-create' %}" data-modal="#modal" class="btn"><i class="icon-plus"></i> {% trans "New Calendar" %}</a> - {% if calendar %} - <a href="{% url 'calendars.event.edit' cal_pk=calendar.pk %}" class="btn">{% trans "New Event" %}</a> - {% endif %} -</div> - -<div class="btn-group"> - {% if calendar %} - <a href="print/" class="btn window"><i class="icon-print"></i> {% trans "Print" %}</a> - <a href="{% url 'calendars-edit' calendar.pk view %}" data-modal="#modal" class="btn"><i class="icon-pencil"></i> {% trans "Edit" %}</a> - {% if perms.servo.delete_calendar %} - <a href="{{ calendar.get_absolute_url }}delete/" data-modal="#modal" class="btn"><i class="icon-trash"></i> {% trans "Delete" %}</a> - {% else %} - <a href="" class="btn disabled">{% trans "Delete" %}</a> - {% endif %} - {% endif %} -</div> - -<div class="btn-group"> - <a href="download/" class="btn {% if not calendar %}disabled{% endif %}"><i class="icon-download"></i> {% trans "Download" %}</a> -</div> - -{% endblock toolbar %} - -{% block second_row %} - -<div class="row-fluid"> - <div class="span3"> - <ul class="nav nav-list"> - <li class="nav-header">{% trans "Calendars" %}</li> - {% for c in calendars %} - <li class="{% active request c.pk '/' %}"> - <a href="{% url 'calendars.view' pk=c.pk view='week' %}">{{ c.title }}<span class="badge pull-right">{{ c.get_unfinished_count }}</span></a> - </li> - {% endfor %} - </ul> - </div> - - <div class="span9"> - {% block detail_view %} - <h1 class="muted text-center">{% trans "No calendar selected" %}</h1> - {% endblock detail_view %} - </div> -</div> -{% endblock second_row %} - -{% block crumbs %} -<li class="active"><a href="{% url 'calendars-list' %}">{% trans "Calendars" %}</a></li> -{% endblock crumbs %} diff --git a/servo/templates/accounts/delete_calendar.html b/servo/templates/accounts/delete_calendar.html deleted file mode 100755 index bae2e16..0000000 --- a/servo/templates/accounts/delete_calendar.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "snippets/modal.html" %} -{% load i18n %} - -{% block header %} - {{ title }} -{% endblock header %} - -{% block body %} - {% trans "This will also delete all events in this calendar" %} -{% endblock body %} - -{% block footer %} - <form method="post" action="{{ action }}"> - {% csrf_token %} - <button type="submit" class="btn btn-danger">{% trans "Delete" %}</button> - </form> -{% endblock footer %} diff --git a/servo/templates/accounts/delete_calendar_event.html b/servo/templates/accounts/delete_calendar_event.html deleted file mode 100755 index 58fbef3..0000000 --- a/servo/templates/accounts/delete_calendar_event.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "snippets/modal.html" %} -{% load i18n %} - -{% block header %} - {{ title }} -{% endblock header %} - -{% block footer %} - <form action="{{ action }}" method="post"> - {% csrf_token %} - <button type="submit" class="btn btn-danger">{% trans "Delete" %}</button> - </form> -{% endblock footer %} diff --git a/servo/templates/accounts/edit_calendar_event.html b/servo/templates/accounts/edit_calendar_event.html deleted file mode 100755 index 7316791..0000000 --- a/servo/templates/accounts/edit_calendar_event.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "accounts/calendars.html" %} - -{% block detail_view %} - <form action="" method="post" accept-charset="utf-8"> - {% csrf_token %} - {% include "form_field_snippet.html" with field=form.started_at %} - <div class="input-append"> - {{ form.finished_at }} - <button class="btn" type="button" id="set_dt"><i class="icon-time"></i></button> - </div> - {% include "form_field_snippet.html" with field=form.notes %} - {% include "form_buttons.html" %} - </form> -{% endblock detail_view %} diff --git a/servo/templates/accounts/print_calendar.html b/servo/templates/accounts/print_calendar.html deleted file mode 100755 index 64edbe3..0000000 --- a/servo/templates/accounts/print_calendar.html +++ /dev/null @@ -1,82 +0,0 @@ -{% extends "default_print.html" %} -{% load servo_tags %} -{% load mptt_tags %} -{% load static %} -{% load i18n %} - -{% block content %} -<div class="row"> - <div class="span4"> - {% if location.logo %} - <img src="{% get_media_prefix %}{{ location.logo }}" alt="logo" title="logo" class="media-object pull-left span2" style="margin:10px"/> - {% endif %} - </div> - <div class="span4"> - {{ location.title }}<br/> - {{ location.address }}<br/> - {{ location.zip_code }}, {{ location.city }}<br/> - {{ location.notes }} - </div> - <div class="span4"> - {% block location_info %} - {% endblock location_info %} - {% trans "Email Address" %}: {{ location.email }}<br/> - {% trans "Phone" %}: {{ location.phone }}<br/><br/> - </div> -</div> -<div class="row" style="margin-top:2em;margin-bottom:1em"> - <div class="span6"> - {% trans "Employee" %}: {{ calendar.user.get_full_name }}<br/> - {% trans "Date" %}: {% now "SHORT_DATE_FORMAT" %} - </div> -</div> -<div class="row"> - <div class="span12 text-center"><h3>{{ title }}</h3></div> -</div> -<div class="row"> - <div class="span12"> - <table class="table"> - <thead> - <tr> - <th>{% trans "Date" %}</th> - <th>{% trans "Started At" %}</th> - <th>{% trans "Finished At" %}</th> - <th>{% trans "Duration" %}</th> - <th>{% trans "Notes" %}</th> - </tr> - </thead> - <tbody> - {% for i in events %} - <tr> - <td>{% ifchanged i.started_at|date %}{{ i.started_at|date:"SHORT_DATE_FORMAT" }}{% endifchanged %}</td> - <td>{{ i.started_at|time:"TIME_FORMAT" }}</td> - <td>{{ i.finished_at|time:"TIME_FORMAT"|default:"-" }}</td> - <td>{{ i.get_duration }}</td> - <td>{{ i.notes|default:'' }}</td> - </tr> - {% empty %} - <tr><td colspan="6" class="muted empty">{% trans "No events found" %}</td></tr> - {% endfor %} - </tbody> - <tfoot> - <tr> - <td><strong>{% trans "Total" %}</strong></td> - <td colspan="4"><strong>{{ subtitle }}</strong></td> - </tr> - </tfoot> - </table> - </div> -</div> -<br/> -<br/> -<div class="row"> - <div class="span6"> - <hr/> - {% trans "Manager" %} - </div> - <div class="span6"> - <hr/> - {% trans "Employee" %} - </div> -</div> -{% endblock content %} diff --git a/servo/templates/accounts/tabs.html b/servo/templates/accounts/tabs.html index e570241..2b31ac0 100755 --- a/servo/templates/accounts/tabs.html +++ b/servo/templates/accounts/tabs.html @@ -8,9 +8,6 @@ <li class="{% active request "updates" %}"> <a href="{% url 'accounts-updates' %}">{% trans "Updates" %}</a> </li> - <li class="{% active request "calendars" %}"> - <a href="{% url 'calendars-list' %}">{% trans "Calendars" %}</a> - </li> <li class="{% active request "stats" %}"> <a href="{% url 'accounts-stats' %}">{% trans "Statistics" %}</a> </li> diff --git a/servo/templates/accounts/view_calendar.html b/servo/templates/accounts/view_calendar.html deleted file mode 100755 index 7eece46..0000000 --- a/servo/templates/accounts/view_calendar.html +++ /dev/null @@ -1,66 +0,0 @@ -{% extends "accounts/calendars.html" %} -{% load i18n %} -{% load servo_tags %} - -{% block detail_view %} - -<div class="text-center"> -{% block view_block %} -<div class="btn-group"> - <a class="btn {% active request 'day' %}" href="{{ calendar.get_absolute_url }}day/">{% trans "Day" %}</a> - <a class="btn {% active request 'week' %}" href="{{ calendar.get_absolute_url }}week/">{% trans "Week" %}</a> - <a class="btn {% active request 'month' %}" href="{{ calendar.get_absolute_url }}month/">{% trans "Month" %}</a> -</div> -{% endblock view_block %} - -{% block browse_block %} -<div class="btn-group pull-right"> - <a href="{% url 'calendars-view_calendar' pk=calendar.pk view=view start_date=previous|date:'Y-m-d' %}" class="btn"><i class="icon-chevron-left"></i></a> - <a href="{{ base_url }}" class="btn">{% trans "Today" %}</a> - <a href="{% url 'calendars-view_calendar' pk=calendar.pk view=view start_date=next|date:'Y-m-d' %}" class="btn"><i class="icon-chevron-right"></i></a> -</div> -{% endblock browse_block %} -</div> - -<table class="table"> - <thead> - <tr> - <th>{% trans "Date" %}</th> - <th>{% trans "Started At" %}</th> - <th>{% trans "Finished At" %}</th> - <th>{% trans "Duration" %}</th> - <th>{% trans "Notes" %}</th> - <th></th> - </tr> - </thead> - <tbody> - {% for i in events %} - <tr> - <td>{% ifchanged i.started_at|date %}{{ i.started_at|date:"SHORT_DATE_FORMAT" }}{% endifchanged %}</td> - <td>{{ i.started_at|time:"TIME_FORMAT" }}</td> - <td>{{ i.finished_at|time:"TIME_FORMAT"|default:"-" }}</td> - <td>{{ i.get_duration }}</td> - <td>{{ i.notes|default:'' }}</td> - <td style="text-align:right"> - <div class="btn-group"> - {% if i.finished_at %} - <a href="" class="btn disabled"><i class="icon-time"></i></a> - {% else %} - <a href="{{ calendar.get_absolute_url }}events/{{ i.pk }}/finish/" class="btn"><i class="icon-time"></i></a> - {% endif %} - <a href="{{ calendar.get_absolute_url }}events/{{ i.pk }}/edit/" class="btn btn-warning"><i class="icon-pencil icon-white"></i></a> - <a href="{{ calendar.get_absolute_url }}events/{{ i.pk }}/delete/" class="btn btn-danger" data-modal="#modal"><i class="icon-trash icon-white"></i></a> - </div> - </td> - </tr> - {% empty %} - <tr><td colspan="6" class="muted empty">{% trans "No events found" %}</td></tr> - {% endfor %} - </tbody> -</table> -{% endblock detail_view %} - -{% block crumbs %} - <li><a href="{% url 'calendars-list' %}">{% trans "Calendars" %}</a> <span class="divider">/</span></li> - <li class="active">{{ calendar.title }}</li> -{% endblock crumbs %} |