Add new appearance app to hold all of the base templates, images, icons and external packages related to the frontend and look of the project

This commit is contained in:
Roberto Rosario
2015-03-30 02:17:40 -04:00
parent 3131751b25
commit 5dabc0a34a
290 changed files with 298 additions and 298 deletions
+2 -2
View File
@@ -7,5 +7,5 @@ def is_superuser(context):
return context['request'].user.is_staff or context['request'].user.is_superuser
maintenance_menu = {'text': _('Maintenance'), 'view': 'main:maintenance_menu', 'famfam': 'wrench', 'icon': 'main/icons/wrench.png'}
admin_site = {'text': _('Admin site'), 'view': 'admin:index', 'famfam': 'keyboard', 'icon': 'main/icons/keyboard.png', 'condition': is_superuser}
maintenance_menu = {'text': _('Maintenance'), 'view': 'main:maintenance_menu', 'famfam': 'wrench', 'icon': 'appearance/icons/wrench.png'}
admin_site = {'text': _('Admin site'), 'view': 'admin:index', 'famfam': 'keyboard', 'icon': 'appearance/icons/keyboard.png', 'condition': is_superuser}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 999 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1021 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 858 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 979 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 738 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 578 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 920 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 KiB

-14
View File
@@ -1,14 +0,0 @@
{% extends 'main/base.html' %}
{% load i18n %}
{% block title %} :: {% blocktrans %}Insufficient permissions{% endblocktrans %}{% endblock %}
{% block content %}
<div class="content">
<h2 class="title">{% blocktrans %}Insufficient permissions{% endblocktrans %}</h2>
<div class="inner">
<p>{% blocktrans %}You don't have enough permissions for this operation.{% endblocktrans %}</p>
</div>
</div>
{% endblock %}
-14
View File
@@ -1,14 +0,0 @@
{% extends 'main/base.html' %}
{% load i18n %}
{% block title %} :: {% blocktrans %}Page not found{% endblocktrans %}{% endblock %}
{% block content %}
<div class="content">
<h2 class="title">{% blocktrans %}Page not found{% endblocktrans %}</h2>
<div class="inner">
<p>{% blocktrans %}Sorry, but the requested page could not be found.{% endblocktrans %}</p>
</div>
</div>
{% endblock %}
-19
View File
@@ -1,19 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Page unavailable</title>
</head>
<body>
<h1>Page unavailable</h1>
<p>Sorry, but the requested page is unavailable due to a server problem.</p>
<p>Administrators have been notified, so check back later.</p>
{% if request.sentry.id %}
<p>If you need assistance, you may reference this error as
<strong>{{ request.sentry.id }}</strong>.</p>
{% endif %}
</body>
</html>
-45
View File
@@ -1,45 +0,0 @@
{% extends 'main/base.html' %}
{% load i18n %}
{% load static %}
{% load project_tags %}
{% load version_tags %}
{% block title %} :: {% trans 'About this program' %}{% endblock %}
{% block content %}
<div class="content tc">
<h3>{% project_name %} ({% trans 'Version' %} {% app_version 'mayan' %})</h3>
<p>
{% trans 'Free Open Source Electronic Document Management System' %}
</p>
<p>
<span class="famfam active famfam-world_go"></span><a href="http://www.mayan-edms.com">http://www.mayan-edms.com</a>
</p>
<p>
<span class="famfam active famfam-book_open"></span><a href="http://readthedocs.org/docs/mayan/en/latest/">http://mayan.readthedocs.org/</a>
</p>
<p>
<span class="famfam active famfam-wrench"></span><a href="https://github.com/mayan-edms/mayan-edms/">https://github.com/mayan-edms/mayan-edms/</a>
</p>
<p>
<span class="famfam active famfam-bug"></span><a href="https://github.com/mayan-edms/mayan-edms/issues">https://github.com/mayan-edms/mayan-edms/issues</a>
</p>
<p>
{% trans 'Released under the Apache 2.0 License' %}
</p>
<p>
<img src="{% static 'main/images/mayan_logo_landscape_rough.png' %}"/>
</p>
</div>
{% endblock %}
{% block footer %}
<div id="footer">
<div class="block">
<p>{% trans 'Copyright &copy; 2011-2015 Roberto Rosario.' %}</p>
</div>
</div>
{% endblock %}
File diff suppressed because it is too large Load Diff
@@ -1,15 +0,0 @@
{% load i18n %}
{% if title %}
{{ title }}
{% else %}
{% if read_only %}
{% blocktrans %}Details for: {{ object }}{% endblocktrans %}
{% else %}
{% if object %}
{% blocktrans with object as object %}Edit: {{ object }}{% endblocktrans %}
{% else %}
{% trans 'Create' %}
{% endif %}
{% endif %}
{% endif %}
@@ -1,22 +0,0 @@
{% extends 'main/base.html' %}
{% block title %} :: {{ title }}{% endblock %}
{% block content %}
{% for key, value in blocks.items %}
<div class="content">
<h2 class="title">{{ value.title }}</h2>
<div class="inner">
<p>
<ul class="undecorated_list">
{% with value.links as object_navigation_links %}
{% with 'true' as as_li %}
{% include 'generic_navigation.html' %}
{% endwith %}
{% endwith %}
</ul>
</p>
</div></div>
{% endfor %}
{% endblock %}
@@ -1,62 +0,0 @@
{% extends 'main/base.html' %}
{% load i18n %}
{% load static %}
{% block title %} :: {% trans 'Confirm' %} {{ title }}{% endblock %}
{% block sidebar %}
{% for subtemplate in subtemplates %}
{% include subtemplate %}
{% endfor %}
{% endblock %}
{% block content %}
<div class="content">
<h2 class="title">
{% if delete_view %}
{% trans 'Confirm delete' %}
{% else %}
{% trans 'Confirm' %}
{% endif %}
</h2>
<div class="inner">
<form action="" method="post" class="form login">{% csrf_token %}
{% if next %}
<input name="next" type="hidden" value="{{ next }}" />
{% endif %}
{% if previous %}
<input name="previous" type="hidden" value="{{ previous }}" />
{% endif %}
<div style="float: left; margin-right: 10px;">
<img style="margin-top: 12px;" src="{% static 'main/icons/question.png' %}" alt="{% trans 'question bubble' %}" />
</div>
<div style="float: left; width: 90%;">
{% if title %}
<h3>{{ title }}</h3>
{% else %}
{% if delete_view %}
<h3>{% blocktrans %}Are you sure you wish to delete: {{ object }}?{% endblocktrans %}</h3>
{% endif %}
{% endif %}
<h4>{{ message }}</h4>
<div class="group navform wat-cf">
<button class="pure-button mayan-button" type="submit">
<span class="famfam active famfam-tick"></span> {% trans 'Yes' %}
</button>
{% if previous %}
&nbsp;<a href="#header" onclick='{% if previous %}window.location.replace("{{ previous }}");{% else %}history.go(-1);{% endif %}' class="pure-button mayan-button">
<span class="famfam active famfam-cross"></span> {% trans 'No' %}
</a>
{% endif %}
</div>
</div>
<div class="clear"></div>
</form>
</div>
</div>
{% endblock %}
@@ -1,82 +0,0 @@
{% extends 'main/base.html' %}
{% load i18n %}
{% load subtemplates_tags %}
{% block title %} :: {% with 'true' as read_only %}{% include 'main/calculate_form_title.html' %}{% endwith %}{% endblock %}
{% block sidebar %}
{% for subtemplate in sidebar_subtemplates %}
<div class="generic_subform">
{% include subtemplate %}
</div>
{% endfor %}
{% for subtemplate in sidebar_subtemplates_list %}
{% with 'true' as side_bar %}
{% if subtemplate.form %}
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
{% with 'true' as read_only %}
<div class="generic_subform">
{{ rendered_subtemplate }}
</div>
{% endwith %}
{% else %}
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
{{ rendered_subtemplate }}
{% endif %}
</div>
{% if subtemplate.grid_clear or not subtemplate.grid %}
<div class=""></div>
{% endif %}
{% endwith %}
{% endfor %}
{% endblock %}
{% block stylesheets %}
<style type="text/css">
#subform form textarea,
#subform form select option,
#subform form input,
#subform form select,
#subform form input { background: none; color: black; border: none; }
</style>
{% endblock %}
{% block content %}
{% if form %}
{% with 'true' as read_only %}
<div class="">
<div class="generic_subform">
{% include 'main/generic_form_subtemplate.html' %}
</div>
</div>
{% if grid_clear or not grid %}
<div class=""></div>
{% endif %}
{% endwith %}
{% endif %}
<div class="pure-g">
{% for subtemplate in subtemplates_list %}
{% if subtemplate.grid %}
<div class="pure-u-{{ subtemplate.grid }}-24">
{% else %}
<div class="pure-u-1">
{% endif %}
{% with "true" as read_only %}
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
<div class="generic_subform">
{{ rendered_subtemplate }}
</div>
{% endwith %}
</div>
{% if subtemplate.grid_clear or not subtemplate.grid %}
<div class="clear"></div>
{% endif %}
{% endfor %}
</div>
{% endblock %}
@@ -1,22 +0,0 @@
{% load i18n %}
{% block stylesheets %}
<style type="text/css">
#subform form textarea,
#subform form select option,
#subform form input,
#subform form select,
#subform form input { background: none; color: black; border: none; }
</style>
{% endblock %}
{% block content %}
{% if form %}
{% with 'true' as read_only %}
<div class="generic_subform">
{% include 'main/generic_form_subtemplate.html' %}
</div>
{% endwith %}
{% endif %}
{% endblock %}
@@ -1,60 +0,0 @@
{% extends 'main/base.html' %}
{% load subtemplates_tags %}
{% block title %} :: {% include 'main/calculate_form_title.html' %}{% endblock %}
{% block sidebar %}
{% for subtemplate in sidebar_subtemplates_list %}
{% if subtemplate.form %}
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
<div class="generic_subform">
{{ rendered_subtemplate }}
</div>
{% else %}
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
{{ rendered_subtemplate }}
{% endif %}
{% if subtemplate.grid_clear or not subtemplate.grid %}
{% endif %}
{% endfor %}
{% endblock %}
{% block content %}
{% if main_title %}
<div class="content">
<h2 class="title">{{ main_title }}</h2>
</div>
{% endif %}
{% if form %}
<div class="generic_subform">
{% include "main/generic_form_subtemplate.html" %}
</div>
{% endif %}
<div class="pure-g">
{% for subtemplate in subtemplates_list %}
{% if subtemplate.grid %}
<div class="pure-u-{{ subtemplate.grid }}-24">
{% else %}
<div class="pure-u-1">
{% endif %}
{% if subtemplate.form %}
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
<div class="generic_subform">
{{ rendered_subtemplate }}
</div>
{% else %}
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
{{ rendered_subtemplate }}
{% endif %}
</div>
{% if subtemplate.grid_clear or not subtemplate.grid %}
<div class="clear"></div>
{% endif %}
{% endfor %}
</div>
{% endblock %}
@@ -1,56 +0,0 @@
{% load i18n %}
{% load styling %}
{{ form.media|safe }}
{% add_classes_to_form form %}
{% if form.non_field_errors %}
<div class="flash">
{% for value in form.non_field_errors %}
<div class="message error">
<p>{{ value }}</p>
</div>
{% endfor %}
</div>
{% endif %}
{% if form_display_mode_table %}
<div class="flash">
{% for field in form.visible_fields %}
{% for error in field.errors %}
<div class="message error">
<p>{{ error }}</p>
</div>
{% endfor %}
{% endfor %}
</div>
{% for field in form.hidden_fields %}
{{ field }}
{% endfor %}
<tr class="{% cycle 'odd' 'even2' %}">
{% for field in form.visible_fields %}
<td title="{% if field.errors %}{% for error in field.errors %}{{ error }}{% if not forloop.last %} | {% endif %}{% endfor %}{% else %}{{ field.help_text }}{% endif %}">
{% if field.errors %}<div class="error">{% endif %}
{{ field }}
{% if field.errors %}</div>{% endif %}
</td>
{% endfor %}
</tr>
{% else %}
{% for field in form.hidden_fields %}
{{ field }}
{% endfor %}
{% for field in form.visible_fields %}
<div class="group">
{% if field.errors %}<div class="fieldWithErrors">{% endif %}
{% if not hide_labels %}<label class="label">{{ field.label_tag }}{% if field.field.required and not read_only and not form_hide_required_text %} ({% trans 'required' %}){% endif %}</label>{% endif %}
{% if field.errors %}<span class="error">{% for error in field.errors %}{{ error }}{% if not forloop.last %} | {% endif %}{% endfor %}</span></div>{% endif %}
{{ field }}
{% if field.help_text %}<span class="description">{{ field.help_text }}</span>{% endif %}
</div>
{% endfor %}
{% endif %}
@@ -1,97 +0,0 @@
{% load i18n %}
{% load static %}
{% if side_bar %}
<div class="block">
<h3>
{% else %}
<div class="content">
<h2 class="title">
{% endif %}
{% include 'main/calculate_form_title.html' %}
{% if side_bar %}
</h3>
<div class="content">
<p>
{% else %}
</h2>
<div class="inner">
{% endif %}
{% if form.is_multipart %}
<form name="{{ form.prefix }}" enctype="multipart/form-data" method="{{ submit_method|default:'post' }}" action="{{ form_action }}" class="{{ form_class|default:'form' }}">
{% else %}
<form name="{{ form.prefix }}" method="{{ submit_method|default:'post' }}" action="{{ form_action }}" class="{{ form_class|default:'form' }}">
{% endif %}
{{ wizard.management_form }}
{% if step_field %}
<input type="hidden" name="{{ step_field }}" value="{{ step0 }}" />
{% endif %}
{% if submit_method != 'GET' and submit_method != 'get' %}
{% csrf_token %}
{% endif %}
{% if next %}
<input name="next" type="hidden" value="{{ next }}" />
{% endif %}
{% if previous %}
<input name="previous" type="hidden" value="{{ previous }}" />
{% endif %}
{% for hidden_field in hidden_fields %}
{{ hidden_field.as_hidden }}
{% endfor %}
{% if form.management_form %}
{% with form as formset %}
{{ formset.management_form }}
{% if form_display_mode_table %}
<table class="table">
<tbody>
<tr>
{% for field in formset.forms.0.visible_fields %}
<th>
{{ field.label_tag }}{% if field.field.required and not read_only %} ({% trans 'required' %}){% endif %}
</th>
{% endfor %}
</tr>
{% endif %}
{% for form in formset.forms %}
{% include 'main/generic_form_instance.html' %}
{% endfor %}
{% if form_display_mode_table %}
</tbody>
</table>
{% endif %}
{% endwith %}
{% else %}
{% include 'main/generic_form_instance.html' %}
{% endif %}
{% if not read_only %}
<div class="group navform wat-cf">
<button class="pure-button mayan-button" type="submit" name="{% if form.prefix %}{{ form.prefix }}-submit{% else %}submit{% endif %}">
<span class="famfam active famfam-{{ submit_icon_famfam|default:'tick' }}"></span>
{% if submit_label %}{{ submit_label }}{% else %}{% if object %}{% trans 'Save' %}{% else %}{% trans 'Submit' %}{% endif %}{% endif %}
</button>
{% if previous %}
&nbsp;<a href="#header" onclick='{% if previous %}window.location.replace("{{ previous }}");{% else %}history.go(-1);{% endif %}' class="pure-button mayan-button">
<span class="famfam active famfam-cross"></span>{% if cancel_label %}{{ cancel_label }}{% else %}{% trans 'Cancel' %}{% endif %}
</a>
{% endif %}
</div>
{% endif %}
</form>
{% if side_bar %}
</p></div></div>
{% else %}
</div></div>
{% endif %}
@@ -1,28 +0,0 @@
{% extends 'main/base.html' %}
{% load i18n %}
{% load navigation_tags %}
{% load subtemplates_tags %}
{% block title %} :: {% include 'main/calculate_form_title.html' %}{% endblock %}
{% block sidebar %}
{% for subtemplate in sidebar_subtemplates_list %}
{% if subtemplate.form %}
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
<div class="generic_subform">
{{ rendered_subtemplate }}
</div>
{% else %}
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
{{ rendered_subtemplate }}
{% endif %}
{% endfor %}
{% endblock %}
{% block content %}
{% include 'main/generic_list_subtemplate.html' %}
{% endblock %}
@@ -1,11 +0,0 @@
{% extends 'main/base.html' %}
{% load navigation_tags %}
{% load subtemplates_tags %}
{% block title %} :: {{ title }}{% endblock %}
{% block content %}
{% include 'main/generic_list_horizontal_subtemplate.html' %}
{% endblock %}
@@ -1,11 +0,0 @@
<div class="content">
<h2 class="title">
{{ title }}
</h2>
</div>
<div class="pure-g tc">
{% with 'navigation/large_button_link.html' as link_template %}
{% include 'generic_navigation.html' %}
{% endwith %}
</div>
@@ -1,135 +0,0 @@
{% load i18n %}
{% load static %}
{% load attribute_tags %}
{% load pagination_tags %}
{% load navigation_tags %}
{% load non_breakable %}
{% load variable_tags %}
{% load multiselect_tags %}
{% if side_bar %}
<div class="block">
<h3>
{{ title }}
</h3>
<div class="content">
<p>
{% else %}
{% autopaginate object_list %}
<div class="content">
<h2 class="title">
{% ifnotequal page_obj.paginator.num_pages 1 %}
{% blocktrans with page_obj.start_index as start and page_obj.end_index as end and page_obj.paginator.object_list|length as total and page_obj.number as page_number and page_obj.paginator.num_pages as total_pages %}{{ title }} ({{ start }} - {{ end }} out of {{ total }}) (Page {{ page_number }} of {{ total_pages }}){% endblocktrans %}
{% else %}
{% blocktrans with page_obj.paginator.object_list|length as total %}{{ title }} ({{ total }}){% endblocktrans %}
{% endifnotequal %}
</h2>
<div class="inner">
{% endif %}
<form action="{% url 'common:multi_object_action_view' %}" class="pure-form" method="get">
{% if object_list %}
{% get_multi_item_links_form object_list %}
{% if multi_item_actions %}
<fieldset>
{{ multi_item_form }}
&nbsp;<button class="pure-button mayan-button" type="submit" name="{{ form.prefix }}-submit">
<span class="famfam active famfam-tick"></span> {% trans 'Submit' %}
</button>
</fieldset>
{% endif %}
{% endif %}
{% if scrollable_content %}
<div style="border: 1px solid; height: {{ scrollable_content_height }}; overflow: auto;">
{% endif %}
<table class="table">
<tbody>
{% if not hide_header %}
<tr>
{% if multi_item_actions %}
<th class="first"><input type="checkbox" class="checkbox toggle" /></th>
{% endif %}
{% if not hide_object %}
<th>{% trans 'Identifier' %}</th>
{% endif %}
{% for column in object_list.0|get_model_list_columns %}
<th>{{ column.name }}</th>
{% endfor %}
{% for column in extra_columns %}
<th>{{ column.name }}</th>
{% endfor %}
{% if not hide_links %}
<th class="">&nbsp;</th>
{% endif %}
</tr>
{% endif %}
{% for object in object_list %}
<tr class="{% cycle 'odd' 'even2' %}">
{% if multi_item_actions %}
<td>
{% if multi_select_item_properties %}
<input type="checkbox" class="checkbox" name="properties_{{ object|get_encoded_parameter:multi_select_item_properties }}" value="" />
{% else %}
<input type="checkbox" class="checkbox" name="pk_{{ object.pk }}" value="" />
{% endif %}
</td>
{% endif %}
{% if not hide_object %}
{% if main_object %}
{% with object|object_property:main_object as object %}
<td>{% if not hide_link %}<a href="{{ object.get_absolute_url }}">{{ object }}</a>{% else %}{{ object }}{% endif %}</td>
{% endwith %}
{% else %}
<td>{% if not hide_link %}<a href="{{ object.get_absolute_url }}">{{ object }}</a>{% else %}{{ object }}{% endif %}</td>
{% endif %}
{% endif %}
{% if not hide_columns %}
{% for column in object|get_model_list_columns %}
<td>{{ object|object_property:column.attribute }}</td>
{% endfor %}
{% endif %}
{% for column in extra_columns %}
{% if column.keep_together %}
<td>
{{ object|object_property:column.attribute|make_non_breakable }}
</td>
{% else %}
<td>{{ object|object_property:column.attribute }}</td>
{% endif %}
{% endfor %}
{% if not hide_links %}
{% if list_object_variable_name %}
{% copy_variable object as list_object_variable_name %}
{% copy_variable list_object_variable_name as "navigation_object_name" %}
{% endif %}
<td class="last">
{% object_navigation_template %}
</td>
{% endif %}
</tr>
{% empty %}
<tr><td colspan=99 class="tc">{% trans 'No results' %}</td></tr>
{% endfor %}
</tbody>
</table>
{% if scrollable_content %}
</div>
{% endif %}
</form>
{% paginate %}
{% if side_bar %}
</p>
{% endif %}
</div>
</div>
@@ -1,54 +0,0 @@
{% extends 'main/base.html' %}
{% load subtemplates_tags %}
{% block title %} :: {% include 'main/calculate_form_title.html' %}{% endblock %}
{% block sidebar %}
{% for subtemplate in sidebar_subtemplates_list %}
{% if subtemplate.form %}
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
<div class="generic_subform">
{{ rendered_subtemplate }}
</div>
{% else %}
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
{{ rendered_subtemplate }}
{% endif %}
{% if subtemplate.grid_clear or not subtemplate.grid %}
{% endif %}
{% endfor %}
{% endblock %}
{% block content %}
{% if main_title %}
<div class="content">
<h2 class="title">{{ main_title }}</h2>
</div>
{% endif %}
<div class="pure-g">
{% for subtemplate in subtemplates_list %}
{% if subtemplate.grid %}
<div class="pure-u-{{ subtemplate.grid }}-24">
{% else %}
<div class="pure-u-1">
{% endif %}
{% if subtemplate.form %}
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
<div class="generic_subform">
{{ rendered_subtemplate }}
</div>
{% else %}
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
{{ rendered_subtemplate }}
{% endif %}
</div>
{% if subtemplate.grid_clear or not subtemplate.grid %}
<div class="clear"></div>
{% endif %}
{% endfor %}
</div>
{% endblock %}
@@ -1,78 +0,0 @@
{% load i18n %}
{% load static %}
<div class="content">
<h2 class="title">
{% include 'main/calculate_form_title.html' %}
</h2>
<div class="inner">
{% if is_multipart %}
<form enctype="multipart/form-data" method="{{ submit_method|default:'post' }}" action="{{ form_action }}" class="form">
{% else %}
<form method="{{ submit_method|default:'post' }}" action="{{ form_action }}" class="form">
{% endif %}
{% for form_name, form in forms.items %}
{% if submit_method != 'GET' and submit_method != 'get' %}
{% csrf_token %}
{% endif %}
{% if next %}
<input name="next" type="hidden" value="{{ next }}" />
{% endif %}
{% if previous %}
<input name="previous" type="hidden" value="{{ previous }}" />
{% endif %}
{% for hidden_field in hidden_fields %}
{{ hidden_field.as_hidden }}
{% endfor %}
{% if form.management_form %}
{% with form as formset %}
{{ formset.management_form }}
{% if form_display_mode_table %}
<table class="table">
<tbody>
<tr>
{% for field in formset.forms.0.visible_fields %}
<th>
{{ field.label_tag }}{% if field.field.required and not read_only %} ({% trans 'required' %}){% endif %}
</th>
{% endfor %}
</tr>
{% endif %}
{% for form in formset.forms %}
{% include 'main/generic_form_instance.html' %}
{% endfor %}
{% if form_display_mode_table %}
</tbody>
</table>
{% endif %}
{% endwith %}
{% else %}
{% include 'main/generic_form_instance.html' %}
{% endif %}
{% endfor %}
{% if not read_only %}
<div class="group navform wat-cf">
<button class="pure-button mayan-button" type="submit" name="submit">
<span class="famfam active famfam-{{ submit_icon_famfam|default:'tick' }}"></span>
{% if submit_label %}{{ submit_label }}{% else %}{% if object %}{% trans 'Save' %}{% else %}{% trans 'Submit' %}{% endif %}{% endif %}
</button>
{% if previous %}
&nbsp;<a href="#header" onclick='{% if previous %}window.location.replace("{{ previous }}");{% else %}history.go(-1);{% endif %}' class="pure-button mayan-button">
<span class="famfam active famfam-cross"></span>{% if cancel_label %}{{ cancel_label }}{% else %}{% trans 'Cancel' %}{% endif %}
</a>
{% endif %}
</div>
{% endif %}
</form>
</div>
</div>
@@ -1,19 +0,0 @@
{% if side_bar %}
<div class="block">
<h3>{{ title }}</h3>
<div class="content">
{% else %}
<div class="content">
<h2 class="title">{{ title }}</h2>
<div class="inner">
{% endif %}
{% if content %}
<p>{{ content }}</p>
{% endif %}
{% for paragraph in paragraphs %}
<p>{{ paragraph }}</p>
{% endfor %}
</div></div>
@@ -1,7 +0,0 @@
{% extends 'main/base.html' %}
{% block title %} :: {{ title }}{% endblock %}
{% block content %}
{% include 'main/generic_subtemplate.html' %}
{% endblock %}
@@ -1,29 +0,0 @@
{% extends 'main/base.html' %}
{% load i18n %}
{% load styling %}
{% add_classes_to_form form %}
{% block content %}
{{ wizard.management_form }}
{% with step_title as title %}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% with wizard.form as form %}
{% with 'true' as form_display_mode_table %}
{% include 'main/generic_form_subtemplate.html' %}
{% endwith %}
{% endwith %}
{% else %}
{% with wizard.form as form %}
{% include 'main/generic_form_subtemplate.html' %}
{% endwith %}
{% endif %}
{% endwith %}
{% endblock %}
-33
View File
@@ -1,33 +0,0 @@
{% extends 'main/base.html' %}
{% load i18n %}
{% load static %}
{% load project_tags %}
{% block stylesheets %}
{% endblock %}
{% block content %}
<div class="pure-g tc">
{% with 'navigation/large_button_link.html' as link_template %}
{% with 8 as button_link_columns %}
{% include 'generic_navigation.html' %}
{% endwith %}
{% endwith %}
<div class="pure-u-24-24">
<form class="pure-form" id="home-form-search" method="get" action="{% url 'main:home' %}">
<fieldset>
<legend></legend>
<input type="text" name="q" placeholder="{% trans 'Space separated terms' %}">
&nbsp;<button type="submit" name="submit" class="pure-button mayan-button"><span class="famfam active famfam-zoom"></span>{% trans 'Search' %}</button>
&nbsp;<a href="{% url 'search:search_advanced' %}">{% trans 'Advanced search' %} </a>
</fieldset>
</form>
</div>
</div>
{% if query_string %}
{% include 'main/generic_list_subtemplate.html' %}
{% endif %}
{% endblock %}
-79
View File
@@ -1,79 +0,0 @@
{% extends 'main/base.html' %}
{% load i18n %}
{% load static %}
{% load autoadmin_tags %}
{% load project_tags %}
{% load theme_tags %}
{% block web_theme_head %}
{% if user.is_authenticated %}
{% get_login_redirect_url %}
<meta http-equiv="REFRESH" content="5;url={{ LOGIN_REDIRECT_URL }}">
{% endif %}
{% endblock %}
{% block html_title %}{% project_name %} :: {% trans 'Login' %}{% endblock %}
{% if user.is_authenticated %}
{% block web_theme_content %}
{% get_login_redirect_url %}
<div class="content">
<h2 class="title">{% trans 'You are already logged in' %}</h2>
<div class="inner">
<p>
{% trans 'Redirecting you to the website entry point in 5 seconds.' %}
<p>
</p>
{% blocktrans %}Or click <a href="{{ LOGIN_REDIRECT_URL }}">here</a> if redirection doesn't work.{% endblocktrans %}
</p>
</div>
</div>
{% endblock %}
{% else %}
{% block content_plain %}
{% auto_admin_properties %}
{% if auto_admin_properties.account %}
<div id="box">
<div class="block" id="block-login">
<h2>{% trans "First time login" %}</h2>
<div class="content login">
<p>{% trans 'You have just finished installing <strong>Mayan EDMS</strong>, congratulations!' %}</p>
<p>{% trans 'Login using the following credentials:' %}</p>
<p>{% blocktrans with auto_admin_properties.account as account %}Username: <strong>{{ account }}</strong>{% endblocktrans %}</p>
<p>{% blocktrans with auto_admin_properties.account.email as email %}Email: <strong>{{ email }}</strong>{% endblocktrans %}</p>
<p>{% blocktrans with auto_admin_properties.password as password %}Password: <strong>{{ password }}</strong>{% endblocktrans %}</p>
<p>{% trans 'Be sure to change the password to increase security and to disable this message.' %}</p>
</div>
</div>
</div>
{% endif %}
<div id="box">
<h1>{% project_name %}</h1>
<div class="block" id="block-login">
<h2>{% trans 'Login' %}</h2>
<div class="content login">
<form action="." method="post" class="form login">{% csrf_token %}
<div class="group wat-cf">
{% include 'main/generic_form_instance.html' %}
<input type="hidden" name="next" value="{{ next|escape }}" />
<div class="group navform wat-cf">
<button class="button" type="submit">
<img src="{% static 'web_theme_media/images/icons/key.png' %}" alt="Save" /> {% trans 'Login' %}
</button>
</div>
</form>
</div>
</div>
</div>
{% endblock %}
{% endif %}
{% block web_theme_stylesheets %}
<style>
input#id_email { width: 100%; }
</style>
{% endblock web_theme_stylesheets %}
{% block project_name %}{% endblock %}
@@ -1,9 +0,0 @@
{% extends 'main/base.html' %}
{% load i18n %}
{% block title %} :: {% trans 'Password change' %}{% endblock %}
{% block content %}
<h2>{% trans 'Your password has been successfully changed.' %}</h2>
{% endblock %}
@@ -1,7 +0,0 @@
{% extends 'main/generic_form.html' %}
{% load i18n %}
{% block title %} :: {% trans 'Password change' %}{% endblock %}
{% block form_title %}{% trans 'Password change' %}{% endblock %}
@@ -1,13 +0,0 @@
{% extends 'main/base.html' %}
{% block title %} :: {{ title }}{% endblock %}
{% block content %}
{% for block in blocks %}
{% with block.title as title %}
{% with block.paragraphs as paragraphs %}
{% include 'main/generic_subtemplate.html' %}
{% endwith %}
{% endwith %}
{% endfor %}
{% endblock %}
-22
View File
@@ -1,22 +0,0 @@
{% extends 'main/base.html' %}
{% block title %} :: {{ title }}{% endblock %}
{% block content %}
{% for key, value in blocks.items %}
<div class="content">
<h2 class="title">{{ value.title }}</h2>
<div class="inner">
<p>
<ul class="undecorated_list">
{% for link in value.links %}
<li>
{% include 'generic_subnavigation.html' %}{% if link.description %} - {{ link.description }}{% endif %}
</li>
{% endfor %}
</ul>
</p>
</div></div>
{% endfor %}
{% endblock %}
@@ -1,10 +0,0 @@
{% load static %}
<div class="pure-u-{{ button_link_columns|default:4 }}-24">
<a class="pure-button mayan-button-big" href="{% url link.view %}">
<p>
<img src="{% static link.icon %}"><br>
{{ link.text }}
</p>
</a>
</div>
@@ -1,33 +0,0 @@
{% if is_paginated %}
{% load i18n %}
<div class="actions-bar wat-cf">
<div class="pagination">
{% if page_obj.has_previous %}
<a class="prev_page" href="?page={{ page_obj.previous_page_number }}{{ getvars }}">&lsaquo;&lsaquo; {% trans "Previous" %}</a>
{% else %}
<span class="disabled prev_page">&lsaquo;&lsaquo; {% trans "Previous" %}</span>
{% endif %}
{% for page in pages %}
{% if page %}
{% ifequal page page_obj.number %}
<span class='current'>{{ page }}</span>
{% else %}
<a href="?page={{ page }}{{ getvars }}{{ hashtag }}">{{ page }}</a>
{% endifequal %}
{% else %}
<span class="disabled">...</span>
{% endif %}
{% endfor %}
{% if page_obj.has_next %}
<a class="next_page" href="?page={{ page_obj.next_page_number }}{{ getvars }}">{% trans "Next" %} &rsaquo;&rsaquo;</a>
{% else %}
<span class='disabled next-page'>{% trans "Next" %} &rsaquo;&rsaquo;</span>
{% endif %}
</div>
</div>
{% endif %}
+1 -1
View File
@@ -11,5 +11,5 @@ urlpatterns = patterns('main.views',
)
urlpatterns += patterns('',
(r'^favicon\.ico$', RedirectView.as_view(url=static('main/images/favicon.ico'))),
(r'^favicon\.ico$', RedirectView.as_view(url=static('appearance/images/favicon.ico'))),
)
+3 -3
View File
@@ -32,7 +32,7 @@ def home(request):
'title': _('Results'),
})
return render_to_response('main/home.html', context, context_instance=RequestContext(request))
return render_to_response('appearance/home.html', context, context_instance=RequestContext(request))
def maintenance_menu(request):
@@ -50,14 +50,14 @@ def maintenance_menu(request):
except PermissionDenied:
pass
return render_to_response('main/tools.html', {
return render_to_response('appearance/tools.html', {
'blocks': user_tools,
'title': _('Maintenance menu')
}, context_instance=RequestContext(request))
def diagnostics_view(request):
return render_to_response('main/diagnostics.html', {
return render_to_response('appearance/diagnostics.html', {
'blocks': diagnostics,
'title': _('Diagnostics')
}, context_instance=RequestContext(request))