From c59a2a69fb38b92b6c45bcf7431d2b1a3c5dce3c Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 23 Oct 2010 19:46:20 -0400 Subject: added grappelli, filebrowser, chunks and tagging to lcal repo --- lib/filebrowser/templates/filebrowser/append.html | 12 ++ .../templates/filebrowser/custom_field.html | 26 ++++ .../templates/filebrowser/include/_response.html | 1 + .../templates/filebrowser/include/breadcrumbs.html | 24 ++++ .../templates/filebrowser/include/filelisting.html | 136 ++++++++++++++++++ .../templates/filebrowser/include/filter.html | 27 ++++ .../templates/filebrowser/include/paginator.html | 28 ++++ .../templates/filebrowser/include/search.html | 31 ++++ .../templates/filebrowser/include/tableheader.html | 32 +++++ .../templates/filebrowser/include/toolbar.html | 36 +++++ lib/filebrowser/templates/filebrowser/index.html | 143 +++++++++++++++++++ lib/filebrowser/templates/filebrowser/makedir.html | 45 ++++++ lib/filebrowser/templates/filebrowser/rename.html | 43 ++++++ lib/filebrowser/templates/filebrowser/upload.html | 113 +++++++++++++++ .../templates/filebrowser/versions.html | 156 +++++++++++++++++++++ 15 files changed, 853 insertions(+) create mode 100644 lib/filebrowser/templates/filebrowser/append.html create mode 100644 lib/filebrowser/templates/filebrowser/custom_field.html create mode 100644 lib/filebrowser/templates/filebrowser/include/_response.html create mode 100644 lib/filebrowser/templates/filebrowser/include/breadcrumbs.html create mode 100644 lib/filebrowser/templates/filebrowser/include/filelisting.html create mode 100644 lib/filebrowser/templates/filebrowser/include/filter.html create mode 100644 lib/filebrowser/templates/filebrowser/include/paginator.html create mode 100644 lib/filebrowser/templates/filebrowser/include/search.html create mode 100644 lib/filebrowser/templates/filebrowser/include/tableheader.html create mode 100644 lib/filebrowser/templates/filebrowser/include/toolbar.html create mode 100644 lib/filebrowser/templates/filebrowser/index.html create mode 100644 lib/filebrowser/templates/filebrowser/makedir.html create mode 100644 lib/filebrowser/templates/filebrowser/rename.html create mode 100644 lib/filebrowser/templates/filebrowser/upload.html create mode 100644 lib/filebrowser/templates/filebrowser/versions.html (limited to 'lib/filebrowser/templates') diff --git a/lib/filebrowser/templates/filebrowser/append.html b/lib/filebrowser/templates/filebrowser/append.html new file mode 100644 index 0000000..a96b386 --- /dev/null +++ b/lib/filebrowser/templates/filebrowser/append.html @@ -0,0 +1,12 @@ +{% load i18n %} + +
+ + + + + + + +
{% trans "FileBrowser" %}
{% trans "FileBrowser" %}
+
\ No newline at end of file diff --git a/lib/filebrowser/templates/filebrowser/custom_field.html b/lib/filebrowser/templates/filebrowser/custom_field.html new file mode 100644 index 0000000..45c3b70 --- /dev/null +++ b/lib/filebrowser/templates/filebrowser/custom_field.html @@ -0,0 +1,26 @@ +{% load fb_versions %} + + {% comment %}{% endcomment %} + +{% ifequal value.filetype "Image" %} +

+ + + +

+{% else %} + +{% endifequal %} +{% if final_attrs.DEBUG %} +

+ Path {{ value.path }}
+ FileType {{ value.filetype }}

+ Directory {{ final_attrs.directory }}
+ Extensions {{ final_attrs.extensions }}
+ Format {{ final_attrs.format }} +

+{% endif %} \ No newline at end of file diff --git a/lib/filebrowser/templates/filebrowser/include/_response.html b/lib/filebrowser/templates/filebrowser/include/_response.html new file mode 100644 index 0000000..e7dff2c --- /dev/null +++ b/lib/filebrowser/templates/filebrowser/include/_response.html @@ -0,0 +1 @@ +{{ response }} \ No newline at end of file diff --git a/lib/filebrowser/templates/filebrowser/include/breadcrumbs.html b/lib/filebrowser/templates/filebrowser/include/breadcrumbs.html new file mode 100644 index 0000000..c6f539d --- /dev/null +++ b/lib/filebrowser/templates/filebrowser/include/breadcrumbs.html @@ -0,0 +1,24 @@ +{% load i18n fb_tags %} + + \ No newline at end of file diff --git a/lib/filebrowser/templates/filebrowser/include/filelisting.html b/lib/filebrowser/templates/filebrowser/include/filelisting.html new file mode 100644 index 0000000..f3ec09d --- /dev/null +++ b/lib/filebrowser/templates/filebrowser/include/filelisting.html @@ -0,0 +1,136 @@ +{% load i18n adminmedia fb_tags fb_versions %} + +{% for file in page.object_list %} + + + + {% if query.pop == "1" and results_var.select_total %} + + {% selectable file.filetype query.type %} + {% if selectable %} + + {% else %} +   + {% endif %} + + {% endif %} + + + {% if query.pop == "2" and results_var.select_total %} + + {% selectable file.filetype query.type %} + {% if selectable %} + + {% else %} +   + {% endif %} + + {% endif %} + + + {% if query.pop == "3" and results_var.select_total %} + + {% selectable file.filetype query.type %} + {% if selectable %} + + {% else %} +   + {% endif %} + + {% endif %} + + + + {% comment %}{% endcomment %} + {{ file.filetype }} + + + + + {% if file.filetype == "Image" %} + + {% endif %} + + + + {% if file.filetype == "Folder" %} + {{ file.filename }} + {% else %} + + {{ file.filename }} + {% if file.dimensions %} +
{{ file.dimensions.0 }} x {{ file.dimensions.1 }} px
+ {% endif %} + {% comment %} + {% if file.filetype == "Image" %} + {% trans 'Preview' %} +
+ {% trans 'View Image' %} +
+ {% endif %} + {% endcomment %} + {% if results_var.images_total and settings_var.ADMIN_VERSIONS and file.filetype == "Image" %} + {% trans 'Versions' %} + {% endif %} + + {% endif %} + + + {% if q %}{{ file.folder }}{% endif %} + + + {{ file.filesize|filesizeformat }} + + + {{ file.datetime|date:"N j, Y" }} + + + +
+   + +
+ + + + {% if settings_var.DEBUG %} + + Filename {{ file.filename }}
+ Filetype {{ file.filetype }}
+ Filesize {{ file.filesize }}
+ Extension {{ file.extension }}
+ Date {{ file.date }}
+ Datetime Object {{ file.datetime }}

+ Relative Path {{ file.path_relative }}
+ Full Path {{ file.path_full }}
+ Relative URL {{ file.url_relative }}
+ Full URL {{ file.url_full }}

+ URL for FileBrowseField {{ file.url_save }}
+ Thumbnail URL {{ file.url_thumbnail }} + {% if file.filetype == "Image" %} +

+ Dimensions {{ file.dimensions }}
+ Width {{ file.width }}
+ Height {{ file.height }}
+ Orientation {{ file.orientation }} + {% endif %} + {% if file.filetype == "Folder" %} +

+ Is Empty {{ file.is_empty }} + {% endif %} + + {% endif %} + + +{% endfor %} + + \ No newline at end of file diff --git a/lib/filebrowser/templates/filebrowser/include/filter.html b/lib/filebrowser/templates/filebrowser/include/filter.html new file mode 100644 index 0000000..fd7966a --- /dev/null +++ b/lib/filebrowser/templates/filebrowser/include/filter.html @@ -0,0 +1,27 @@ +{% load i18n fb_tags %} +
+
+ {% trans 'Filter' %} +
+
+ + +
+
+ + +
+
+
+
\ No newline at end of file diff --git a/lib/filebrowser/templates/filebrowser/include/paginator.html b/lib/filebrowser/templates/filebrowser/include/paginator.html new file mode 100644 index 0000000..b35e4fb --- /dev/null +++ b/lib/filebrowser/templates/filebrowser/include/paginator.html @@ -0,0 +1,28 @@ +{% load i18n fb_tags %} + \ No newline at end of file diff --git a/lib/filebrowser/templates/filebrowser/include/search.html b/lib/filebrowser/templates/filebrowser/include/search.html new file mode 100644 index 0000000..bff5955 --- /dev/null +++ b/lib/filebrowser/templates/filebrowser/include/search.html @@ -0,0 +1,31 @@ +{% load i18n adminmedia fb_tags %} +
+

{% blocktrans count cl.result_count as counter %}1 result{% plural %}{{ counter }} results{% endblocktrans %}

+ {% blocktrans with cl.full_result_count as full_result_count %}{{ full_result_count }} total{% endblocktrans %} + {% blocktrans with cl.full_result_count as full_result_count %}Clear Restrictions{% endblocktrans %} +
+

{% trans 'Search' %}xx

+
+ +
+ \ No newline at end of file diff --git a/lib/filebrowser/templates/filebrowser/include/tableheader.html b/lib/filebrowser/templates/filebrowser/include/tableheader.html new file mode 100644 index 0000000..c58cd0c --- /dev/null +++ b/lib/filebrowser/templates/filebrowser/include/tableheader.html @@ -0,0 +1,32 @@ +{% load i18n fb_tags %} + + + + {% if query.pop == "1" and results_var.select_total %}{% endif %} + {% if query.pop == "2" and results_var.select_total %}{% endif %} + {% if query.pop == "3" and results_var.select_total %}{% endif %} + + {% ifequal query.o "filetype_checked" %}{% trans "Type" %}{% endifequal %} + {% ifnotequal query.o "filetype_checked" %}{% trans "Type" %}{% endifnotequal %} + + {% trans "Thumbnail" %} + + {% ifequal query.o "filename_lower" %}{% trans "Filename" %}{% endifequal %} + {% ifnotequal query.o "filename_lower" %}{% trans "Filename" %}{% endifnotequal %} + + {% if q %} + {% ifequal query.o 'folder' %}{% trans 'Folder' %}{% endifequal %} + {% ifnotequal query.o 'folder' %}{% trans 'Folder' %}{% endifnotequal %} + {% endif %} + + {% ifequal query.o "filesize" %}{% trans "Size" %}{% endifequal %} + {% ifnotequal query.o "filesize" %}{% trans "Size" %}{% endifnotequal %} + + {% ifequal query.o "date" %}{% trans "Date" %}{% endifequal %} + {% ifnotequal query.o "date" %}{% trans "Date" %}{% endifnotequal %} + +   + + {% if settings_var.DEBUG %}Debug{% endif %} + + \ No newline at end of file diff --git a/lib/filebrowser/templates/filebrowser/include/toolbar.html b/lib/filebrowser/templates/filebrowser/include/toolbar.html new file mode 100644 index 0000000..99b31aa --- /dev/null +++ b/lib/filebrowser/templates/filebrowser/include/toolbar.html @@ -0,0 +1,36 @@ +{% load i18n adminmedia fb_tags %} + +{% if results_var.results_total %} +{% if query.filter_type or query.filter_date or query.q %} +
+

{% trans 'Results' %}

+
+

{% blocktrans count results_var.results_current as counter %}{{ counter }} result{% plural %}{{ counter }} results{% endblocktrans %}

+

{% blocktrans with results_var.results_total as full_result_count %}{{ full_result_count }} total{% endblocktrans %}

+
+
+{% endif %} +{% endif %} + + + \ No newline at end of file diff --git a/lib/filebrowser/templates/filebrowser/index.html b/lib/filebrowser/templates/filebrowser/index.html new file mode 100644 index 0000000..17896c7 --- /dev/null +++ b/lib/filebrowser/templates/filebrowser/index.html @@ -0,0 +1,143 @@ +{% extends "admin/base_site.html" %} + + +{% load i18n adminmedia fb_tags fb_pagination %} + + +{% block stylesheets %} + {{ block.super }} + {# #} + +{% endblock %} + + +{% block javascripts %} + {{ block.super }} + {% ifequal query.pop '1' %} + + {% endifequal %} + {% ifequal query.pop '2' %} + + + {% if query.mce_rdomain %}{% endif %} + {% endifequal %} + {% ifequal query.pop '3' %} + + {% endifequal %} + {{ media }} + + + +{% endblock %} + + +{% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %} + +{% block object-tools %} + +{% endblock %} + + +{% block content %} +
+ + {% pagination %} + + {% include "filebrowser/include/filter.html" %} + + +
+
+
+ + {% if results_var.results_current %} +
+ + {% include "filebrowser/include/tableheader.html" %} + + {% include "filebrowser/include/filelisting.html" %} + +
+
+ {% endif %} + + {% pagination %} +
+ +{% endblock %} diff --git a/lib/filebrowser/templates/filebrowser/makedir.html b/lib/filebrowser/templates/filebrowser/makedir.html new file mode 100644 index 0000000..3595514 --- /dev/null +++ b/lib/filebrowser/templates/filebrowser/makedir.html @@ -0,0 +1,45 @@ +{% extends "admin/base_site.html" %} + + +{% load i18n adminmedia fb_tags fb_csrf %} + + +{% block stylesheets %} + {{ block.super }} + + +{% endblock %} + + +{% block bodyclass %}change-form filebrowser{% if query.pop %} popup{% endif %}{% endblock %} +{% block content-class %}content-flexible{% endblock %} + + +{% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %} + + +{% block content %} +
+
{% fb_csrf_token %} + {% if form.errors %}

{% trans 'Please correct the following errors.' %}

{% endif %} +
+
+
+
+ {{ form.dir_name }} + {% if form.dir_name.errors %}
    {{ form.dir_name.errors }}
{% endif %} +

+ {{ form.dir_name.help_text|safe }} + {% if settings_var.CONVERT_FILENAME %}
{% trans "The Name will be converted to lowercase. Spaces will be replaced with underscores." %}{% endif %} +

+
+
+
+ +
+
+{% endblock %} \ No newline at end of file diff --git a/lib/filebrowser/templates/filebrowser/rename.html b/lib/filebrowser/templates/filebrowser/rename.html new file mode 100644 index 0000000..a3ecf77 --- /dev/null +++ b/lib/filebrowser/templates/filebrowser/rename.html @@ -0,0 +1,43 @@ +{% extends "admin/base_site.html" %} + + +{% load i18n adminmedia fb_tags fb_csrf %} + + +{% block stylesheets %} + {{ block.super }} + + +{% endblock %} + + +{% block bodyclass %}change-form filebrowser{% if query.pop %} popup{% endif %}{% endblock %} +{% block content-class %}content-flexible{% endblock %} + + +{% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %} + + +{% block content %} +
+
{% fb_csrf_token %} + {% if form.errors %}

{% trans 'Please correct the following errors.' %}

{% endif %} +
+
+
+
+ {{ form.name }} + {% if file_extension %}{{ file_extension }}{% endif %} + {% if form.name.errors %}
    {{ form.name.errors }}
{% endif %} + {% if form.name.help_text %}

{{ form.name.help_text|safe }}

{% endif %} +
+
+
+ +
+
+{% endblock %} \ No newline at end of file diff --git a/lib/filebrowser/templates/filebrowser/upload.html b/lib/filebrowser/templates/filebrowser/upload.html new file mode 100644 index 0000000..aee862a --- /dev/null +++ b/lib/filebrowser/templates/filebrowser/upload.html @@ -0,0 +1,113 @@ +{% extends "admin/base_site.html" %} + + +{% load i18n adminmedia fb_tags %} + + +{% block stylesheets %} + {{ block.super }} + + + +{% endblock %} + + +{% block javascripts %} + {{ block.super }} + + + + + + + +{% endblock %} + + +{% block bodyclass %}change-form filebrowser{% if query.pop %} popup{% endif %}{% endblock %} +{% block content-class %}content-flexible{% endblock %} + + +{% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %} + + +{% block content %} +
+
+
+
+ +
+
+
+

{% trans "Help" %}

+
+ {% for extension in settings_var.EXTENSIONS.items %} + {% ifnotequal extension.0 'Folder' %} +
+

{{ extension.0|safe }} ({{ extension.1|join:", "|safe }})


+ {% endifnotequal %} + {% endfor %} +
+
+
+

{{ settings_var.MAX_UPLOAD_SIZE|filesizeformat }}


+
+ {% if settings_var.CONVERT_FILENAME %} +
+

+ {% trans "The Name will be converted to lowercase. Spaces will be replaced with underscores." %} +


+
+ {% endif %} +
+ +
+
+{% endblock %} diff --git a/lib/filebrowser/templates/filebrowser/versions.html b/lib/filebrowser/templates/filebrowser/versions.html new file mode 100644 index 0000000..f82b15c --- /dev/null +++ b/lib/filebrowser/templates/filebrowser/versions.html @@ -0,0 +1,156 @@ +{% extends "admin/base_site.html" %} + + +{% load i18n adminmedia fb_tags fb_versions %} + + +{% block stylesheets %} + {{ block.super }} + + + {% if query.pop %} + + {% endif %} +{% endblock %} + + +{% block javascripts %} + {{ block.super }} + + {% ifequal query.pop '1' %} + + + {% endifequal %} + + {% ifequal query.pop '2' %} + + + + {% if query.mce_rdomain %}{% endif %} + {% endifequal %} + + {% ifequal query.pop '3' %} + + + {% endifequal %} + + {{ media }} +{% endblock %} + + +{% block bodyclass %}change-list filebrowser{% if query.pop %} popup{% endif %}{% endblock %} +{% block content-class %}content-flexible{% endblock %} + + +{% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %} + + +{% block content %} +
+
+ + + + + + {% ifequal query.pop '1' %}{% endifequal %} + {% ifequal query.pop '2' %}{% endifequal %} + {% ifequal query.pop '3' %}{% endifequal %} + + + + + + + + + {% if settings_var.DEBUG %}{% endif %} + + + + + {% for version in settings_var.ADMIN_VERSIONS %} + {% version_object original version as image_version %} + + + + {% ifequal query.pop '1' %} + + {% endifequal %} + + + {% ifequal query.pop '2' %} + + {% endifequal %} + + + {% ifequal query.pop '3' %} + + {% endifequal %} + + + + + + + + + {% if settings_var.DEBUG %} + + {% endif %} + + + {% endfor %} + +
{% trans 'Name' %}{% trans 'Image Version' %}{% trans "Debug" %}
+ {% selectable image_version.filetype query.type %} + {% if selectable %} + + {% else %} +   + {% endif %} + + {% selectable image_version.filetype query.type %} + {% if selectable %} + + {% else %} +   + {% endif %} + + {% selectable image_version.filetype query.type %} + {% if selectable %} + + {% else %} +   + {% endif %} + + {% version_setting version %} + {{ version_setting.verbose_name }}
+ {% if version_setting.width %}{% trans "Width" %}: {{ version_setting.width }}px
{% endif %} + {% if version_setting.height %}{% trans "Height" %}: {{ version_setting.height }}px{% endif %} +
+ Filename {{ image_version.filename }}
+ Filetype {{ image_version.filetype }}
+ Filesize {{ image_version.filesize }}
+ Extension {{ image_version.extension }}
+ Date {{ image_version.date }}
+ Datetime Object {{ image_version.datetime }}

+ + Relative Path {{ image_version.path_relative }}
+ Full Path {{ image_version.path_full }}
+ Relative URL {{ image_version.url_relative }}
+ Full URL {{ image_version.url_full }}

+ + URL for FileBrowseField {{ image_version.url_save }}
+ Thumbnail URL {{ image_version.url_thumbnail }}

+ + Dimensions {{ image_version.dimensions }}
+ Width {{ image_version.width }}
+ Height {{ image_version.height }}
+ Orientation {{ image_version.orientation }} +
+
+
+{% endblock %} \ No newline at end of file -- cgit v1.2.3-70-g09d2