diff --git a/configstore/.idea/configstore.iml b/configstore/.idea/configstore.iml new file mode 100644 index 0000000..b218215 --- /dev/null +++ b/configstore/.idea/configstore.iml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/configstore/.idea/misc.xml b/configstore/.idea/misc.xml new file mode 100644 index 0000000..4aefe04 --- /dev/null +++ b/configstore/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/configstore/.idea/modules.xml b/configstore/.idea/modules.xml new file mode 100644 index 0000000..da413d4 --- /dev/null +++ b/configstore/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/configstore/.idea/vcs.xml b/configstore/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/configstore/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/configstore/.idea/workspace.xml b/configstore/.idea/workspace.xml new file mode 100644 index 0000000..4d29349 --- /dev/null +++ b/configstore/.idea/workspace.xml @@ -0,0 +1,777 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + __unicode__ + iteritems + + + __str__ + items + + + + + + + + + + + true + DEFINITION_ORDER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+{% if is_popup %}{% endif %} +{% if form.errors %} +

+ {% if form.errors.items|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %} +

+{% endif %} + +

{% blocktrans with username=original %}Enter a new password for the user {{ username }}.{% endblocktrans %}

+ +
+ +
+ {{ form.password1.errors }} + {{ form.password1.label_tag }} {{ form.password1 }} + {% if form.password1.help_text %} +
{{ form.password1.help_text|safe }}
+ {% endif %} +
+ +
+ {{ form.password2.errors }} + {{ form.password2.label_tag }} {{ form.password2 }} + {% if form.password2.help_text %} +
{{ form.password2.help_text|safe }}
+ {% endif %} +
+ +
+ +
+ +
+ +
+ +{% endblock %} diff --git a/configstore/templates/admin/base.html b/configstore/templates/admin/base.html new file mode 100644 index 0000000..c4c7ca8 --- /dev/null +++ b/configstore/templates/admin/base.html @@ -0,0 +1,93 @@ +{% load i18n static %} +{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %} + + +{% block title %}{% endblock %} + +{% block extrastyle %}{% endblock %} +{% if LANGUAGE_BIDI %}{% endif %} +{% block extrahead %}{% endblock %} +{% block responsive %} + + + {% if LANGUAGE_BIDI %}{% endif %} +{% endblock %} +{% block blockbots %}{% endblock %} + +{% load i18n %} + + + + +
+ + {% if not is_popup %} + + + + {% block breadcrumbs %} + + {% endblock %} + {% endif %} + + {% block messages %} + {% if messages %} +
    {% for message in messages %} + {{ message|capfirst }} + {% endfor %}
+ {% endif %} + {% endblock messages %} + + +
+ {% block pretitle %}{% endblock %} + {% block content_title %}{% if title %}

{{ title }}

{% endif %}{% endblock %} + {% block content %} + {% block object-tools %}{% endblock %} + {{ content }} + {% endblock %} + {% block sidebar %}{% endblock %} +
+
+ + + {% block footer %}{% endblock %} +
+ + + + diff --git a/configstore/templates/admin/base_site.html b/configstore/templates/admin/base_site.html new file mode 100644 index 0000000..cae0a69 --- /dev/null +++ b/configstore/templates/admin/base_site.html @@ -0,0 +1,9 @@ +{% extends "admin/base.html" %} + +{% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %} + +{% block branding %} +

{{ site_header|default:_('Django administration') }}

+{% endblock %} + +{% block nav-global %}{% endblock %} diff --git a/configstore/templates/admin/change_form.html b/configstore/templates/admin/change_form.html new file mode 100644 index 0000000..fd0b130 --- /dev/null +++ b/configstore/templates/admin/change_form.html @@ -0,0 +1,85 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_urls static admin_modify %} + +{% block extrahead %}{{ block.super }} + +{{ media }} +{% endblock %} + +{% block extrastyle %}{{ block.super }}{% endblock %} + +{% block coltype %}colM{% endblock %} + +{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-form{% endblock %} + +{% if not is_popup %} +{% block breadcrumbs %} + +{% endblock %} +{% endif %} + +{% block content %}
+{% block object-tools %} +{% if change %}{% if not is_popup %} + +{% endif %}{% endif %} +{% endblock %} +
{% csrf_token %}{% block form_top %}{% endblock %} +
+{% if is_popup %}{% endif %} +{% if to_field %}{% endif %} +{% if save_on_top %}{% block submit_buttons_top %}{% submit_row %}{% endblock %}{% endif %} +{% if errors %} +

+ {% if errors|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %} +

+ {{ adminform.form.non_field_errors }} +{% endif %} + +{% block field_sets %} +{% for fieldset in adminform %} + {% include "admin/includes/fieldset.html" %} +{% endfor %} +{% endblock %} + +{% block after_field_sets %}{% endblock %} + +{% block inline_field_sets %} +{% for inline_admin_formset in inline_admin_formsets %} + {% include inline_admin_formset.opts.template %} +{% endfor %} +{% endblock %} + +{% block after_related_objects %}{% endblock %} + +{% block submit_buttons_bottom %}{% submit_row %}{% endblock %} + +{% block admin_change_form_document_ready %} + +{% endblock %} + +{# JavaScript for prepopulated fields #} +{% prepopulated_fields_js %} + +
+
+{% endblock %} diff --git a/configstore/templates/admin/change_list.html b/configstore/templates/admin/change_list.html new file mode 100644 index 0000000..e0af704 --- /dev/null +++ b/configstore/templates/admin/change_list.html @@ -0,0 +1,89 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_urls static admin_list %} + +{% block extrastyle %} + {{ block.super }} + + {% if cl.formset %} + + {% endif %} + {% if cl.formset or action_form %} + + {% endif %} + {{ media.css }} + {% if not actions_on_top and not actions_on_bottom %} + + {% endif %} +{% endblock %} + +{% block extrahead %} +{{ block.super }} +{{ media.js }} +{% endblock %} + +{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-list{% endblock %} + +{% if not is_popup %} +{% block breadcrumbs %} + +{% endblock %} +{% endif %} + +{% block coltype %}flex{% endblock %} + +{% block content %} +
+ {% block object-tools %} + + {% endblock %} + {% if cl.formset.errors %} +

+ {% if cl.formset.total_error_count == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %} +

+ {{ cl.formset.non_form_errors }} + {% endif %} +
+ {% block search %}{% search_form cl %}{% endblock %} + {% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %} + + {% block filters %} + {% if cl.has_filters %} +
+

{% trans 'Filter' %}

+ {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %} +
+ {% endif %} + {% endblock %} + +
{% csrf_token %} + {% if cl.formset %} +
{{ cl.formset.management_form }}
+ {% endif %} + + {% block result_list %} + {% if action_form and actions_on_top and cl.show_admin_actions %}{% admin_actions %}{% endif %} + {% result_list cl %} + {% if action_form and actions_on_bottom and cl.show_admin_actions %}{% admin_actions %}{% endif %} + {% endblock %} + {% block pagination %}{% pagination cl %}{% endblock %} +
+
+
+{% endblock %} diff --git a/configstore/templates/admin/change_list_results.html b/configstore/templates/admin/change_list_results.html new file mode 100644 index 0000000..b3d7dd0 --- /dev/null +++ b/configstore/templates/admin/change_list_results.html @@ -0,0 +1,38 @@ +{% load i18n static %} +{% if result_hidden_fields %} +
{# DIV for HTML validation #} +{% for item in result_hidden_fields %}{{ item }}{% endfor %} +
+{% endif %} +{% if results %} +
+ + + +{% for header in result_headers %} +{% endfor %} + + + +{% for result in results %} +{% if result.form.non_field_errors %} + +{% endif %} +{% for item in result %}{{ item }}{% endfor %} +{% endfor %} + +
+ {% if header.sortable %} + {% if header.sort_priority > 0 %} +
+ + {% if num_sorted_fields > 1 %}{{ header.sort_priority }}{% endif %} + +
+ {% endif %} + {% endif %} +
{% if header.sortable %}{{ header.text|capfirst }}{% else %}{{ header.text|capfirst }}{% endif %}
+
+
{{ result.form.non_field_errors }}
+
+{% endif %} diff --git a/configstore/templates/admin/configstore/add_form.html b/configstore/templates/admin/configstore/add_form.html index 0dfe649..6a291b7 100644 --- a/configstore/templates/admin/configstore/add_form.html +++ b/configstore/templates/admin/configstore/add_form.html @@ -4,7 +4,7 @@ {% block content %}
{% block object-tools %} {% endblock %} -
{% block form_top %}{% endblock %} +{% block form_top %}{% endblock %}
{% if is_popup %}{% endif %} diff --git a/configstore/templates/admin/date_hierarchy.html b/configstore/templates/admin/date_hierarchy.html new file mode 100644 index 0000000..0058510 --- /dev/null +++ b/configstore/templates/admin/date_hierarchy.html @@ -0,0 +1,10 @@ +{% if show %} +
+
+
+{% endif %} diff --git a/configstore/templates/admin/delete_confirmation.html b/configstore/templates/admin/delete_confirmation.html new file mode 100644 index 0000000..2dedc84 --- /dev/null +++ b/configstore/templates/admin/delete_confirmation.html @@ -0,0 +1,52 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_urls static %} + +{% block extrahead %} + {{ block.super }} + {{ media }} + +{% endblock %} + +{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} delete-confirmation{% endblock %} + +{% block breadcrumbs %} + +{% endblock %} + +{% block content %} +{% if perms_lacking %} +

{% blocktrans with escaped_object=object %}Deleting the {{ object_name }} '{{ escaped_object }}' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}

+
    + {% for obj in perms_lacking %} +
  • {{ obj }}
  • + {% endfor %} +
+{% elif protected %} +

{% blocktrans with escaped_object=object %}Deleting the {{ object_name }} '{{ escaped_object }}' would require deleting the following protected related objects:{% endblocktrans %}

+
    + {% for obj in protected %} +
  • {{ obj }}
  • + {% endfor %} +
+{% else %} +

{% blocktrans with escaped_object=object %}Are you sure you want to delete the {{ object_name }} "{{ escaped_object }}"? All of the following related items will be deleted:{% endblocktrans %}

+ {% include "admin/includes/object_delete_summary.html" %} +

{% trans "Objects" %}

+
    {{ deleted_objects|unordered_list }}
+ {% csrf_token %} +
+ + {% if is_popup %}{% endif %} + {% if to_field %}{% endif %} + + {% trans "No, take me back" %} +
+ +{% endif %} +{% endblock %} diff --git a/configstore/templates/admin/delete_selected_confirmation.html b/configstore/templates/admin/delete_selected_confirmation.html new file mode 100644 index 0000000..6ae53fe --- /dev/null +++ b/configstore/templates/admin/delete_selected_confirmation.html @@ -0,0 +1,55 @@ +{% extends "admin/base_site.html" %} +{% load i18n l10n admin_urls static %} + +{% block extrahead %} + {{ block.super }} + {{ media }} + +{% endblock %} + +{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} delete-confirmation delete-selected-confirmation{% endblock %} + +{% block breadcrumbs %} + +{% endblock %} + +{% block content %} +{% if perms_lacking %} +

{% blocktrans %}Deleting the selected {{ objects_name }} would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}

+
    + {% for obj in perms_lacking %} +
  • {{ obj }}
  • + {% endfor %} +
+{% elif protected %} +

{% blocktrans %}Deleting the selected {{ objects_name }} would require deleting the following protected related objects:{% endblocktrans %}

+
    + {% for obj in protected %} +
  • {{ obj }}
  • + {% endfor %} +
+{% else %} +

{% blocktrans %}Are you sure you want to delete the selected {{ objects_name }}? All of the following objects and their related items will be deleted:{% endblocktrans %}

+ {% include "admin/includes/object_delete_summary.html" %} +

{% trans "Objects" %}

+ {% for deletable_object in deletable_objects %} +
    {{ deletable_object|unordered_list }}
+ {% endfor %} +
{% csrf_token %} +
+ {% for obj in queryset %} + + {% endfor %} + + + + {% trans "No, take me back" %} +
+
+{% endif %} +{% endblock %} diff --git a/configstore/templates/admin/edit_inline/stacked.html b/configstore/templates/admin/edit_inline/stacked.html new file mode 100644 index 0000000..65af259 --- /dev/null +++ b/configstore/templates/admin/edit_inline/stacked.html @@ -0,0 +1,25 @@ +{% load i18n admin_urls static %} +
+
+

{{ inline_admin_formset.opts.verbose_name_plural|capfirst }}

+{{ inline_admin_formset.formset.management_form }} +{{ inline_admin_formset.formset.non_form_errors }} + +{% for inline_admin_form in inline_admin_formset %}
+

{{ inline_admin_formset.opts.verbose_name|capfirst }}: {% if inline_admin_form.original %}{{ inline_admin_form.original }}{% if inline_admin_form.model_admin.show_change_link and inline_admin_form.model_admin.has_registered_model %} {% trans "Change" %}{% endif %} +{% else %}#{{ forloop.counter }}{% endif %} + {% if inline_admin_form.show_url %}{% trans "View on site" %}{% endif %} + {% if inline_admin_formset.formset.can_delete and inline_admin_form.original %}{{ inline_admin_form.deletion_field.field }} {{ inline_admin_form.deletion_field.label_tag }}{% endif %} +

+ {% if inline_admin_form.form.non_field_errors %}{{ inline_admin_form.form.non_field_errors }}{% endif %} + {% for fieldset in inline_admin_form %} + {% include "admin/includes/fieldset.html" %} + {% endfor %} + {% if inline_admin_form.needs_explicit_pk_field %}{{ inline_admin_form.pk_field.field }}{% endif %} + {{ inline_admin_form.fk_field.field }} +
{% endfor %} +
+
diff --git a/configstore/templates/admin/edit_inline/tabular.html b/configstore/templates/admin/edit_inline/tabular.html new file mode 100644 index 0000000..f04faad --- /dev/null +++ b/configstore/templates/admin/edit_inline/tabular.html @@ -0,0 +1,75 @@ +{% load i18n admin_urls static admin_modify %} +
+ +
diff --git a/configstore/templates/admin/filter.html b/configstore/templates/admin/filter.html new file mode 100644 index 0000000..cd88652 --- /dev/null +++ b/configstore/templates/admin/filter.html @@ -0,0 +1,8 @@ +{% load i18n %} +

{% blocktrans with filter_title=title %} By {{ filter_title }} {% endblocktrans %}

+ diff --git a/configstore/templates/admin/includes/fieldset.html b/configstore/templates/admin/includes/fieldset.html new file mode 100644 index 0000000..fce9966 --- /dev/null +++ b/configstore/templates/admin/includes/fieldset.html @@ -0,0 +1,29 @@ +
+ {% if fieldset.name %}

{{ fieldset.name }}

{% endif %} + {% if fieldset.description %} +
{{ fieldset.description|safe }}
+ {% endif %} + {% for line in fieldset %} +
+ {% if line.fields|length_is:'1' %}{{ line.errors }}{% endif %} + {% for field in line %} + + {% if not line.fields|length_is:'1' and not field.is_readonly %}{{ field.errors }}{% endif %} + {% if field.is_checkbox %} + {{ field.field }}{{ field.label_tag }} + {% else %} + {{ field.label_tag }} + {% if field.is_readonly %} +
{{ field.contents }}
+ {% else %} + {{ field.field }} + {% endif %} + {% endif %} + {% if field.field.help_text %} +
{{ field.field.help_text|safe }}
+ {% endif %} +
+ {% endfor %} +
+ {% endfor %} + diff --git a/configstore/templates/admin/includes/object_delete_summary.html b/configstore/templates/admin/includes/object_delete_summary.html new file mode 100644 index 0000000..6a8bf65 --- /dev/null +++ b/configstore/templates/admin/includes/object_delete_summary.html @@ -0,0 +1,7 @@ +{% load i18n %} +

{% trans "Summary" %}

+
    + {% for model_name, object_count in model_count %} +
  • {{ model_name|capfirst }}: {{ object_count }}
  • + {% endfor %} +
diff --git a/configstore/templates/admin/index.html b/configstore/templates/admin/index.html new file mode 100644 index 0000000..5a4b127 --- /dev/null +++ b/configstore/templates/admin/index.html @@ -0,0 +1,82 @@ +{% extends "admin/base_site.html" %} +{% load i18n static %} + +{% block extrastyle %}{{ block.super }}{% endblock %} + +{% block coltype %}colMS{% endblock %} + +{% block bodyclass %}{{ block.super }} dashboard{% endblock %} + +{% block breadcrumbs %}{% endblock %} + +{% block content %} +
+ +{% if app_list %} + {% for app in app_list %} +
+ + + {% for model in app.models %} + + {% if model.admin_url %} + + {% else %} + + {% endif %} + + {% if model.add_url %} + + {% else %} + + {% endif %} + + {% if model.admin_url %} + + {% else %} + + {% endif %} + + {% endfor %} +
+ {{ app.name }} +
{{ model.name }}{{ model.name }}{% trans 'Add' %} {% trans 'Change' %} 
+
+ {% endfor %} +{% else %} +

{% trans "You don't have permission to edit anything." %}

+{% endif %} +
+{% endblock %} + +{% block sidebar %} + +{% endblock %} diff --git a/configstore/templates/admin/invalid_setup.html b/configstore/templates/admin/invalid_setup.html new file mode 100644 index 0000000..7c71107 --- /dev/null +++ b/configstore/templates/admin/invalid_setup.html @@ -0,0 +1,13 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} + +{% block breadcrumbs %} + +{% endblock %} + +{% block content %} +

{% trans "Something's wrong with your database installation. Make sure the appropriate database tables have been created, and make sure the database is readable by the appropriate user." %}

+{% endblock %} diff --git a/configstore/templates/admin/login.html b/configstore/templates/admin/login.html new file mode 100644 index 0000000..397eadf --- /dev/null +++ b/configstore/templates/admin/login.html @@ -0,0 +1,66 @@ +{% extends "admin/base_site.html" %} +{% load i18n static %} + +{% block extrastyle %}{{ block.super }} +{{ form.media }} +{% endblock %} + +{% block bodyclass %}{{ block.super }} login{% endblock %} + +{% block usertools %}{% endblock %} + +{% block nav-global %}{% endblock %} + +{% block content_title %}{% endblock %} + +{% block breadcrumbs %}{% endblock %} + +{% block content %} +{% if form.errors and not form.non_field_errors %} +

+{% if form.errors.items|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %} +

+{% endif %} + +{% if form.non_field_errors %} +{% for error in form.non_field_errors %} +

+ {{ error }} +

+{% endfor %} +{% endif %} + +
+ +{% if user.is_authenticated %} +

+{% blocktrans trimmed %} + You are authenticated as {{ username }}, but are not authorized to + access this page. Would you like to login to a different account? +{% endblocktrans %} +

+{% endif %} + +
{% csrf_token %} +
+ {{ form.username.errors }} + {{ form.username.label_tag }} {{ form.username }} +
+
+ {{ form.password.errors }} + {{ form.password.label_tag }} {{ form.password }} + +
+ {% url 'admin_password_reset' as password_reset_url %} + {% if password_reset_url %} + + {% endif %} +
+ +
+
+ +
+{% endblock %} diff --git a/configstore/templates/admin/object_history.html b/configstore/templates/admin/object_history.html new file mode 100644 index 0000000..f512aa1 --- /dev/null +++ b/configstore/templates/admin/object_history.html @@ -0,0 +1,42 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_urls %} + +{% block breadcrumbs %} + +{% endblock %} + +{% block content %} +
+
+ +{% if action_list %} + + + + + + + + + + {% for action in action_list %} + + + + + + {% endfor %} + +
{% trans 'Date/time' %}{% trans 'User' %}{% trans 'Action' %}
{{ action.action_time|date:"DATETIME_FORMAT" }}{{ action.user.get_username }}{% if action.user.get_full_name %} ({{ action.user.get_full_name }}){% endif %}{{ action.get_change_message }}
+{% else %} +

{% trans "This object doesn't have a change history. It probably wasn't added via this admin site." %}

+{% endif %} +
+
+{% endblock %} diff --git a/configstore/templates/admin/pagination.html b/configstore/templates/admin/pagination.html new file mode 100644 index 0000000..fc1e600 --- /dev/null +++ b/configstore/templates/admin/pagination.html @@ -0,0 +1,12 @@ +{% load admin_list %} +{% load i18n %} +

+{% if pagination_required %} +{% for i in page_range %} + {% paginator_number cl i %} +{% endfor %} +{% endif %} +{{ cl.result_count }} {% if cl.result_count == 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endif %} +{% if show_all_url %}  {% trans 'Show all' %}{% endif %} +{% if cl.formset and cl.result_count %}{% endif %} +

diff --git a/configstore/templates/admin/popup_response.html b/configstore/templates/admin/popup_response.html new file mode 100644 index 0000000..6e4fac8 --- /dev/null +++ b/configstore/templates/admin/popup_response.html @@ -0,0 +1,11 @@ +{% load i18n static %} + + {% trans 'Popup closing...' %} + + + + diff --git a/configstore/templates/admin/prepopulated_fields_js.html b/configstore/templates/admin/prepopulated_fields_js.html new file mode 100644 index 0000000..1572339 --- /dev/null +++ b/configstore/templates/admin/prepopulated_fields_js.html @@ -0,0 +1,6 @@ +{% load l10n static %} + diff --git a/configstore/templates/admin/related_widget_wrapper.html b/configstore/templates/admin/related_widget_wrapper.html new file mode 100644 index 0000000..af17be8 --- /dev/null +++ b/configstore/templates/admin/related_widget_wrapper.html @@ -0,0 +1,29 @@ +{% load i18n static %} + diff --git a/configstore/templates/admin/search_form.html b/configstore/templates/admin/search_form.html new file mode 100644 index 0000000..1417c1f --- /dev/null +++ b/configstore/templates/admin/search_form.html @@ -0,0 +1,16 @@ +{% load i18n static %} +{% if cl.search_fields %} +
+{% endif %} diff --git a/configstore/templates/admin/submit_line.html b/configstore/templates/admin/submit_line.html new file mode 100644 index 0000000..d6db711 --- /dev/null +++ b/configstore/templates/admin/submit_line.html @@ -0,0 +1,11 @@ +{% load i18n admin_urls %} +
+{% if show_save %}{% endif %} +{% if show_delete_link %} + {% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %} + +{% endif %} +{% if show_save_as_new %}{% endif %} +{% if show_save_and_add_another %}{% endif %} +{% if show_save_and_continue %}{% endif %} +
diff --git a/configstore/templates/admin/widgets/clearable_file_input.html b/configstore/templates/admin/widgets/clearable_file_input.html new file mode 100644 index 0000000..71491fc --- /dev/null +++ b/configstore/templates/admin/widgets/clearable_file_input.html @@ -0,0 +1,6 @@ +{% if widget.is_initial %}

{{ widget.initial_text }}: {{ widget.value }}{% if not widget.required %} + + +{% endif %}
+{{ widget.input_text }}:{% endif %} +{% if widget.is_initial %}

{% endif %} diff --git a/configstore/templates/admin/widgets/foreign_key_raw_id.html b/configstore/templates/admin/widgets/foreign_key_raw_id.html new file mode 100644 index 0000000..fa641b7 --- /dev/null +++ b/configstore/templates/admin/widgets/foreign_key_raw_id.html @@ -0,0 +1 @@ +{% include 'django/forms/widgets/input.html' %}{% if related_url %}{% endif %}{% if link_label %} {% if link_url %}{% endif %}{{ link_label }}{% if link_url %}{% endif %}{% endif %} diff --git a/configstore/templates/admin/widgets/many_to_many_raw_id.html b/configstore/templates/admin/widgets/many_to_many_raw_id.html new file mode 100644 index 0000000..0dd0331 --- /dev/null +++ b/configstore/templates/admin/widgets/many_to_many_raw_id.html @@ -0,0 +1 @@ +{% include 'admin/widgets/foreign_key_raw_id.html' %} diff --git a/configstore/templates/admin/widgets/radio.html b/configstore/templates/admin/widgets/radio.html new file mode 100644 index 0000000..780899a --- /dev/null +++ b/configstore/templates/admin/widgets/radio.html @@ -0,0 +1 @@ +{% include "django/forms/widgets/multiple_input.html" %} diff --git a/configstore/templates/admin/widgets/related_widget_wrapper.html b/configstore/templates/admin/widgets/related_widget_wrapper.html new file mode 100644 index 0000000..b84ab14 --- /dev/null +++ b/configstore/templates/admin/widgets/related_widget_wrapper.html @@ -0,0 +1,29 @@ +{% load i18n static %} + diff --git a/configstore/templates/admin/widgets/split_datetime.html b/configstore/templates/admin/widgets/split_datetime.html new file mode 100644 index 0000000..985f82d --- /dev/null +++ b/configstore/templates/admin/widgets/split_datetime.html @@ -0,0 +1,4 @@ +

+ {{ date_label }} {% with widget=widget.subwidgets.0 %}{% include widget.template_name %}{% endwith %}
+ {{ time_label }} {% with widget=widget.subwidgets.1 %}{% include widget.template_name %}{% endwith %} +

diff --git a/configstore/templates/admin/widgets/url.html b/configstore/templates/admin/widgets/url.html new file mode 100644 index 0000000..554a934 --- /dev/null +++ b/configstore/templates/admin/widgets/url.html @@ -0,0 +1 @@ +{% if widget.value %}

{{ current_label }} {{ widget.value }}
{{ change_label }} {% endif %}{% include "django/forms/widgets/input.html" %}{% if widget.value %}

{% endif %} diff --git a/configstore/tests.py b/configstore/tests.py index 5b5e8cf..c6c1e53 100644 --- a/configstore/tests.py +++ b/configstore/tests.py @@ -5,10 +5,10 @@ from django import forms from django.template import Template, Context -from configs import ConfigurationInstance, register, get_config, CONFIG_CACHE -from forms import ConfigurationForm -from models import Configuration -from listeners import nuke_cache +from .configs import ConfigurationInstance, register, get_config, CONFIG_CACHE +from .forms import ConfigurationForm +from .models import Configuration +from .listeners import nuke_cache from decimal import Decimal diff --git a/django_configstore.egg-info/PKG-INFO b/django_configstore.egg-info/PKG-INFO new file mode 100644 index 0000000..10fdcbb --- /dev/null +++ b/django_configstore.egg-info/PKG-INFO @@ -0,0 +1,19 @@ +Metadata-Version: 1.1 +Name: django-configstore +Version: 0.1 +Summary: An application to allow for other apps to easily store site based configurations +Home-page: http://github.com/cuker/django-configstore +Author: Jason Kraus +Author-email: zbyte64@gmail.com +License: BSD +Description: + An application to allow for other apps to easily store site based configurations + +Platform: UNKNOWN +Classifier: Programming Language :: Python +Classifier: Operating System :: OS Independent +Classifier: Natural Language :: English +Classifier: Development Status :: 4 - Beta +Classifier: Intended Audience :: Developers +Classifier: Framework :: Django +Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content diff --git a/django_configstore.egg-info/SOURCES.txt b/django_configstore.egg-info/SOURCES.txt new file mode 100644 index 0000000..38fa346 --- /dev/null +++ b/django_configstore.egg-info/SOURCES.txt @@ -0,0 +1,23 @@ +MANIFEST.in +README.rst +configstore/__init__.py +configstore/admin.py +configstore/configs.py +configstore/fields.py +configstore/forms.py +configstore/listeners.py +configstore/models.py +configstore/serializer.py +configstore/settings.py +configstore/tests.py +configstore/templates/admin/configstore/add_form.html +configstore/templatetags/__init__.py +configstore/templatetags/configuration.py +django_configstore.egg-info/PKG-INFO +django_configstore.egg-info/SOURCES.txt +django_configstore.egg-info/dependency_links.txt +django_configstore.egg-info/top_level.txt +tests/example_app/__init__.py +tests/example_app/configforms.py +tests/example_app/models.py +tests/example_app/views.py \ No newline at end of file diff --git a/django_configstore.egg-info/dependency_links.txt b/django_configstore.egg-info/dependency_links.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/django_configstore.egg-info/dependency_links.txt @@ -0,0 +1 @@ + diff --git a/django_configstore.egg-info/top_level.txt b/django_configstore.egg-info/top_level.txt new file mode 100644 index 0000000..7589bc3 --- /dev/null +++ b/django_configstore.egg-info/top_level.txt @@ -0,0 +1,2 @@ +configstore +tests