From 98b8e9006e2cfdf155c2789393251d77ef027161 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 13 May 2021 00:03:55 +0300 Subject: Removed calendars --- servo/templates/accounts/calendar_form.html | 12 ---- servo/templates/accounts/calendars.html | 55 --------------- servo/templates/accounts/delete_calendar.html | 17 ----- .../templates/accounts/delete_calendar_event.html | 13 ---- servo/templates/accounts/edit_calendar_event.html | 14 ---- servo/templates/accounts/print_calendar.html | 82 ---------------------- servo/templates/accounts/tabs.html | 3 - servo/templates/accounts/view_calendar.html | 66 ----------------- servo/templates/default.html | 1 - 9 files changed, 263 deletions(-) delete mode 100755 servo/templates/accounts/calendar_form.html delete mode 100755 servo/templates/accounts/calendars.html delete mode 100755 servo/templates/accounts/delete_calendar.html delete mode 100755 servo/templates/accounts/delete_calendar_event.html delete mode 100755 servo/templates/accounts/edit_calendar_event.html delete mode 100755 servo/templates/accounts/print_calendar.html delete mode 100755 servo/templates/accounts/view_calendar.html 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 %} -
- {% csrf_token %} - {% include "form_snippet.html" %} -
-{% 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 %} -
- {% trans "New Calendar" %} - {% if calendar %} - {% trans "New Event" %} - {% endif %} -
- -
- {% if calendar %} - {% trans "Print" %} - {% trans "Edit" %} - {% if perms.servo.delete_calendar %} - {% trans "Delete" %} - {% else %} - {% trans "Delete" %} - {% endif %} - {% endif %} -
- -
- {% trans "Download" %} -
- -{% endblock toolbar %} - -{% block second_row %} - -
-
- -
- -
- {% block detail_view %} -

{% trans "No calendar selected" %}

- {% endblock detail_view %} -
-
-{% endblock second_row %} - -{% block crumbs %} -
  • {% trans "Calendars" %}
  • -{% 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 %} -
    - {% csrf_token %} - -
    -{% 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 %} -
    - {% csrf_token %} - -
    -{% 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 %} -
    - {% csrf_token %} - {% include "form_field_snippet.html" with field=form.started_at %} -
    - {{ form.finished_at }} - -
    - {% include "form_field_snippet.html" with field=form.notes %} - {% include "form_buttons.html" %} -
    -{% 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 %} -
    -
    - {% if location.logo %} - logo - {% endif %} -
    -
    - {{ location.title }}
    - {{ location.address }}
    - {{ location.zip_code }}, {{ location.city }}
    - {{ location.notes }} -
    -
    - {% block location_info %} - {% endblock location_info %} - {% trans "Email Address" %}: {{ location.email }}
    - {% trans "Phone" %}: {{ location.phone }}

    -
    -
    -
    -
    - {% trans "Employee" %}: {{ calendar.user.get_full_name }}
    - {% trans "Date" %}: {% now "SHORT_DATE_FORMAT" %} -
    -
    -
    -

    {{ title }}

    -
    -
    -
    - - - - - - - - - - - - {% for i in events %} - - - - - - - - {% empty %} - - {% endfor %} - - - - - - - -
    {% trans "Date" %}{% trans "Started At" %}{% trans "Finished At" %}{% trans "Duration" %}{% trans "Notes" %}
    {% ifchanged i.started_at|date %}{{ i.started_at|date:"SHORT_DATE_FORMAT" }}{% endifchanged %}{{ i.started_at|time:"TIME_FORMAT" }}{{ i.finished_at|time:"TIME_FORMAT"|default:"-" }}{{ i.get_duration }}{{ i.notes|default:'' }}
    {% trans "No events found" %}
    {% trans "Total" %}{{ subtitle }}
    -
    -
    -
    -
    -
    -
    -
    - {% trans "Manager" %} -
    -
    -
    - {% trans "Employee" %} -
    -
    -{% 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 @@
  • {% trans "Updates" %}
  • -
  • - {% trans "Calendars" %} -
  • {% trans "Statistics" %}
  • 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 %} - -
    -{% block view_block %} - -{% endblock view_block %} - -{% block browse_block %} - -{% endblock browse_block %} -
    - - - - - - - - - - - - - - {% for i in events %} - - - - - - - - - {% empty %} - - {% endfor %} - -
    {% trans "Date" %}{% trans "Started At" %}{% trans "Finished At" %}{% trans "Duration" %}{% trans "Notes" %}
    {% ifchanged i.started_at|date %}{{ i.started_at|date:"SHORT_DATE_FORMAT" }}{% endifchanged %}{{ i.started_at|time:"TIME_FORMAT" }}{{ i.finished_at|time:"TIME_FORMAT"|default:"-" }}{{ i.get_duration }}{{ i.notes|default:'' }} -
    - {% if i.finished_at %} - - {% else %} - - {% endif %} - - -
    -
    {% trans "No events found" %}
    -{% endblock detail_view %} - -{% block crumbs %} -
  • {% trans "Calendars" %} /
  • -
  • {{ calendar.title }}
  • -{% endblock crumbs %} diff --git a/servo/templates/default.html b/servo/templates/default.html index 363f3c8..de363f4 100755 --- a/servo/templates/default.html +++ b/servo/templates/default.html @@ -67,7 +67,6 @@
  • {{ request.user.get_name }}
  • {% trans "Homepage" %}
  • -
  • {% trans "Calendars" %}
  • {% trans "Profile" %}
  • {% if request.user.is_staff %}
  • {% trans "System Settings" %}
  • -- cgit v1.2.3