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

View File

@@ -12,7 +12,7 @@ acl_grant = {'text': _('Grant'), 'view': 'acls:acl_multiple_grant', 'famfam': 'k
acl_revoke = {'text': _('Revoke'), 'view': 'acls:acl_multiple_revoke', 'famfam': 'key_delete', 'permissions': [ACLS_EDIT_ACL]}
acl_holder_new = {'text': _('New holder'), 'view': 'acls:acl_holder_new', 'args': 'access_object.gid', 'famfam': 'user', 'permissions': [ACLS_EDIT_ACL]}
acl_setup_valid_classes = {'text': _('Default ACLs'), 'view': 'acls:acl_setup_valid_classes', 'icon': 'main/icons/lock.png', 'permissions': [ACLS_CLASS_VIEW_ACL]}
acl_setup_valid_classes = {'text': _('Default ACLs'), 'view': 'acls:acl_setup_valid_classes', 'icon': 'appearance/icons/lock.png', 'permissions': [ACLS_CLASS_VIEW_ACL]}
acl_class_list = {'text': _('Classes'), 'view': 'acls:acl_setup_valid_classes', 'famfam': 'package', 'permissions': [ACLS_CLASS_VIEW_ACL]}
acl_class_acl_list = {'text': _('ACLs for class'), 'view': 'acls:acl_class_acl_list', 'args': 'object.gid', 'famfam': 'lock_go', 'permissions': [ACLS_CLASS_VIEW_ACL]}
acl_class_acl_detail = {'text': _('Details'), 'view': 'acls:acl_class_acl_detail', 'args': ['access_object_class.gid', 'object.gid'], 'famfam': 'key_go', 'permissions': [ACLS_CLASS_VIEW_ACL]}

View File

@@ -62,7 +62,7 @@ def acl_list_for(request, obj, extra_context=None):
if extra_context:
context.update(extra_context)
return render_to_response('main/generic_list.html', context,
return render_to_response('appearance/generic_list.html', context,
context_instance=RequestContext(request))
@@ -93,7 +93,7 @@ def acl_detail_for(request, actor, obj):
# TODO : get all globally assigned permission, new function get_permissions_for_holder (roles aware)
subtemplates_list = [
{
'name': 'main/generic_list_subtemplate.html',
'name': 'appearance/generic_list_subtemplate.html',
'context': {
'title': _('Permissions available to: %(actor)s for %(obj)s' % {
'actor': actor,
@@ -129,7 +129,7 @@ def acl_detail_for(request, actor, obj):
],
}
return render_to_response('main/generic_detail.html', context,
return render_to_response('appearance/generic_detail.html', context,
context_instance=RequestContext(request))
@@ -220,7 +220,7 @@ def acl_grant(request):
if navigation_object_count == 1:
context['object'] = navigation_object.source_object
return render_to_response('main/generic_confirm.html', context,
return render_to_response('appearance/generic_confirm.html', context,
context_instance=RequestContext(request))
@@ -311,7 +311,7 @@ def acl_revoke(request):
if navigation_object_count == 1:
context['object'] = navigation_object.source_object
return render_to_response('main/generic_confirm.html', context,
return render_to_response('appearance/generic_confirm.html', context,
context_instance=RequestContext(request))
@@ -357,7 +357,7 @@ def acl_new_holder_for(request, obj, extra_context=None, navigation_object=None)
if extra_context:
context.update(extra_context)
return render_to_response('main/generic_form.html', context,
return render_to_response('appearance/generic_form.html', context,
context_instance=RequestContext(request))
@@ -383,7 +383,7 @@ def acl_setup_valid_classes(request):
'hide_object': True,
}
return render_to_response('main/generic_list.html', context,
return render_to_response('appearance/generic_list.html', context,
context_instance=RequestContext(request))
@@ -407,7 +407,7 @@ def acl_class_acl_list(request, access_object_class_gid):
'object': access_object_class,
}
return render_to_response('main/generic_list.html', context,
return render_to_response('appearance/generic_list.html', context,
context_instance=RequestContext(request))
@@ -423,7 +423,7 @@ def acl_class_acl_detail(request, access_object_class_gid, holder_object_gid):
# TODO : get all globally assigned permission, new function get_permissions_for_holder (roles aware)
subtemplates_list = [
{
'name': 'main/generic_list_subtemplate.html',
'name': 'appearance/generic_list_subtemplate.html',
'context': {
'title': _('Permissions available to: %(actor)s for class %(class)s' % {
'actor': actor,
@@ -443,7 +443,7 @@ def acl_class_acl_detail(request, access_object_class_gid, holder_object_gid):
},
]
return render_to_response('main/generic_detail.html', {
return render_to_response('appearance/generic_detail.html', {
'object': access_object_class,
'subtemplates_list': subtemplates_list,
'multi_select_item_properties': {
@@ -478,7 +478,7 @@ def acl_class_new_holder_for(request, access_object_class_gid):
'submit_icon_famfam': 'tick'
}
return render_to_response('main/generic_form.html', context,
return render_to_response('appearance/generic_form.html', context,
context_instance=RequestContext(request))
@@ -555,7 +555,7 @@ def acl_class_multiple_grant(request):
if navigation_object_count == 1:
context['object'] = navigation_object
return render_to_response('main/generic_confirm.html', context,
return render_to_response('appearance/generic_confirm.html', context,
context_instance=RequestContext(request))
@@ -632,5 +632,5 @@ def acl_class_multiple_revoke(request):
if navigation_object_count == 1:
context['object'] = navigation_object
return render_to_response('main/generic_confirm.html', context,
return render_to_response('appearance/generic_confirm.html', context,
context_instance=RequestContext(request))

View File

View File

@@ -0,0 +1,2 @@
from django.db import models

View File

Before

Width:  |  Height:  |  Size: 999 B

After

Width:  |  Height:  |  Size: 999 B

View File

Before

Width:  |  Height:  |  Size: 1021 B

After

Width:  |  Height:  |  Size: 1021 B

View File

Before

Width:  |  Height:  |  Size: 858 B

After

Width:  |  Height:  |  Size: 858 B

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 979 B

After

Width:  |  Height:  |  Size: 979 B

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 738 B

After

Width:  |  Height:  |  Size: 738 B

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 578 B

After

Width:  |  Height:  |  Size: 578 B

View File

Before

Width:  |  Height:  |  Size: 920 B

After

Width:  |  Height:  |  Size: 920 B

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Some files were not shown because too many files have changed in this diff Show More