Added German Translations (#406)

* Added German Translations

Translated using
https://docs.djangoproject.com/en/1.9/topics/i18n/translation/

Added language drop down menu's for base.html, registration & login
pages

Known issues:
* Translated items in whtracker>create signature remain translated when
posted
* No date/time localisation for Fleet/Structure timers

* Added time locale

Added date/time locale to
*Structure Timers
*Fleet Timers
*Fleet timer form datetimepicker.js

Fixed a bug where the bootstrap label didn't show up when making a
structure timer using the translated form

Missed some base.html translations

* Small translation error

Some obscure SRP strings went unnoticed for context review

* FAT & Fleet-up German Translations

+ a fix in settings.py.example

The only small thing not done is German Date/Time locale for Fleet-up

* Compiled de/django.po
This commit is contained in:
iAddz 2016-06-16 23:54:04 +01:00 committed by Adarnof
parent e0693e7ca8
commit c9e490a5c5
76 changed files with 3241 additions and 785 deletions

View File

@ -72,6 +72,17 @@ MIDDLEWARE_CLASSES = (
'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.locale.LocaleMiddleware',
)
LOCALE_PATHS = (
os.path.join(BASE_DIR, 'locale/'),
)
ugettext = lambda s: s
LANGUAGES = (
('en', ugettext('English')),
('de', ugettext('German')),
) )
ROOT_URLCONF = 'alliance_auth.urls' ROOT_URLCONF = 'alliance_auth.urls'

View File

@ -1,97 +1,30 @@
from django.conf.urls import patterns, include, url from django.conf.urls import patterns, include, url
from django.conf.urls.i18n import i18n_patterns
from django.utils.translation import ugettext_lazy as _
from django.contrib import admin from django.contrib import admin
admin.autodiscover() admin.autodiscover()
# Functional/Untranslated URL's
urlpatterns = patterns('', urlpatterns = patterns('',
# Locale
url(r'^i18n/', include('django.conf.urls.i18n')),
# Admin urls # Admin urls
url(r'^admin/', include(admin.site.urls)), url(r'^admin/', include(admin.site.urls)),
# Index # Index
url(r'^$', 'portal.views.index_view', name='auth_index'), url(_(r'^$'), 'portal.views.index_view', name='auth_index'),
# Authentication Urls # Authentication
url(r'^login_user/', 'authentication.views.login_user', name='auth_login_user'),
url(r'^logout_user/', 'authentication.views.logout_user', name='auth_logout_user'), url(r'^logout_user/', 'authentication.views.logout_user', name='auth_logout_user'),
url(r'^register_user/', 'registration.views.register_user_view', name='auth_register_user'),
url(r'^user/password/$', 'django.contrib.auth.views.password_change', name='password_change'), # Eve Online
url(r'^user/password/done/$', 'django.contrib.auth.views.password_change_done',
name='password_change_done'),
url(r'^user/password/reset/$', 'django.contrib.auth.views.password_reset',
name='password_reset'),
url(r'^user/password/password/reset/done/$', 'django.contrib.auth.views.password_reset_done',
name='password_reset_done'),
url(r'^user/password/reset/complete/$', 'django.contrib.auth.views.password_reset_complete',
name='password_reset_complete'),
url(r'^user/password/reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$',
'django.contrib.auth.views.password_reset_confirm', name='password_reset_confirm'),
# Portal Urls
url(r'^dashboard/$', 'portal.views.dashboard_view', name='auth_dashboard'),
url(r'^help/$', 'portal.views.help_view', name='auth_help'),
# Eveonline Urls
url(r'^add_api_key/', 'eveonline.views.add_api_key', name='auth_add_api_key'),
url(r'^api_key_management/', 'eveonline.views.api_key_management_view',
name='auth_api_key_management'),
url(r'^refresh_api_pair/([0-9]+)/$', 'eveonline.views.user_refresh_api', name='auth_user_refresh_api'),
url(r'^delete_api_pair/(\w+)/$', 'eveonline.views.api_key_removal', name='auth_api_key_removal'),
url(r'^characters/', 'eveonline.views.characters_view', name='auth_characters'),
url(r'^main_character_change/(\w+)/$', 'eveonline.views.main_character_change', url(r'^main_character_change/(\w+)/$', 'eveonline.views.main_character_change',
name='auth_main_character_change'), name='auth_main_character_change'),
# Group management
url(r'^groups/', 'groupmanagement.views.groups_view', name='auth_groups'),
url(r'^group/management/', 'groupmanagement.views.group_management',
name='auth_group_management'),
url(r'^group/request_add/(\w+)', 'groupmanagement.views.group_request_add',
name='auth_group_request_add'),
url(r'^group/request/accept/(\w+)', 'groupmanagement.views.group_accept_request',
name='auth_group_accept_request'),
url(r'^group/request/reject/(\w+)', 'groupmanagement.views.group_reject_request',
name='auth_group_reject_request'),
url(r'^group/request_leave/(\w+)', 'groupmanagement.views.group_request_leave',
name='auth_group_request_leave'),
url(r'group/leave_request/accept/(\w+)', 'groupmanagement.views.group_leave_accept_request',
name='auth_group_leave_accept_request'),
url(r'^group/leave_request/reject/(\w+)', 'groupmanagement.views.group_leave_reject_request',
name='auth_group_leave_reject_request'),
# HR Application Management
url(r'^hr_application_management/', 'hrapplications.views.hr_application_management_view',
name="auth_hrapplications_view"),
url(r'^hr_application_create/$', 'hrapplications.views.hr_application_create_view',
name="auth_hrapplication_create_view"),
url(r'^hr_application_create/(\d+)', 'hrapplications.views.hr_application_create_view',
name="auth_hrapplication_create_view"),
url(r'^hr_application_remove/(\w+)', 'hrapplications.views.hr_application_remove',
name="auth_hrapplication_remove"),
url(r'hr_application_view/(\w+)', 'hrapplications.views.hr_application_view',
name="auth_hrapplication_view"),
url(r'hr_application_personal_view/(\w+)', 'hrapplications.views.hr_application_personal_view',
name="auth_hrapplication_personal_view"),
url(r'hr_application_personal_removal/(\w+)',
'hrapplications.views.hr_application_personal_removal',
name="auth_hrapplication_personal_removal"),
url(r'hr_application_approve/(\w+)', 'hrapplications.views.hr_application_approve',
name="auth_hrapplication_approve"),
url(r'hr_application_reject/(\w+)', 'hrapplications.views.hr_application_reject',
name="auth_hrapplication_reject"),
url(r'hr_application_search/', 'hrapplications.views.hr_application_search',
name="auth_hrapplication_search"),
url(r'hr_mark_in_progress/(\w+)', 'hrapplications.views.hr_application_mark_in_progress',
name="auth_hrapplication_mark_in_progress"),
# Service Urls
url(r'^services/$', 'services.views.services_view', name='auth_services'),
url(r'^services/jabber_broadcast/$', 'services.views.jabber_broadcast_view',
name='auth_jabber_broadcast_view'),
# Forum Service Control # Forum Service Control
url(r'^activate_forum/$', 'services.views.activate_forum', name='auth_activate_forum'), url(r'^activate_forum/$', 'services.views.activate_forum', name='auth_activate_forum'),
url(r'^deactivate_forum/$', 'services.views.deactivate_forum', name='auth_deactivate_forum'), url(r'^deactivate_forum/$', 'services.views.deactivate_forum', name='auth_deactivate_forum'),
@ -99,13 +32,11 @@ urlpatterns = patterns('',
name='auth_reset_forum_password'), name='auth_reset_forum_password'),
url(r'^set_forum_password/$', 'services.views.set_forum_password', name='auth_set_forum_password'), url(r'^set_forum_password/$', 'services.views.set_forum_password', name='auth_set_forum_password'),
# Jabber Service Control # Jabber Service Control
url(r'^activate_jabber/$', 'services.views.activate_jabber', name='auth_activate_jabber'), url(r'^activate_jabber/$', 'services.views.activate_jabber', name='auth_activate_jabber'),
url(r'^deactivate_jabber/$', 'services.views.deactivate_jabber', name='auth_deactivate_jabber'), url(r'^deactivate_jabber/$', 'services.views.deactivate_jabber', name='auth_deactivate_jabber'),
url(r'^reset_jabber_password/$', 'services.views.reset_jabber_password', url(r'^reset_jabber_password/$', 'services.views.reset_jabber_password',
name='auth_reset_jabber_password'), name='auth_reset_jabber_password'),
url(r'^set_jabber_password/$', 'services.views.set_jabber_password', name='auth_set_jabber_password'),
# Mumble service control # Mumble service control
url(r'^activate_mumble/$', 'services.views.activate_mumble', name='auth_activate_mumble'), url(r'^activate_mumble/$', 'services.views.activate_mumble', name='auth_activate_mumble'),
@ -139,7 +70,6 @@ urlpatterns = patterns('',
name='auth_deactivate_teamspeak3'), name='auth_deactivate_teamspeak3'),
url(r'reset_teamspeak3_perm/$', 'services.views.reset_teamspeak3_perm', url(r'reset_teamspeak3_perm/$', 'services.views.reset_teamspeak3_perm',
name='auth_reset_teamspeak3_perm'), name='auth_reset_teamspeak3_perm'),
url(r'verify_teamspeak3/$', 'services.views.verify_teamspeak3', name='auth_verify_teamspeak3'),
# Discord Service Control # Discord Service Control
url(r'^activate_discord/$', 'services.views.activate_discord', name='auth_activate_discord'), url(r'^activate_discord/$', 'services.views.activate_discord', name='auth_activate_discord'),
@ -182,37 +112,26 @@ urlpatterns = patterns('',
name='auth_reset_pathfinder_password'), name='auth_reset_pathfinder_password'),
url(r'^set_pathfinder_password/$', 'services.views.set_pathfinder_password', name='auth_set_pathfinder_password'), url(r'^set_pathfinder_password/$', 'services.views.set_pathfinder_password', name='auth_set_pathfinder_password'),
# Tools
url(r'^tool/fleet_formatter_tool/$', 'services.views.fleet_formatter_view',
name='auth_fleet_format_tool_view'),
# Timer URLS
url(r'^timers/$', 'timerboard.views.timer_view', name='auth_timer_view'),
url(r'^add_timer/$', 'timerboard.views.add_timer_view', name='auth_add_timer_view'),
url(r'^remove_timer/(\w+)', 'timerboard.views.remove_timer', name='auth_remove_timer'),
url(r'^edit_timer/(\w+)$', 'timerboard.views.edit_timer', name='auth_edit_timer'),
# SRP URLS # SRP URLS
url(r'^srp/$', 'srp.views.srp_management', name='auth_srp_management_view'),
url(r'^srp_all/$', 'srp.views.srp_management_all', name='auth_srp_management_all_view'),
url(r'^srp_fleet_view/(\w+)$', 'srp.views.srp_fleet_view', name='auth_srp_fleet_view'),
url(r'^srp_fleet_add_view/$', 'srp.views.srp_fleet_add_view', name='auth_srp_fleet_add_view'),
url(r'^srp_fleet_remove/(\w+)$', 'srp.views.srp_fleet_remove', name='auth_srp_fleet_remove'), url(r'^srp_fleet_remove/(\w+)$', 'srp.views.srp_fleet_remove', name='auth_srp_fleet_remove'),
url(r'^srp_fleet_disable/(\w+)$', 'srp.views.srp_fleet_disable', name='auth_srp_fleet_disable'), url(r'^srp_fleet_disable/(\w+)$', 'srp.views.srp_fleet_disable', name='auth_srp_fleet_disable'),
url(r'^srp_fleet_enable/(\w+)$', 'srp.views.srp_fleet_enable', name='auth_srp_fleet_enable'), url(r'^srp_fleet_enable/(\w+)$', 'srp.views.srp_fleet_enable', name='auth_srp_fleet_enable'),
url(r'^srp_fleet_edit/(\w+)$', 'srp.views.srp_fleet_edit_view', name='auth_srp_fleet_edit_view'),
url(r'^srp_fleet_mark_completed/(\w+)', 'srp.views.srp_fleet_mark_completed', url(r'^srp_fleet_mark_completed/(\w+)', 'srp.views.srp_fleet_mark_completed',
name='auth_srp_fleet_mark_completed'), name='auth_srp_fleet_mark_completed'),
url(r'^srp_fleet_mark_uncompleted/(\w+)', 'srp.views.srp_fleet_mark_uncompleted', url(r'^srp_fleet_mark_uncompleted/(\w+)', 'srp.views.srp_fleet_mark_uncompleted',
name='auth_srp_fleet_mark_uncompleted'), name='auth_srp_fleet_mark_uncompleted'),
url(r'^srp_request/(\w+)', 'srp.views.srp_request_view', name='auth_srp_request_view'),
url(r'^srp_request_remove/(\w+)', 'srp.views.srp_request_remove', url(r'^srp_request_remove/(\w+)', 'srp.views.srp_request_remove',
name="auth_srp_request_remove"), name="auth_srp_request_remove"),
url(r'srp_request_approve/(\w+)', 'srp.views.srp_request_approve', url(r'srp_request_approve/(\w+)', 'srp.views.srp_request_approve',
name='auth_srp_request_approve'), name='auth_srp_request_approve'),
url(r'srp_request_reject/(\w+)', 'srp.views.srp_request_reject', name='auth_srp_request_reject'), url(r'srp_request_reject/(\w+)', 'srp.views.srp_request_reject', name='auth_srp_request_reject'),
url(r'srp_request_amount_update/(\w+)', 'srp.views.srp_request_update_amount_view',
name="auth_srp_request_update_amount_view"), # Notifications
url(r'^remove_notifications/(\w+)/$', 'notifications.views.remove_notification', name='auth_remove_notification'),
)
# User viewed/translated URLS
urlpatterns += i18n_patterns('',
#corputils #corputils
url(r'^corputils/$', 'corputils.views.corp_member_view', name='auth_corputils'), url(r'^corputils/$', 'corputils.views.corp_member_view', name='auth_corputils'),
@ -223,6 +142,7 @@ urlpatterns = patterns('',
# FLEET FITTINGS # FLEET FITTINGS
url(r'^fits/$', 'services.views.fleet_fits', name='auth_fleet_fits'), url(r'^fits/$', 'services.views.fleet_fits', name='auth_fleet_fits'),
#Fleetup #Fleetup
url(r'^fleetup/$', 'fleetup.views.fleetup_view', name='auth_fleetup_view'), url(r'^fleetup/$', 'fleetup.views.fleetup_view', name='auth_fleetup_view'),
url(r'^fleetup/fittings/$', 'fleetup.views.fleetup_fittings', name='auth_fleetup_fittings'), url(r'^fleetup/fittings/$', 'fleetup.views.fleetup_fittings', name='auth_fleetup_fittings'),
@ -231,23 +151,133 @@ urlpatterns = patterns('',
url(r'^fleetup/characters/$', 'fleetup.views.fleetup_characters', name='auth_fleetup_characters'), url(r'^fleetup/characters/$', 'fleetup.views.fleetup_characters', name='auth_fleetup_characters'),
url(r'^fleetup/doctrines/(?P<doctrinenumber>[0-9]+)/$', 'fleetup.views.fleetup_doctrine'), url(r'^fleetup/doctrines/(?P<doctrinenumber>[0-9]+)/$', 'fleetup.views.fleetup_doctrine'),
# Sig Tracker # Authentication
url(r'^sigtracker/$', 'sigtracker.views.sigtracker_view', name='auth_signature_view'), url(_(r'^login_user/'), 'authentication.views.login_user', name='auth_login_user'),
url(r'^add_signature/$', 'sigtracker.views.add_signature_view', name='auth_add_signature_view'), url(_(r'^register_user/'), 'registration.views.register_user_view', name='auth_register_user'),
url(r'^remove_signature/(\w+)', 'sigtracker.views.remove_signature', name='auth_remove_signature'),
url(r'^edit_signature/(\w+)$', 'sigtracker.views.edit_signature', name='auth_edit_signature'), url(_(r'^user/password/$'), 'django.contrib.auth.views.password_change', name='password_change'),
url(_(r'^user/password/done/$'), 'django.contrib.auth.views.password_change_done',
name='password_change_done'),
url(_(r'^user/password/reset/$'), 'django.contrib.auth.views.password_reset',
name='password_reset'),
url(_(r'^user/password/password/reset/done/$'), 'django.contrib.auth.views.password_reset_done',
name='password_reset_done'),
url(_(r'^user/password/reset/complete/$'), 'django.contrib.auth.views.password_reset_complete',
name='password_reset_complete'),
url(_(r'^user/password/reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$'),
'django.contrib.auth.views.password_reset_confirm', name='password_reset_confirm'),
# Portal Urls
url(_(r'^dashboard/$'), 'portal.views.dashboard_view', name='auth_dashboard'),
url(_(r'^help/$'), 'portal.views.help_view', name='auth_help'),
# Eveonline Urls
url(_(r'^add_api_key/'), 'eveonline.views.add_api_key', name='auth_add_api_key'),
url(_(r'^api_key_management/'), 'eveonline.views.api_key_management_view',
name='auth_api_key_management'),
url(_(r'^refresh_api_pair/([0-9]+)/$'), 'eveonline.views.user_refresh_api', name='auth_user_refresh_api'),
url(_(r'^delete_api_pair/(\w+)/$'), 'eveonline.views.api_key_removal', name='auth_api_key_removal'),
url(_(r'^characters/'), 'eveonline.views.characters_view', name='auth_characters'),
# Group management
url(_(r'^groups/'), 'groupmanagement.views.groups_view', name='auth_groups'),
url(_(r'^group/management/'), 'groupmanagement.views.group_management',
name='auth_group_management'),
url(_(r'^group/request_add/(\w+)'), 'groupmanagement.views.group_request_add',
name='auth_group_request_add'),
url(_(r'^group/request/accept/(\w+)'), 'groupmanagement.views.group_accept_request',
name='auth_group_accept_request'),
url(_(r'^group/request/reject/(\w+)'), 'groupmanagement.views.group_reject_request',
name='auth_group_reject_request'),
url(_(r'^group/request_leave/(\w+)'), 'groupmanagement.views.group_request_leave',
name='auth_group_request_leave'),
url(_(r'group/leave_request/accept/(\w+)'), 'groupmanagement.views.group_leave_accept_request',
name='auth_group_leave_accept_request'),
url(_(r'^group/leave_request/reject/(\w+)'), 'groupmanagement.views.group_leave_reject_request',
name='auth_group_leave_reject_request'),
# HR Application Management
url(_(r'^hr_application_management/'), 'hrapplications.views.hr_application_management_view',
name="auth_hrapplications_view"),
url(_(r'^hr_application_create/$'), 'hrapplications.views.hr_application_create_view',
name="auth_hrapplication_create_view"),
url(_(r'^hr_application_create/(\d+)'), 'hrapplications.views.hr_application_create_view',
name="auth_hrapplication_create_view"),
url(_(r'^hr_application_remove/(\w+)'), 'hrapplications.views.hr_application_remove',
name="auth_hrapplication_remove"),
url(_(r'hr_application_view/(\w+)'), 'hrapplications.views.hr_application_view',
name="auth_hrapplication_view"),
url(_(r'hr_application_personal_view/(\w+)'), 'hrapplications.views.hr_application_personal_view',
name="auth_hrapplication_personal_view"),
url(_(r'hr_application_personal_removal/(\w+)'),
'hrapplications.views.hr_application_personal_removal',
name="auth_hrapplication_personal_removal"),
url(_(r'hr_application_approve/(\w+)'), 'hrapplications.views.hr_application_approve',
name="auth_hrapplication_approve"),
url(_(r'hr_application_reject/(\w+)'), 'hrapplications.views.hr_application_reject',
name="auth_hrapplication_reject"),
url(_(r'hr_application_search/'), 'hrapplications.views.hr_application_search',
name="auth_hrapplication_search"),
url(_(r'hr_mark_in_progress/(\w+)'), 'hrapplications.views.hr_application_mark_in_progress',
name="auth_hrapplication_mark_in_progress"),
# Fleet Operations Timers # Fleet Operations Timers
url(r'^optimer/$', 'optimer.views.optimer_view', name='auth_optimer_view'), url(_(r'^optimer/$'), 'optimer.views.optimer_view', name='auth_optimer_view'),
url(r'^add_optimer/$', 'optimer.views.add_optimer_view', name='auth_add_optimer_view'), url(_(r'^add_optimer/$'), 'optimer.views.add_optimer_view', name='auth_add_optimer_view'),
url(r'^remove_optimer/(\w+)', 'optimer.views.remove_optimer', name='auth_remove_optimer'), url(_(r'^remove_optimer/(\w+)'), 'optimer.views.remove_optimer', name='auth_remove_optimer'),
url(r'^edit_optimer/(\w+)$', 'optimer.views.edit_optimer', name='auth_edit_optimer'), url(_(r'^edit_optimer/(\w+)$'), 'optimer.views.edit_optimer', name='auth_edit_optimer'),
# Service Urls
url(_(r'^services/$'), 'services.views.services_view', name='auth_services'),
url(_(r'^services/jabber_broadcast/$'), 'services.views.jabber_broadcast_view',
name='auth_jabber_broadcast_view'),
#Teamspeak Urls
url(r'verify_teamspeak3/$', 'services.views.verify_teamspeak3', name='auth_verify_teamspeak3'),
#corputils
url(_(r'^corputils/$'), 'corputils.views.corp_member_view', name='auth_corputils'),
url(_(r'^corputils/(?P<corpid>[0-9]+)/$'), 'corputils.views.corp_member_view'),
url(_(r'^corputils/search/$'), 'corputils.views.corputils_search', name="auth_corputils_search"),
url(_(r'^corputils/search/(?P<corpid>[0-9]+)/$'), 'corputils.views.corputils_search'),
# Timer URLS
url(_(r'^timers/$'), 'timerboard.views.timer_view', name='auth_timer_view'),
url(_(r'^add_timer/$'), 'timerboard.views.add_timer_view', name='auth_add_timer_view'),
url(_(r'^remove_timer/(\w+)'), 'timerboard.views.remove_timer', name='auth_remove_timer'),
url(_(r'^edit_timer/(\w+)$'), 'timerboard.views.edit_timer', name='auth_edit_timer'),
# Sig Tracker
url(_(r'^sigtracker/$'), 'sigtracker.views.sigtracker_view', name='auth_signature_view'),
url(_(r'^add_signature/$'), 'sigtracker.views.add_signature_view', name='auth_add_signature_view'),
url(_(r'^remove_signature/(\w+)'), 'sigtracker.views.remove_signature', name='auth_remove_signature'),
url(_(r'^edit_signature/(\w+)$'), 'sigtracker.views.edit_signature', name='auth_edit_signature'),
#SRP URLS
url(_(r'^srp/$'), 'srp.views.srp_management', name='auth_srp_management_view'),
url(_(r'^srp_all/$'), 'srp.views.srp_management_all', name='auth_srp_management_all_view'),
url(_(r'^srp_fleet_view/(\w+)$'), 'srp.views.srp_fleet_view', name='auth_srp_fleet_view'),
url(_(r'^srp_fleet_add_view/$'), 'srp.views.srp_fleet_add_view', name='auth_srp_fleet_add_view'),
url(_(r'^srp_fleet_edit/(\w+)$'), 'srp.views.srp_fleet_edit_view', name='auth_srp_fleet_edit_view'),
url(_(r'^srp_request/(\w+)'), 'srp.views.srp_request_view', name='auth_srp_request_view'),
url(_(r'srp_request_amount_update/(\w+)'), 'srp.views.srp_request_update_amount_view',
name="auth_srp_request_update_amount_view"),
# Tools
url(_(r'^tool/fleet_formatter_tool/$'), 'services.views.fleet_formatter_view',
name='auth_fleet_format_tool_view'),
# Notifications # Notifications
url(r'^notifications/$', 'notifications.views.notification_list', name='auth_notification_list'), url(_(r'^notifications/$'), 'notifications.views.notification_list', name='auth_notification_list'),
url(r'^notifications/(\w+)/$', 'notifications.views.notification_view', name='auth_notification_view'), url(_(r'^notifications/(\w+)/$'), 'notifications.views.notification_view', name='auth_notification_view'),
url(r'^remove_notifications/(\w+)/$', 'notifications.views.remove_notification', name='auth_remove_notification'),
#Jabber
url(_(r'^set_jabber_password/$'), 'services.views.set_jabber_password', name='auth_set_jabber_password'),
# FLEET FITTINGS
url(_(r'^fits/$'), 'services.views.fleet_fits', name='auth_fleet_fits'),
# FleetActivityTracking (FAT) # FleetActivityTracking (FAT)
url(r'^fat/$', 'fleetactivitytracking.views.fatlink_view', name='auth_fatlink_view'), url(r'^fat/$', 'fleetactivitytracking.views.fatlink_view', name='auth_fatlink_view'),
url(r'^fat/statistics/$', 'fleetactivitytracking.views.fatlink_statistics_view', name='auth_fatlink_view_statistics'), url(r'^fat/statistics/$', 'fleetactivitytracking.views.fatlink_statistics_view', name='auth_fatlink_view_statistics'),
@ -265,4 +295,5 @@ urlpatterns = patterns('',
url(r'^fat/link/$', 'fleetactivitytracking.views.fatlink_view', name='auth_click_fatlink_view'), url(r'^fat/link/$', 'fleetactivitytracking.views.fatlink_view', name='auth_click_fatlink_view'),
url(r'^fat/link/(?P<hash>[a-zA-Z0-9]+)/(?P<fatname>[a-z0-9_-]+)/$', url(r'^fat/link/(?P<hash>[a-zA-Z0-9]+)/(?P<fatname>[a-z0-9_-]+)/$',
'fleetactivitytracking.views.click_fatlink_view'), 'fleetactivitytracking.views.click_fatlink_view'),
) )

View File

@ -1,6 +1,7 @@
from django import forms from django import forms
from django.utils.translation import ugettext_lazy as _
class LoginForm(forms.Form): class LoginForm(forms.Form):
username = forms.CharField(max_length=32, required=True) username = forms.CharField(label=_('Username'), max_length=32, required=True)
password = forms.CharField(widget=forms.PasswordInput()) password = forms.CharField(label=_('Password'), widget=forms.PasswordInput())

View File

@ -4,6 +4,7 @@ from django.contrib.auth import authenticate
from django.http import HttpResponseRedirect from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response from django.shortcuts import render_to_response
from django.template import RequestContext from django.template import RequestContext
from django.utils import translation
from forms import LoginForm from forms import LoginForm
@ -23,7 +24,7 @@ def login_user(request):
if user.is_active: if user.is_active:
logger.info("Successful login attempt from user %s" % user) logger.info("Successful login attempt from user %s" % user)
login(request, user) login(request, user)
return HttpResponseRedirect("/dashboard") return HttpResponseRedirect("/dashboard/")
else: else:
logger.info("Login attempt failed for user %s: user marked inactive." % user) logger.info("Login attempt failed for user %s: user marked inactive." % user)
else: else:
@ -43,4 +44,4 @@ def logout_user(request):
logoutUser = request.user logoutUser = request.user
logout(request) logout(request)
logger.info("Successful logout for user %s" % logoutUser) logger.info("Successful logout for user %s" % logoutUser)
return HttpResponseRedirect("/") return HttpResponseRedirect("/")

View File

@ -1,8 +1,9 @@
from django import forms from django import forms
from django.conf import settings from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from eveonline.models import EveCorporationInfo from eveonline.models import EveCorporationInfo
from eveonline.models import EveAllianceInfo from eveonline.models import EveAllianceInfo
class CorputilsSearchForm(forms.Form): class CorputilsSearchForm(forms.Form):
search_string = forms.CharField(max_length=254, required=True, label="", widget=forms.TextInput(attrs={'placeholder': 'Search characters...'})) search_string = forms.CharField(max_length=254, required=True, label="", widget=forms.TextInput(attrs={'placeholder': _('Search characters...')}))

View File

@ -124,8 +124,8 @@ def main_character_change(request, char_id):
if EveManager.check_if_character_owned_by_user(char_id, request.user): if EveManager.check_if_character_owned_by_user(char_id, request.user):
AuthServicesInfoManager.update_main_char_Id(char_id, request.user) AuthServicesInfoManager.update_main_char_Id(char_id, request.user)
set_state(request.user) set_state(request.user)
return HttpResponseRedirect("/characters") return HttpResponseRedirect("/characters/")
return HttpResponseRedirect("/characters") return HttpResponseRedirect("/characters/")

View File

@ -1,5 +1,6 @@
from django import forms from django import forms
from optimer.models import optimer from optimer.models import optimer
from django.utils.translation import ugettext_lazy as _
def get_fleet_list(): def get_fleet_list():
fleets = optimer.objects.all() fleets = optimer.objects.all()
@ -11,6 +12,6 @@ def get_fleet_list():
class FatlinkForm(forms.Form): class FatlinkForm(forms.Form):
fatname = forms.CharField(label='Name of fat-link', required=True) fatname = forms.CharField(label=_('Name of fat-link'), required=True)
duration = forms.IntegerField(label="Duration of fat-link", required=True, initial=30, min_value=1, max_value=2147483647) duration = forms.IntegerField(label=_("Duration of fat-link"), required=True, initial=30, min_value=1, max_value=2147483647)
fleet = forms.ModelChoiceField(label="Fleet", queryset=optimer.objects.all().order_by('operation_name')) fleet = forms.ModelChoiceField(label=_("Fleet"), queryset=optimer.objects.all().order_by('operation_name'))

View File

@ -12,6 +12,7 @@ from models import HiddenGroup
from models import OpenGroup from models import OpenGroup
from authentication.managers import AuthServicesInfoManager from authentication.managers import AuthServicesInfoManager
from eveonline.managers import EveManager from eveonline.managers import EveManager
from django.utils.translation import ugettext_lazy as _
import logging import logging
@ -159,7 +160,7 @@ def group_request_add(request, group_id):
return HttpResponseRedirect("/groups") return HttpResponseRedirect("/groups")
auth_info = AuthServicesInfoManager.get_auth_service_info(request.user) auth_info = AuthServicesInfoManager.get_auth_service_info(request.user)
grouprequest = GroupRequest() grouprequest = GroupRequest()
grouprequest.status = 'pending' grouprequest.status = _('Pending')
grouprequest.group = group grouprequest.group = group
grouprequest.user = request.user grouprequest.user = request.user
grouprequest.main_char = EveManager.get_character_by_id(auth_info.main_char_id) grouprequest.main_char = EveManager.get_character_by_id(auth_info.main_char_id)
@ -179,7 +180,7 @@ def group_request_leave(request, group_id):
return HttpResponseRedirect("/groups") return HttpResponseRedirect("/groups")
auth_info = AuthServicesInfoManager.get_auth_service_info(request.user) auth_info = AuthServicesInfoManager.get_auth_service_info(request.user)
grouprequest = GroupRequest() grouprequest = GroupRequest()
grouprequest.status = 'pending' grouprequest.status = _('Pending')
grouprequest.group = group grouprequest.group = group
grouprequest.user = request.user grouprequest.user = request.user
grouprequest.main_char = EveManager.get_character_by_id(auth_info.main_char_id) grouprequest.main_char = EveManager.get_character_by_id(auth_info.main_char_id)

View File

@ -1,7 +1,8 @@
from django import forms from django import forms
from django.utils.translation import ugettext_lazy as _
class HRApplicationCommentForm(forms.Form): class HRApplicationCommentForm(forms.Form):
comment = forms.CharField(widget=forms.Textarea, required=False, label="Comment", max_length=254) comment = forms.CharField(widget=forms.Textarea, required=False, label=_("Comment"), max_length=254)
class HRApplicationSearchForm(forms.Form): class HRApplicationSearchForm(forms.Form):
search_string = forms.CharField(max_length=254, required=True, label="Search String") search_string = forms.CharField(max_length=254, required=True, label=_("Search String"))

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -1,18 +1,16 @@
from django import forms from django import forms
from django.core.validators import MaxValueValidator, MinValueValidator from django.core.validators import MaxValueValidator, MinValueValidator
from django.utils.translation import ugettext_lazy as _
class opForm(forms.Form): class opForm(forms.Form):
doctrine = forms.CharField(max_length=254, required=True, label='Doctrine') doctrine = forms.CharField(max_length=254, required=True, label=_('Doctrine'))
system = forms.CharField(max_length=254, required=True, label="System") system = forms.CharField(max_length=254, required=True, label=_("System"))
location = forms.CharField(max_length=254, required=True, label="Location") location = forms.CharField(max_length=254, required=True, label=_("Location"))
start = forms.DateTimeField(required=True, label="Start Time") start = forms.DateTimeField(required=True, label=_("Start Time"))
duration = forms.CharField(max_length=254, required=True, label="Duration") duration = forms.CharField(max_length=254, required=True, label=_("Duration"))
operation_name = forms.CharField(max_length=254, required=True, label="Operation Name") operation_name = forms.CharField(max_length=254, required=True, label=_("Operation Name"))
fc = forms.CharField(max_length=254, required=True, label="Fleet Commander") fc = forms.CharField(max_length=254, required=True, label=_("Fleet Commander"))
details = forms.CharField(max_length=254, required=False, label="Extra Details") details = forms.CharField(max_length=254, required=False, label=_("Extra Details"))

View File

@ -1,5 +1,6 @@
from django import forms from django import forms
from django.contrib.auth.models import User from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
import re import re
import logging import logging
@ -7,11 +8,11 @@ import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
class RegistrationForm(forms.Form): class RegistrationForm(forms.Form):
username = forms.CharField(max_length=30, required=True) username = forms.CharField(label=_('Username'), max_length=30, required=True)
password = forms.CharField(widget=forms.PasswordInput(), required=True) password = forms.CharField(label=_('Password'), widget=forms.PasswordInput(), required=True)
password_again = forms.CharField(widget=forms.PasswordInput(), required=True, label="Password Again") password_again = forms.CharField(label=_('Password Again'), widget=forms.PasswordInput(), required=True)
email = forms.CharField(max_length=254, required=True) email = forms.CharField(label=_('Email'), max_length=254, required=True)
email_again = forms.CharField(max_length=254, required=True, label="Email Again") email_again = forms.CharField(label=_('Email Again'), max_length=254, required=True)
def clean(self): def clean(self):
if ' ' in self.cleaned_data['username']: if ' ' in self.cleaned_data['username']:

View File

@ -2,6 +2,7 @@ from django.contrib.auth.models import User
from django.http import HttpResponseRedirect from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response from django.shortcuts import render_to_response
from django.template import RequestContext from django.template import RequestContext
from django.utils import translation
from forms import RegistrationForm from forms import RegistrationForm
@ -36,4 +37,4 @@ def register_user_view(request):
logger.debug("Returning blank registration form.") logger.debug("Returning blank registration form.")
form = RegistrationForm() form = RegistrationForm()
return render_to_response('public/register.html', {'form': form}, context_instance=RequestContext(request)) return render_to_response('public/register.html', {'form': form}, context_instance=RequestContext(request))

View File

@ -1,36 +1,37 @@
from django import forms from django import forms
from services.managers.teamspeak3_manager import Teamspeak3Manager from services.managers.teamspeak3_manager import Teamspeak3Manager
from django.utils.translation import ugettext_lazy as _
class JabberBroadcastForm(forms.Form): class JabberBroadcastForm(forms.Form):
group = forms.ChoiceField(widget=forms.Select) group = forms.ChoiceField(label=_('Group'), widget=forms.Select)
message = forms.CharField(widget=forms.Textarea) message = forms.CharField(label=_('Message'), widget=forms.Textarea)
class FleetFormatterForm(forms.Form): class FleetFormatterForm(forms.Form):
fleet_name = forms.CharField(label='Name of Fleet:', required=True) fleet_name = forms.CharField(label=_('Name of Fleet:'), required=True)
fleet_commander = forms.CharField(label='Fleet Commander:', required=True) fleet_commander = forms.CharField(label=_('Fleet Commander:'), required=True)
fleet_comms = forms.CharField(label='Fleet Comms:', required=True) fleet_comms = forms.CharField(label=_('Fleet Comms:'), required=True)
fleet_type = forms.CharField(label='Fleet Type:', required=True) fleet_type = forms.CharField(label=_('Fleet Type:'), required=True)
ship_priorities = forms.CharField(label='Ship Priorities:', required=True) ship_priorities = forms.CharField(label=_('Ship Priorities:'), required=True)
formup_location = forms.CharField(label='Formup Location:', required=True) formup_location = forms.CharField(label=_('Formup Location:'), required=True)
formup_time = forms.CharField(label='Formup Time:', required=True) formup_time = forms.CharField(label=_('Formup Time:'), required=True)
expected_duration = forms.CharField(label='Expected Duration:', required=True) expected_duration = forms.CharField(label=_('Expected Duration:'), required=True)
purpose = forms.CharField(label='Purpose:', required=True) purpose = forms.CharField(label=_('Purpose:'), required=True)
reimbursable = forms.ChoiceField(label='Reimbursable?*', choices=[('Yes', 'Yes'), ('No', 'No')], required=True) reimbursable = forms.ChoiceField(label=_('Reimbursable?*'), choices=[(_('Yes'), _('Yes')), (_('No'), _('No'))], required=True)
important = forms.ChoiceField(label='Important?*', choices=[('Yes', 'Yes'), ('No', 'No')], required=True) important = forms.ChoiceField(label=_('Important?*'), choices=[(_('Yes'), _('Yes')), (_('No'), _('No'))], required=True)
comments = forms.CharField(widget=forms.Textarea, required=False) comments = forms.CharField(label=_('Comments'), widget=forms.Textarea, required=False)
class DiscordForm(forms.Form): class DiscordForm(forms.Form):
email = forms.CharField(label="Email Address", required=True) email = forms.CharField(label=_("Email Address"), required=True)
password = forms.CharField(label="Password", required=True, widget=forms.PasswordInput) password = forms.CharField(label=_("Password"), required=True, widget=forms.PasswordInput)
update_avatar = forms.BooleanField(label="Update Avatar", required=False, initial=True) update_avatar = forms.BooleanField(label=_("Update Avatar"), required=False, initial=True)
class ServicePasswordForm(forms.Form): class ServicePasswordForm(forms.Form):
password = forms.CharField(label="Password", required=True) password = forms.CharField(label=_("Password"), required=True)
def clean_password(self): def clean_password(self):
password = self.cleaned_data['password'] password = self.cleaned_data['password']
if not len(password) >= 8: if not len(password) >= 8:
raise forms.ValidationError("Password must be at least 8 characters long.") raise forms.ValidationError(_("Password must be at least 8 characters long."))
return password return password
class TeamspeakJoinForm(forms.Form): class TeamspeakJoinForm(forms.Form):
@ -39,4 +40,4 @@ class TeamspeakJoinForm(forms.Form):
def clean(self): def clean(self):
if Teamspeak3Manager._get_userid(self.cleaned_data['username']): if Teamspeak3Manager._get_userid(self.cleaned_data['username']):
return self.cleaned_data return self.cleaned_data
raise forms.ValidationError("Unable to locate user %s on server" % self.cleaned_data['username']) raise forms.ValidationError(_("Unable to locate user %s on server") % self.cleaned_data['username'])

View File

@ -1,22 +1,22 @@
from django import forms from django import forms
from django.core.validators import MaxValueValidator, MinValueValidator from django.core.validators import MaxValueValidator, MinValueValidator
from django.utils.translation import ugettext_lazy as _
class SignatureForm(forms.Form): class SignatureForm(forms.Form):
mass_status = [('More Than 50%', 'More Than 50%'), ('Less Than 50%', 'Less Than 50%'), ('Less Than 10%', 'Less Than 10%')] mass_status = [(_('More Than 50%'), _('More Than 50%')), (_('Less Than 50%'), _('Less Than 50%')), (_('Less Than 10%'), _('Less Than 10%'))]
lifetime_status = [('More Than 24 Hours', 'More Than 24 Hours'), ('Less Than 24 Hours', 'Less Than 24 Hours'), ('Less Than 4 Hours', 'Less Than 4 Hours')] lifetime_status = [(_('More Than 24 Hours'), _('More Than 24 Hours')), (_('Less Than 24 Hours'), _('Less Than 24 Hours')), (_('Less Than 4 Hours'), _('Less Than 4 Hours'))]
ships_size = [('Only Smallest', 'Only Smallest'), ('Up to Medium', 'Up to Medium'), ('Larger', 'Larger'), ('Very Large', 'Very Large')] ships_size = [(_('Only Smallest'), _('Only Smallest')), (_('Up to Medium'), _('Up to Medium')), (_('Larger'), _('Larger')), (_('Very Large'), _('Very Large'))]
system = forms.CharField(max_length=254, required=True, label='System') system = forms.CharField(max_length=254, required=True, label=_('System'))
ident = forms.CharField(max_length=254, required=True, label="ID") ident = forms.CharField(max_length=254, required=True, label=_("ID"))
lifetime_status = forms.ChoiceField(choices=lifetime_status, required=True, label="Lifetime Status") lifetime_status = forms.ChoiceField(choices=lifetime_status, required=True, label=_("Lifetime Status"))
mass_status = forms.ChoiceField(choices=mass_status, required=True, label="Mass Status") mass_status = forms.ChoiceField(choices=mass_status, required=True, label=_("Mass Status"))
ships_size = forms.ChoiceField(choices=ships_size, required=True, label="Ship Size") ships_size = forms.ChoiceField(choices=ships_size, required=True, label=_("Ship Size"))
destination = forms.CharField(max_length=254, label="End Destination", required=True, initial="") destination = forms.CharField(max_length=254, label=_("End Destination"), required=True, initial="")
through_dest = forms.CharField(max_length=254, label="Goes Through", required=True, initial="") through_dest = forms.CharField(max_length=254, label=_("Goes Through"), required=True, initial="")
notes = forms.CharField(max_length=254, label="Notes", required=False, initial="") notes = forms.CharField(max_length=254, label=_("Notes"), required=False, initial="")

View File

@ -1,17 +1,17 @@
from django import forms from django import forms
from django.utils.translation import ugettext_lazy as _
class SrpFleetMainForm(forms.Form): class SrpFleetMainForm(forms.Form):
fleet_name = forms.CharField(required=True, label="Fleet Name") fleet_name = forms.CharField(required=True, label=_("Fleet Name"))
fleet_time = forms.DateTimeField(required=True, label="Fleet Time") fleet_time = forms.DateTimeField(required=True, label=_("Fleet Time"))
fleet_doctrine = forms.CharField(required=True, label="Fleet Doctrine") fleet_doctrine = forms.CharField(required=True, label=_("Fleet Doctrine"))
class SrpFleetUserRequestForm(forms.Form): class SrpFleetUserRequestForm(forms.Form):
additional_info = forms.CharField(required=False, max_length=25, label="Additional Info") additional_info = forms.CharField(required=False, max_length=25, label=_("Additional Info"))
killboard_link = forms.CharField( killboard_link = forms.CharField(
label="zKillboard Link", label=_("zKillboard Link"),
max_length=255, max_length=255,
required=True required=True
@ -25,8 +25,9 @@ class SrpFleetUserRequestForm(forms.Form):
class SrpFleetUpdateCostForm(forms.Form): class SrpFleetUpdateCostForm(forms.Form):
srp_total_amount = forms.IntegerField(required=True, label="Total SRP Amount") srp_total_amount = forms.IntegerField(required=True, label=_("Total SRP Amount"))
class SrpFleetMainUpdateForm(forms.Form): class SrpFleetMainUpdateForm(forms.Form):
fleet_aar_link = forms.CharField(required=True, label="After Action Report Link") fleet_aar_link = forms.CharField(required=True, label=_("After Action Report Link"))

View File

@ -1,5 +1,5 @@
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
@ -23,6 +23,13 @@
.grayiconecolor { .grayiconecolor {
color: #505050; color: #505050;
} }
#lang_select {
margin-right: 25px;
}
#f_lang_select {
margin-right: 5px;
}
</style> </style>
</head> </head>
@ -47,6 +54,21 @@
<!-- /.navbar-header --> <!-- /.navbar-header -->
<ul class="nav navbar-top-links navbar-right"> <ul class="nav navbar-top-links navbar-right">
<li class="nav-link">
<form id="f_lang_select" action="{% url 'set_language' %}" method="post">
{% csrf_token %}
<input name="next" type="hidden" value="{{ request.get_full_path|slice:'3:' }}" />
<select onchange="this.form.submit()" class="form-control" id="lang_select" name="language">
{% get_language_info_list for LANGUAGES as languages %}
{% for language in languages %}
<option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>
{{ language.name_local }} ({{ language.code }})
</option>
{% endfor %}
</select>
</form>
</li>
{% if notifications %} {% if notifications %}
<li class="nav-link active"><a href="{% url 'auth_notification_list' %}"> <li class="nav-link active"><a href="{% url 'auth_notification_list' %}">
<i class="fa fa-flag"></i></a> <i class="fa fa-flag"></i></a>
@ -57,61 +79,63 @@
</li> </li>
{% endif %} {% endif %}
{% if user.is_authenticated %} {% if user.is_authenticated %}
<li><a href="{% url 'auth_logout_user' %}">Logout</a></li> <li><a href="{% url 'auth_logout_user' %}">{% trans "Logout" %}</a></li>
{% else %} {% else %}
<li><a href="{% url 'auth_login_user' %}">Login</a></li> <li><a href="{% url 'auth_login_user' %}">{% trans "Login" %}</a></li>
{% endif %} {% endif %}
</ul> </ul>
<!-- /.navbar-top-links --> <!-- /.navbar-top-links -->
<div class="navbar-default sidebar" role="navigation"> <div class="navbar-default sidebar" role="navigation">
<div class="sidebar-nav navbar-collapse"> <div class="sidebar-nav navbar-collapse">
<ul class="nav" id="side-menu"> <ul class="nav" id="side-menu">
<li class="text-center divider-horizontal"> <li class="text-center divider-horizontal">
<h5>Main Navigation</h5> <h5>{% trans "Main Navigation" %}</h5>
</li> </li>
<li> <li>
<a {% ifequal request.path "/dashboard/" %} class="active" {% endifequal %} <a {% ifequal request.path "/dashboard/" %} class="active" {% endifequal %}
href="{% url 'auth_dashboard' %}"><i href="{% url 'auth_dashboard' %}"><i
class="fa fa-dashboard fa-fw grayiconecolor"></i> Dashboard</a> class="fa fa-dashboard fa-fw grayiconecolor"></i>{% trans " Dashboard" %}</a>
</li> </li>
<li> <li>
<a {% ifequal request.path "/api_key_management/" %} class="active" {% endifequal %} <a {% ifequal request.path "/api_key_management/" %} class="active" {% endifequal %}
href="{% url 'auth_api_key_management' %}"><i href="{% url 'auth_api_key_management' %}"><i
class="fa fa-key fa-fw grayiconecolor"></i> Api Keys</a> class="fa fa-key fa-fw grayiconecolor"></i>{% trans " Api Keys" %}</a>
</li> </li>
<li> <li>
<a {% ifequal request.path "/characters/" %} class="active" {% endifequal %} <a {% ifequal request.path "/characters/" %} class="active" {% endifequal %}
href="{% url 'auth_characters' %}"><i href="{% url 'auth_characters' %}"><i
class="fa fa-users fa-fw grayiconecolor"></i> Characters</a> class="fa fa-users fa-fw grayiconecolor"></i>{% trans " Characters" %}</a>
</li> </li>
{% if perms.auth.member %} {% if perms.auth.member %}
<li> <li>
<a {% ifequal request.path "/groups/" %} class="active" {% endifequal %} <a {% ifequal request.path "/groups/" %} class="active" {% endifequal %}
href="{% url 'auth_groups' %}"><i href="{% url 'auth_groups' %}"><i
class="fa fa-cogs fa-sitemap grayiconecolor"></i> Groups</a> class="fa fa-cogs fa-sitemap grayiconecolor"></i>{% trans " Groups" %}</a>
</li> </li>
{% endif %} {% endif %}
<li> <li>
<a {% ifequal request.path "/help/" %} class="active" {% endifequal %} <a {% ifequal request.path "/help/" %} class="active" {% endifequal %}
href="{% url 'auth_help' %}"><i href="{% url 'auth_help' %}"><i
class="fa fa-question fa-fw grayiconecolor"></i> Help</a> class="fa fa-question fa-fw grayiconecolor"></i>{% trans " Help" %}</a>
</li> </li>
<li class="text-center divider-horizontal"> <li class="text-center divider-horizontal">
<h5>Aux Navigation</h5> <h5>{% trans "Aux Navigation" %}</h5>
</li> </li>
{% if perms.auth.member or perms.auth.blue_member %} {% if perms.auth.member or perms.auth.blue_member %}
<li> <li>
<a {% ifequal request.path "/services/" %} class="active" {% endifequal %} <a {% ifequal request.path "/services/" %} class="active" {% endifequal %}
href="{% url 'auth_services' %}"><i href="{% url 'auth_services' %}"><i
class="fa fa-cogs fa-fw grayiconecolor"></i> Services</a> class="fa fa-cogs fa-fw grayiconecolor"></i>{% trans " Services" %}</a>
</li> </li>
{% endif %} {% endif %}
@ -120,7 +144,7 @@
<a {% ifequal request.path "/hr_application_management/" %} <a {% ifequal request.path "/hr_application_management/" %}
class="active" {% endifequal %} class="active" {% endifequal %}
href="{% url 'auth_hrapplications_view' %}"><i href="{% url 'auth_hrapplications_view' %}"><i
class="fa fa-file-o fa-fw grayiconecolor"></i> Applications</a> class="fa fa-file-o fa-fw grayiconecolor"></i>{% trans " Applications" %}</a>
</li> </li>
{% endif %} {% endif %}
@ -128,7 +152,7 @@
<li> <li>
<a {% ifequal request.path "/corputils/" %} class="active" {% endifequal %} <a {% ifequal request.path "/corputils/" %} class="active" {% endifequal %}
href="{% url 'auth_corputils' %}"><i href="{% url 'auth_corputils' %}"><i
class="fa fa-share-alt fa-fw grayiconecolor"></i> Corporation Stats</a> class="fa fa-share-alt fa-fw grayiconecolor"></i>{% trans " Corporation Stats" %}</a>
</li> </li>
{% endif %} {% endif %}
@ -136,7 +160,7 @@
<li> <li>
<a {% ifequal request.path "/user/group_management/" %} class="active" {% endifequal %} <a {% ifequal request.path "/user/group_management/" %} class="active" {% endifequal %}
href="{% url 'auth_group_management' %}"><i href="{% url 'auth_group_management' %}"><i
class="fa fa-lock fa-sitemap grayiconecolor"></i> Group Management</a> class="fa fa-lock fa-sitemap grayiconecolor"></i>{% trans " Group Management" %}</a>
</li> </li>
{% endif %} {% endif %}
@ -144,7 +168,7 @@
<li> <li>
<a {% ifequal request.path "/fits" %} class="active" {% endifequal %} <a {% ifequal request.path "/fits" %} class="active" {% endifequal %}
href="{% url 'auth_fleet_fits' %}"><i href="{% url 'auth_fleet_fits' %}"><i
class="fa fa-bolt fa-fw grayiconecolor"></i> Fleet Doctrines</a> class="fa fa-bolt fa-fw grayiconecolor"></i>{% trans " Fleet Doctrines" %}</a>
</li> </li>
<li> <li>
<a {% ifequal request.path "/fleetup" %} class="active" {% endifequal %} <a {% ifequal request.path "/fleetup" %} class="active" {% endifequal %}
@ -159,21 +183,21 @@
<li> <li>
<a {% ifequal request.path "/sigtracker" %} class="active" {% endifequal %} <a {% ifequal request.path "/sigtracker" %} class="active" {% endifequal %}
href="{% url 'auth_signature_view' %}"><i href="{% url 'auth_signature_view' %}"><i
class="fa fa-compass fa-fw grayiconecolor"></i> Wormhole Tracker</a> class="fa fa-compass fa-fw grayiconecolor"></i>{% trans " Wormhole Tracker" %}</a>
</li> </li>
{% endif %} {% endif %}
{% if perms.auth.optimer_view %} {% if perms.auth.optimer_view %}
<li> <li>
<a {% ifequal request.path "/optimer" %} class="active" {% endifequal %} <a {% ifequal request.path "/optimer" %} class="active" {% endifequal %}
href="{% url 'auth_optimer_view' %}"><i href="{% url 'auth_optimer_view' %}"><i
class="fa fa-exclamation fa-fw grayiconecolor"></i> Fleet Operations</a> class="fa fa-exclamation fa-fw grayiconecolor"></i>{% trans " Fleet Operations" %}</a>
</li> </li>
{% endif %} {% endif %}
{% if perms.auth.timer_view %} {% if perms.auth.timer_view %}
<li> <li>
<a {% ifequal request.path "/timer_management" %} class="active" {% endifequal %} <a {% ifequal request.path "/timer_management" %} class="active" {% endifequal %}
href="{% url 'auth_timer_view' %}"><i href="{% url 'auth_timer_view' %}"><i
class="fa fa-clock-o fa-fw grayiconecolor"></i> Structure Timers</a> class="fa fa-clock-o fa-fw grayiconecolor"></i>{% trans " Structure Timers" %}</a>
</li> </li>
{% endif %} {% endif %}
@ -186,19 +210,19 @@
<li> <li>
<a {% ifequal request.path "/srp/" %} class="active" {% endifequal %} <a {% ifequal request.path "/srp/" %} class="active" {% endifequal %}
href="{% url 'auth_srp_management_view' %}"><i href="{% url 'auth_srp_management_view' %}"><i
class="fa fa-money fa-fw grayiconecolor"></i> Ship Replacement</a> class="fa fa-money fa-fw grayiconecolor"></i>{% trans " Ship Replacement" %}</a>
</li> </li>
{% endif %} {% endif %}
<li class="text-center divider-horizontal"> <li class="text-center divider-horizontal">
<h5>Util</h5> <h5>{% trans "Util" %}</h5>
</li> </li>
<li> <li>
<a {% ifequal request.path "/user/password/" %} class="active" {% endifequal %} <a {% ifequal request.path "/user/password/" %} class="active" {% endifequal %}
href="{% url 'password_change' %}"><i href="{% url 'password_change' %}"><i
class="fa fa-lock fa-fw grayiconecolor"></i>Change Password</a> class="fa fa-lock fa-fw grayiconecolor"></i>{% trans "Change Password" %}</a>
</li> </li>
{% if perms.auth.member or perms.auth.blue_member %} {% if perms.auth.member or perms.auth.blue_member %}
@ -206,7 +230,7 @@
<a {% ifequal request.path "/tool/fleet_formatter_tool/" %} <a {% ifequal request.path "/tool/fleet_formatter_tool/" %}
class="active" {% endifequal %} class="active" {% endifequal %}
href="{% url 'auth_fleet_format_tool_view' %}"><i href="{% url 'auth_fleet_format_tool_view' %}"><i
class="fa fa-space-shuttle fa-fw grayiconecolor"></i> Fleet Broadcast Formatter</a> class="fa fa-space-shuttle fa-fw grayiconecolor"></i>{% trans " Fleet Broadcast Formatter" %}</a>
</li> </li>
{% endif %} {% endif %}
@ -214,7 +238,7 @@
<li> <li>
<a {% ifequal request.path "/services/jabber_broadcast/" %} <a {% ifequal request.path "/services/jabber_broadcast/" %}
class="active" {% endifequal %} href="{% url 'auth_jabber_broadcast_view' %}"><i class="active" {% endifequal %} href="{% url 'auth_jabber_broadcast_view' %}"><i
class="fa fa-lock fa-bullhorn grayiconecolor"></i> Jabber Broadcast</a> class="fa fa-lock fa-bullhorn grayiconecolor"></i>{% trans " Jabber Broadcast" %}</a>
</li> </li>
{% endif %} {% endif %}
</ul> </ul>

View File

@ -1,5 +1,6 @@
{% load staticfiles %} {% load staticfiles %}
{% load bootstrap %} {% load bootstrap %}
{% load i18n %}
<html> <html>
<html lang="en"> <html lang="en">
@ -37,36 +38,56 @@
.panel-body { .panel-body {
} }
#lang_select {
width: 40%;
margin-left: auto;
margin-right: auto;
}
</style> </style>
</head> </head>
<body> <body>
<div class="container" style="margin-top:150px"> <div class="container" style="margin-top:150px">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="panel panel-default panel-transparent"> <div class="panel panel-default panel-transparent">
<div class="panel-body"> <div class="panel-body">
{% if error %} {% if error %}
<div class="alert alert-danger" role="alert">Username/Password Invalid</div> <div class="alert alert-danger" role="alert">{% trans "Username/Password Invalid" %}</div>
{% endif %} {% endif %}
<a href="{% url 'auth_register_user' %}"> <a href="{% url 'auth_register_user' %}">
<button class="btn btn- btn-success btn-block">Register</button> <button class="btn btn- btn-success btn-block">{% trans "Register" %}</button>
</a> </a>
<form class="form-signin" role="form" action="{% url 'auth_login_user' %}" method="POST"> <form class="form-signin" role="form" action="{% url 'auth_login_user' %}" method="POST">
{% csrf_token %} {% csrf_token %}
<h2 class="form-signin-heading text-center">Please sign in</h2> <h2 class="form-signin-heading text-center">{% trans "Please sign in" %}</h2>
{{ form|bootstrap }} {{ form|bootstrap }}
<div class="col-md-6"> <div class="col-md-6">
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button> <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Sign in" %}</button>
</div> </div>
</form> </form>
<div class="col-md-6"> <div class="col-md-6">
<a href="{% url 'password_reset' %}"> <a href="{% url 'password_reset' %}">
<button class="btn btn-lg btn-danger btn-block">Reset</button> <button class="btn btn-lg btn-danger btn-block">{% trans "Reset" %}</button>
</a> </a>
</div> </div>
</div> </div>
</div> </div>
<div class="dropdown">
<form action="{% url 'set_language' %}" method="post">
{% csrf_token %}
<input name="next" type="hidden" value="{{ request.get_full_path|slice:'3:' }}" />
<select onchange="this.form.submit()" class="form-control" id="lang_select" name="language">
{% get_language_info_list for LANGUAGES as languages %}
{% for language in languages %}
<option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>
{{ language.name_local }} ({{ language.code }})
</option>
{% endfor %}
</select>
</form>
</div>
</div> </div>
</div> </div>
</body> </body>

View File

@ -1,5 +1,6 @@
{% load staticfiles %} {% load staticfiles %}
{% load bootstrap %} {% load bootstrap %}
{% load i18n %}
<html> <html>
<head> <head>
@ -38,6 +39,12 @@
.panel-body { .panel-body {
} }
#lang_select {
width: 40%;
margin-left: auto;
margin-right: auto;
}
</style> </style>
</head> </head>
<body> <body>
@ -46,15 +53,31 @@
<div class="panel panel-default panel-transparent"> <div class="panel panel-default panel-transparent">
<div class="panel-body"> <div class="panel-body">
{% if error %} {% if error %}
<div class="alert alert-danger" role="alert">Username Already Registered</div> <div class="alert alert-danger" role="alert">{% trans "Username Already Registered" %}</div>
{% endif %} {% endif %}
<form action="{% url 'auth_register_user' %}" method="POST"> <form action="{% url 'auth_register_user' %}" method="POST">
{% csrf_token %} {% csrf_token %}
<h2 class="form-signin-heading">Register Account</h2> <h2 class="form-signin-heading">{% trans "Register Account" %}</h2>
{{ form|bootstrap }} {{ form|bootstrap }}
<button class="btn btn-lg btn-primary btn-block" type="submit">Register</button> <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Register" %}</button>
</form>
</div> </div>
</div> </div>
<div class="dropdown">
<form action="{% url 'set_language' %}" method="post">
{% csrf_token %}
<input name="next" type="hidden" value="{{ request.get_full_path|slice:'3:' }}" />
<select onchange="this.form.submit()" class="form-control" id="lang_select" name="language">
{% get_language_info_list for LANGUAGES as languages %}
{% for language in languages %}
<option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>
{{ language.name_local }} ({{ language.code }})
</option>
{% endfor %}
</select>
</form>
</div>
</div> </div>
</div> </div>
</body> </body>

View File

@ -1,6 +1,7 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
@ -9,43 +10,43 @@
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Add Api Key</h1> <h1 class="page-header text-center">{% trans "Add Api Key" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="row"> <div class="row">
<p class="text-center"> <p class="text-center">
Member API keys require access mask {{MEMBER_API_MASK}} or greater for services. {% blocktrans %}Member API keys require access mask {{MEMBER_API_MASK}} or greater for services.{% endblocktrans %}
</p> </p>
{% if MEMBER_API_ACCOUNT %} {% if MEMBER_API_ACCOUNT %}
<p class="text-center"> <p class="text-center">
Member API keys need to be account-wide. {% trans "Member API keys need to be account-wide." %}
</p> </p>
{% endif %} {% endif %}
<p class="text-center"> <p class="text-center">
<a target="_blank" {% blocktrans %}<a target="_blank"
href="https://community.eveonline.com/support/api-key/CreatePredefined?accessMask={{MEMBER_API_MASK}}">Create href="https://community.eveonline.com/support/api-key/CreatePredefined?accessMask={{MEMBER_API_MASK}}">Create
a full API key</a> a full API key</a>{% endblocktrans %}
</p> </p>
<p class="text-center"> <p class="text-center">
Blue API keys require access mask {{BLUE_API_MASK}} or greater for services. {% blocktrans %}Blue API keys require access mask {{BLUE_API_MASK}} or greater for services.{% endblocktrans %}
</p> </p>
{% if BLUE_API_ACCOUNT %} {% if BLUE_API_ACCOUNT %}
<p class="text-center"> <p class="text-center">
BLUE API keys need to be account-wide. {% trans "BLUE API keys need to be account-wide." %}
</p> </p>
{% endif %} {% endif %}
<p class="text-center"> <p class="text-center">
<a target="_blank" {% blocktrans %}<a target="_blank"
href="https://community.eveonline.com/support/api-key/CreatePredefined?accessMask={{BLUE_API_MASK}}">Create href="https://community.eveonline.com/support/api-key/CreatePredefined?accessMask={{BLUE_API_MASK}}">Create
a blue key</a> a blue key</a>{% endblocktrans %}
</p> </p>
<form class="form-signin" role="form" action="{% url 'auth_add_api_key' %}" method="POST"> <form class="form-signin" role="form" action="{% url 'auth_add_api_key' %}" method="POST">
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Add Key</button> <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Add Key" %}</button>
</form> </form>
</div> </div>
</div> </div>

View File

@ -1,16 +1,18 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block title %}Alliance Auth - Fleet Operation Create{% endblock %} {% block title %}Alliance Auth - Fleet Operation Create{% endblock %}
{% block page_title %}Create Operation{% endblock page_title %} {% block page_title %}{% trans "Create Operation" %}{% endblock page_title %}
{% block extra_css %} {% block extra_css %}
<link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %} <link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Create Fleet Operation</h1> <h1 class="page-header text-center">{% trans "Create Fleet Operation" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
@ -19,7 +21,7 @@
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Create Fleet Operation</button> <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Create Fleet Operation" %}</button>
</form> </form>
</div> </div>
</div> </div>
@ -31,6 +33,7 @@
{% block extra_script %} {% block extra_script %}
$('#id_start').datetimepicker({ $('#id_start').datetimepicker({
lang: '{{ LANGUAGE_CODE }}',
maskInput: true, maskInput: true,
format: 'Y-m-d H:i',minDate:0 format: 'Y-m-d H:i',minDate:0
}); });

View File

@ -1,16 +1,17 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth - Signature Create{% endblock %} {% block title %}Alliance Auth - Signature Create{% endblock %}
{% block page_title %}Create Signature{% endblock page_title %} {% block page_title %}{% trans "Create Signature" %}{% endblock page_title %}
{% block extra_css %} {% block extra_css %}
<link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %} <link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Create Signature</h1> <h1 class="page-header text-center">{% trans "Create Signature" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
@ -19,7 +20,7 @@
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Create Signature</button> <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Create Signature" %}</button>
</form> </form>
</div> </div>
</div> </div>

View File

@ -1,16 +1,18 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block title %}Alliance Auth - Structure Timer Create{% endblock %} {% block title %}Alliance Auth - Structure Timer Create{% endblock %}
{% block page_title %}Timer Create{% endblock page_title %} {% block page_title %}{% trans "Timer Create" %}{% endblock page_title %}
{% block extra_css %} {% block extra_css %}
<link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %} <link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Create Structure Timer</h1> <h1 class="page-header text-center">{% trans "Create Structure Timer" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
@ -19,7 +21,7 @@
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Create Timer</button> <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Create Timer" %}</button>
</form> </form>
</div> </div>
</div> </div>
@ -31,6 +33,7 @@
{% block extra_script %} {% block extra_script %}
$('#id_eve_time').datetimepicker({ $('#id_eve_time').datetimepicker({
lang: '{{ LANGUAGE_CODE }}',
maskInput: true, maskInput: true,
format: 'Y-m-d H:i',minDate:0 format: 'Y-m-d H:i',minDate:0
}); });

View File

@ -1,10 +1,11 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}API Key Management{% endblock page_title %} {% block page_title %}{% trans "API Key Management" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
@ -12,20 +13,20 @@
<div class="row"> <div class="row">
{% if apikeypairs %} {% if apikeypairs %}
{% else %} {% else %}
<div class="alert alert-danger" role="alert">No api keys found</div> <div class="alert alert-danger" role="alert">{% trans "No api keys found" %}</div>
{% endif %} {% endif %}
<h1 class="page-header text-center">API Key Management <h1 class="page-header text-center">{% trans "API Key Management" %}
<div class="text-right"> <div class="text-right">
<a href="{% url 'auth_add_api_key' %}"> <a href="{% url 'auth_add_api_key' %}">
<button type="button" class="btn btn-success">Add Key</button> <button type="button" class="btn btn-success">{% trans "Add Key" %}</button>
</a> </a>
</div> </div>
</h1> </h1>
<table class="table table-bordered"> <table class="table table-bordered">
<tr> <tr>
<th class="text-center">API ID</th> <th class="text-center">{% trans "API ID" %}</th>
<th class="text-center">API Key</th> <th class="text-center">{% trans "API Key" %}</th>
<th class="text-center">Action</th> <th class="text-center">{% trans "Action" %}</th>
</tr> </tr>
{% for pair in apikeypairs %} {% for pair in apikeypairs %}
<tr> <tr>

View File

@ -1,20 +1,21 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Characters{% endblock page_title %} {% block page_title %}{% trans "Characters" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12 container"> <div class="col-lg-12 container">
<h1 class="page-header text-center">Characters</h1> <h1 class="page-header text-center">{% trans "Characters" %}</h1>
<div class="col-lg-12 container" id="example"> <div class="col-lg-12 container" id="example">
{% if authinfo.main_char_id %} {% if authinfo.main_char_id %}
{% else %} {% else %}
<div class="alert alert-danger" role="alert">No primary character set</div> <div class="alert alert-danger" role="alert">{% trans "No primary character set" %}</div>
{% endif %} {% endif %}
<div class="row"> <div class="row">
{% for character in characters %} {% for character in characters %}
@ -31,13 +32,13 @@
<div class="text-right col-md-4"> <div class="text-right col-md-4">
<a href="/main_character_change/{{ character.character_id }}"> <a href="/main_character_change/{{ character.character_id }}">
{% ifequal character.character_id authinfo.main_char_id %} {% ifequal character.character_id authinfo.main_char_id %}
<button type="button" class="btn btn-default btn-xs"> {% blocktrans %}<button type="button" class="btn btn-default btn-xs">
Refresh Primary Refresh Primary
</button> </button>{% endblocktrans %}
{% else %} {% else %}
<button type="button" class="btn btn-primary btn-xs">Make {% blocktrans %}<button type="button" class="btn btn-primary btn-xs">Make
Primary Primary
</button> </button>{% endblocktrans %}
{% endifequal %} {% endifequal %}
</a> </a>
</div> </div>
@ -53,11 +54,11 @@
</div> </div>
<div class="col-lg-7 col-sm-2"> <div class="col-lg-7 col-sm-2">
<p><strong>Alliance: </strong> {{ character.alliance_name }} </p> <p><strong>{% trans "Alliance: " %}</strong> {{ character.alliance_name }} </p>
<p><strong>Corporation: </strong>{{ character.corporation_name }}</p> <p><strong>{% trans "Corporation: " %}</strong>{{ character.corporation_name }}</p>
<p><strong>Corporation Ticker: </strong> {{ character.corporation_ticker }} </p> <p><strong>{% trans "Corporation Ticker: " %}</strong> {{ character.corporation_ticker }} </p>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,20 +1,21 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Corporation Member Tracking{% endblock page_title %} {% block page_title %}{% trans "Corporation Member Tracking" %}{% endblock page_title %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Corporation Member Data</h1> <h1 class="page-header text-center">{% trans "Corporation Member Data" %}</h1>
<div class="col-lg-12 container" id="example"> <div class="col-lg-12 container" id="example">
{% if corp %} {% if corp %}
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading">Corporation</div> <div class="panel-heading">{% trans "Corporation" %}</div>
<div class="panel-body"> <div class="panel-body">
<div class="col-lg-5 col-sm-2"> <div class="col-lg-5 col-sm-2">
<img class="ra-avatar img-responsive" src="https://image.eveonline.com/Corporation/{{ corp.corporation_id }}_128.png"> <img class="ra-avatar img-responsive" src="https://image.eveonline.com/Corporation/{{ corp.corporation_id }}_128.png">
@ -22,16 +23,16 @@
<div class="col-lg-7 col-sm-2"> <div class="col-lg-7 col-sm-2">
<h4 class="">{{ corp.corporation_name }}</h4> <h4 class="">{{ corp.corporation_name }}</h4>
<p>Ticker: {{ corp.corporation_ticker }}</p> <p>{% trans "Ticker:" %} {{ corp.corporation_ticker }}</p>
<p>Member count: {{ corp.member_count }}</p> <p>{% trans "Member count:" %} {{ corp.member_count }}</p>
<p>Player count: {{characters_with_api|length}}</p> <p>{% trans "Player count:" %} {{characters_with_api|length}}</p>
<p>Unregistered characters: {{characters_without_api|length|add:n_unacounted}}</p> <p>{% trans "Unregistered characters:" %} {{characters_without_api|length|add:n_unacounted}}</p>
</div> </div>
<div class="col-lg-12 col-sm-5"> <div class="col-lg-12 col-sm-5">
<b>API Index:</b> <b>{% trans "API Index:" %}</b>
<div class="progress"> <div class="progress">
<div class="progress-bar progress-bar-striped" role="progressbar" aria-valuenow="{{ n_registered }}" aria-valuemin="0" aria-valuemax="{{ corp.member_count }}" style="width: {% widthratio characters_with_api|length corp.member_count 100 %}%;"> <div class="progress-bar progress-bar-striped" role="progressbar" aria-valuenow="{{ n_registered }}" aria-valuemin="0" aria-valuemax="{{ corp.member_count }}" style="width: {% widthratio characters_with_api|length corp.member_count 100 %}%;">
{{n_registered}}/{{ corp.member_count }} {{n_registered}}/{{ corp.member_count }}
@ -47,11 +48,11 @@
<ul class="nav navbar-nav navbar-wide"> <ul class="nav navbar-nav navbar-wide">
{% if membercorplist and perms.auth.alliance_apis %} {% if membercorplist and perms.auth.alliance_apis %}
<li class="dropdown"> <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Alliance corporations <span class="caret"></span></a> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{% trans "Alliance corporations" %} <span class="caret"></span></a>
<ul class="dropdown-menu scrollable"> <ul class="dropdown-menu scrollable">
{% for membercorpid, membercorpname in membercorplist %} {% for membercorpid, membercorpname in membercorplist %}
<li> <li>
<a href="/corputils/{{ membercorpid }}">{{ membercorpname }}</a> <a href="/corputils/{{ membercorpid }}/">{{ membercorpname }}</a>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
@ -76,7 +77,7 @@
</li> </li>
<li style="float: right"> <li style="float: right">
<p class="navbar-btn"> <p class="navbar-btn">
<a href="https://zkillboard.com/corporation/{{ corp.corporation_id }}/" class="btn btn-default" target="_blank">{{ corp.corporation_name }} Killboard</a> <a href="https://zkillboard.com/corporation/{{ corp.corporation_id }}/" class="btn btn-default" target="_blank">{{ corp.corporation_name }} {% trans "Killboard" %}</a>
</p> </p>
</li> </li>
<li style="float: right"> <li style="float: right">
@ -85,15 +86,15 @@
{% csrf_token %} {% csrf_token %}
{{ search_form.as_table }} {{ search_form.as_table }}
</div> </div>
<button class="btn btn-default" type="submit">Search</button> <button class="btn btn-default" type="submit">{% trans "Search" %}</button>
</form> </form>
</li> </li>
</ul> </ul>
</div> </div>
</nav> </nav>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#gotapi">Registered Main Characters <b>({{characters_with_api|length}})</b></a></li> <li class="active"><a data-toggle="tab" href="#gotapi">{% blocktrans %}Registered Main Characters{% endblocktrans %} <b>({{characters_with_api|length}})</b></a></li>
<li><a data-toggle="tab" href="#noapi">Characters without API <b>({{characters_without_api|length|add:n_unacounted}})</b></a></li> <li><a data-toggle="tab" href="#noapi">{% blocktrans %}Characters without API{% endblocktrans %} <b>({{characters_without_api|length|add:n_unacounted}})</b></a></li>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<div id="gotapi" class="tab-pane fade in active"> <div id="gotapi" class="tab-pane fade in active">
@ -103,17 +104,17 @@
<table class="table table-condensed table-hover table-striped"> <table class="table table-condensed table-hover table-striped">
<tr> <tr>
<th class="col-md-1"></th> <th class="col-md-1"></th>
<th class="col-md-2">Main character</th> <th class="col-md-2">{% trans "Main character" %}</th>
<th class="col-md-2">Main corporation</th> <th class="col-md-2">{% trans "Main corporation" %}</th>
<th class="col-md-2">Character list</th> <th class="col-md-2">{% trans "Character list" %}</th>
<th class="col-md-1">Fats</th> <th class="col-md-1">{% trans "Fats" %}</th>
{% if perms.auth.fleetactivitytracking_statistics %} {% if perms.auth.fleetactivitytracking_statistics %}
<th class="col-md-1">Killboard</th> <th class="col-md-3">{% trans "Killboard" %}</th>
<th class="col-md-2">Fleet statistics</th> <th class="col-md-2">{% trans "Fleet statistics" %}</th>
{% else %} {% else %}
<th class="col-md-3">Killboard</th> <th class="col-md-3">{% trans "Killboard" %}</th>
{% endif %} {% endif %}
<th class="col-md-2">API JackKnife</th> <th class="col-md-2">{% trans "API JackKnife" %}</th>
</tr> </tr>
{% for maincharname, player in characters_with_api %} {% for maincharname, player in characters_with_api %}
<tr > <tr >
@ -144,7 +145,7 @@
</td> </td>
<td> <td>
{% for char in player.altlist %} {% for char in player.altlist %}
<p><a href="https://zkillboard.com/character/{{ char.character_id }}/" class="label label-danger" target="_blank">Killboard</a></p> <p><a href="https://zkillboard.com/character/{{ char.character_id }}/" class="label label-danger" target="_blank">{% trans "Killboard" %}</a></p>
{% endfor %} {% endfor %}
</td> </td>
{% if perms.auth.fleetactivitytracking %} {% if perms.auth.fleetactivitytracking %}
@ -160,7 +161,7 @@
<p> <p>
<a href="{{ JACK_KNIFE_URL }}?usid={{ apiinfo.api_id }}&apik={{ apiinfo.api_key }}" <a href="{{ JACK_KNIFE_URL }}?usid={{ apiinfo.api_id }}&apik={{ apiinfo.api_key }}"
target="_blank"> target="_blank">
<button type="button" class="btn btn-primary">API JackKnife <button type="button" class="btn btn-primary">{% trans "API JackKnife" %}
</button> </button>
</a> </a>
</p> </p>
@ -173,7 +174,7 @@
</div> </div>
{% else %} {% else %}
<div class="alert alert-danger" role="alert"> <div class="alert alert-danger" role="alert">
<h3>Seems there are no characters in {{ corp.corporation_name }} tied to a registered API!</h3> <h3>{% blocktrans %}Seems there are no characters in {{ corp.corporation_name }} tied to a registered API!{% endblocktrans %}</h3>
</div> </div>
{% endif %} {% endif %}
</div> </div>
@ -183,14 +184,14 @@
<div class="table-responsive"> <div class="table-responsive">
{% if 0 < n_unacounted %} {% if 0 < n_unacounted %}
<div class="alert alert-danger" role="alert"> <div class="alert alert-danger" role="alert">
<h3>There are atleast {{ n_unacounted }} characters not accounted for in EveWho.</h3> <h3>{% blocktrans %}There are atleast {{ n_unacounted }} characters not accounted for in EveWho.{% endblocktrans %}</h3>
</div> </div>
{% endif %} {% endif %}
<table class="table table-condensed table-hover table-striped"> <table class="table table-condensed table-hover table-striped">
<tr> <tr>
<th class="col-md-1"></th> <th class="col-md-1"></th>
<th class="col-md-2">Character</th> <th class="col-md-2">{% trans "Character" %}</th>
<th class="col-md-5">Killboard</th> <th class="col-md-5">{% trans "Killboard" %}</th>
</tr> </tr>
{% for character_name, character_id in characters_without_api %} {% for character_name, character_id in characters_without_api %}
<tr> <tr>
@ -201,7 +202,7 @@
<p>{{ character_name }}</p> <p>{{ character_name }}</p>
</td> </td>
<td> <td>
<a href="https://zkillboard.com/character/{{ character_id }}/" class="label label-danger" target="_blank">Killboard</a> <a href="https://zkillboard.com/character/{{ character_id }}/" class="label label-danger" target="_blank">{% trans "Killboard" %}</a>
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}
@ -210,7 +211,7 @@
</div> </div>
{% else %} {% else %}
<div class="alert alert-success" role="alert"> <div class="alert alert-success" role="alert">
<h3>Good job! Every character in {{ corp.corporation_name }} seem to be tied to an API!</h3> <h3>{% blocktrans %}Good job! Every character in {{ corp.corporation_name }} seem to be tied to an API!{% endblocktrans %}</h3>
</div> </div>
{% endif %} {% endif %}
</div> </div>
@ -219,7 +220,7 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="row"> <div class="row">
<div class="alert alert-danger text-center" role="alert">No corporation model found. Contact your admin.</div> <div class="alert alert-danger text-center" role="alert">{% trans "No corporation model found. Contact your admin." %}</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,16 +1,17 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Corporation Member Tracking{% endblock page_title %} {% block page_title %}{% trans "Corporation Member Tracking" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
{% if perms.auth.corputils %} {% if perms.auth.corputils %}
<h1 class="page-header text-center">Member Search Results <h1 class="page-header text-center">{% trans "Member Search Results" %}
</h1> </h1>
<h2 class="text-center"><a href="{% url 'auth_corputils' %}{{ corp.corporation_id }}">{{ corp.corporation_name }}</a></h2> <h2 class="text-center"><a href="{% url 'auth_corputils' %}{{ corp.corporation_id }}">{{ corp.corporation_name }}</a></h2>
<div class="container-fluid"> <div class="container-fluid">
@ -25,7 +26,7 @@
{% csrf_token %} {% csrf_token %}
{{ search_form.as_table }} {{ search_form.as_table }}
</div> </div>
<button class="btn btn-default" type="submit">Search</button> <button class="btn btn-default" type="submit">{% trans "Search" %}</button>
</form> </form>
</li> </li>
</ul> </ul>
@ -35,15 +36,15 @@
<table class="table table-condensed table-hover table-striped"> <table class="table table-condensed table-hover table-striped">
<tr> <tr>
<th class="col-md-1"></th> <th class="col-md-1"></th>
<th class="col-md-2">Character</th> <th class="col-md-2">{% trans "Character" %}</th>
<th class="col-md-2">Main character</th> <th class="col-md-2">{% trans "Main character" %}</th>
{% if perms.auth.fleetactivitytracking%} {% if perms.auth.fleetactivitytracking%}
<th class="col-md-2">Killboard</th> <th class="col-md-5">{% trans "Killboard" %}</th>
<th class="col-md-2">Fleet statistics</th> <th class="col-md-2">{% trans "Fleet statistics" %}</th>
{% else %} {% else %}
<th class="col-md-5">Killboard</th> <th class="col-md-5">{% trans "Killboard" %}</th>
{% endif %} {% endif %}
<th class="col-md-2">API JackKnife</th> <th class="col-md-2">{% trans "API JackKnife" %}</th>
</tr> </tr>
{% for result in results %} {% for result in results %}
<tr > <tr >
@ -55,11 +56,11 @@
{% if result.api_registered%} {% if result.api_registered%}
{{ result.main.character_name }} {{ result.main.character_name }}
{% else %} {% else %}
<span class="label label-danger">No API registered!</span> <span class="label label-danger">{% trans "No API registered!" %}</span>
{% endif %} {% endif %}
</td> </td>
<td> <td>
<p><a href="https://zkillboard.com/character/{{ result.char.character_id }}/" class="label label-danger" target="_blank">Killboard</a></p> <p><a href="https://zkillboard.com/character/{{ result.char.character_id }}/" class="label label-danger" target="_blank">{% trans "Killboard" %}</a></p>
</td> </td>
{% if perms.auth.fleetactivitytracking %} {% if perms.auth.fleetactivitytracking %}
@ -79,7 +80,7 @@
{% if result.api_registered %} {% if result.api_registered %}
<a href="{{ JACK_KNIFE_URL }}?usid={{ result.apiinfo.api_id }}&apik={{ result.apiinfo.api_key }}" <a href="{{ JACK_KNIFE_URL }}?usid={{ result.apiinfo.api_id }}&apik={{ result.apiinfo.api_key }}"
target="_blank"> target="_blank">
<button type="button" class="btn btn-primary">API JackKnife <button type="button" class="btn btn-primary">{% trans "API JackKnife" %}
</button> </button>
</a> </a>
{% endif %} {% endif %}

View File

@ -1,11 +1,12 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Dashboard{% endblock page_title %} {% block page_title %}{% trans "Dashboard" %}{% endblock page_title %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Dashboard</h1> <h1 class="page-header text-center">{% trans "Dashboard" %}</h1>
{% if perms.auth.member %} {% if perms.auth.member %}
<div class="col-lg-12 container" id="example"> <div class="col-lg-12 container" id="example">
@ -15,7 +16,7 @@
{% for character in characters %} {% for character in characters %}
{% ifequal character.character_id authinfo.main_char_id %} {% ifequal character.character_id authinfo.main_char_id %}
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading">Main character</div> <div class="panel-heading">{% trans "Main character" %}</div>
<div class="panel-body"> <div class="panel-body">
<div class="col-lg-5 col-sm-2"><img class= <div class="col-lg-5 col-sm-2"><img class=
@ -39,7 +40,7 @@
<div class="col-lg-6"> <div class="col-lg-6">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading">Groups</div> <div class="panel-heading">{% trans "Groups" %}</div>
<div class="panel-body"> <div class="panel-body">
<div style="height: 128px;overflow:-moz-scrollbars-vertical;overflow-y:auto;"> <div style="height: 128px;overflow:-moz-scrollbars-vertical;overflow-y:auto;">
<table class="table table-striped"> <table class="table table-striped">
@ -60,9 +61,9 @@
</div> </div>
{% else %} {% else %}
{% if IS_CORP %} {% if IS_CORP %}
<div class="alert alert-danger" role="alert">Not a part of the corporation.</div> <div class="alert alert-danger" role="alert">{% trans "Not a part of the corporation." %}</div>
{% else %} {% else %}
<div class="alert alert-danger" role="alert">Not a part of the alliance.</div> <div class="alert alert-danger" role="alert">{% trans "Not a part of the alliance." %}</div>
{% endif %} {% endif %}
{% endif %} {% endif %}
</div> </div>

View File

@ -1,30 +1,31 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Jabber Broadcast{% endblock page_title %} {% block page_title %}{% trans "Jabber Broadcast" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Discord Connection</h1> <h1 class="page-header text-center">{% trans "Discord Connection" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="row"> <div class="row">
{% if success %} {% if success %}
<div class="alert alert-success" role="alert">Account Linked</div> <div class="alert alert-success" role="alert">{% trans "Account Linked" %}</div>
{% endif %} {% endif %}
<p>Enter your Discord account credentials below. These are not stored: they are needed to determine your user ID and make you join the server.</p> <p>{% trans "Enter your Discord account credentials below. These are not stored: they are needed to determine your user ID and make you join the server." %}</p>
<p>If you do not have a Discord account, please create one <a href="https://discordapp.com">on their site</a> and report back with the credentials.</p> <p>{% trans "If you do not have a Discord account, please create one <a href="https://discordapp.com">on their site</a> and report back with the credentials." %}</p>
<form class="form-signin" role="form" action="" method="POST" <form class="form-signin" role="form" action="" method="POST"
onsubmit="submitbutton.disabled = true; return true;"> onsubmit="submitbutton.disabled = true; return true;">
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" name="submitbutton" type="submit">Connect</button> <button class="btn btn-lg btn-primary btn-block" name="submitbutton" type="submit">{% trans "Connect" %}</button>
</form> </form>
</div> </div>
</div> </div>

View File

@ -4,17 +4,17 @@
{% block title %}Alliance Auth - Fatlink Create{% endblock %} {% block title %}Alliance Auth - Fatlink Create{% endblock %}
{% block page_title %}Create Fatlink{% endblock page_title %} {% block page_title %}{% trans "Create Fatlink" %}{% endblock page_title %}
{% block extra_css %} {% block extra_css %}
<link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %} <link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Create Fleet Operation</h1> <h1 class="page-header text-center">{% trans "Create Fleet Operation" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
{% if badrequest %} {% if badrequest %}
<div class="alert alert-danger" role="alert">Bad request!</div> <div class="alert alert-danger" role="alert">{% trans "Bad request!" %}</div>
{% endif %} {% endif %}
{% for message in errormessages %} {% for message in errormessages %}
<div class="alert alert-danger" role="alert">{{ message }}</div> <div class="alert alert-danger" role="alert">{{ message }}</div>
@ -25,7 +25,7 @@
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit" name="submit_fat">Create fatlink</button> <button class="btn btn-lg btn-primary btn-block" type="submit" name="submit_fat">{% trans "Create fatlink" %}</button>
</form> </form>
</div> </div>
</div> </div>

View File

@ -1,29 +1,30 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Fatlink view{% endblock page_title %} {% block page_title %}{% trans "Fatlink view" %}{% endblock page_title %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Edit fatlink "{{ fatlink.name }}" <h1 class="page-header text-center">{% blocktrans %}Edit fatlink "{{ fatlink.name }}"{% endblocktrans %}
<div class="text-right"> <div class="text-right">
<form> <form>
<button type="submit" onclick="return confirm('Are you sure?')" class="btn btn-danger" name="deletefat" value="True"> <button type="submit" onclick="return confirm('Are you sure?')" class="btn btn-danger" name="deletefat" value="True">
Delete fat {% trans "Delete fat" %}
</button> </button>
</form> </form>
</div> </div>
</h1> </h1>
<h4><b>Registered characters</b></h4> <h4><b>{% trans "Registered characters" %}</b></h4>
<table class="table table-responsive table-bordered"> <table class="table table-responsive table-bordered">
<tr> <tr>
<th class="text-center">User</th> <th class="text-center">{% trans "User" %}</th>
<th class="text-center">Character</th> <th class="text-center">{% trans "Character" %}</th>
<th class="text-center">System</th> <th class="text-center">{% trans "System" %}</th>
<th class="text-center">Ship</th> <th class="text-center">{% trans "Ship" %}</th>
<th class="text-center">Eve Time</th> <th class="text-center">{% trans "Eve Time" %}</th>
<th></th> <th></th>
</tr> </tr>
{% for fat in registered_fats %} {% for fat in registered_fats %}

View File

@ -1,29 +1,30 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Personal fatlink statistics{% endblock page_title %} {% block page_title %}{% trans "Personal fatlink statistics" %}{% endblock page_title %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Participation data statistics for {{ month }}, {{ year }} <h1 class="page-header text-center">{% trans "Participation data statistics for" %} {{ month }}, {{ year }}
{% if char_id %} {% if char_id %}
<div class="text-right"> <div class="text-right">
<a href="{% url 'auth_fatlink_view_user_statistics_month' char_id previous_month|date:"Y" previous_month|date:"m" %}"> <a href="{% url 'auth_fatlink_view_user_statistics_month' char_id previous_month|date:"Y" previous_month|date:"m" %}">
<button type="button" class="btn btn-info">Previous month</button> <button type="button" class="btn btn-info">{% trans "Previous month" %}</button>
</a> </a>
<a href="{% url 'auth_fatlink_view_user_statistics_month' char_id next_month|date:"Y" next_month|date:"m" %}"> <a href="{% url 'auth_fatlink_view_user_statistics_month' char_id next_month|date:"Y" next_month|date:"m" %}">
<button type="button" class="btn btn-info">Next month</button> <button type="button" class="btn btn-info">{% trans "Next month" %}</button>
</a> </a>
</div> </div>
{% endif %} {% endif %}
</h1> </h1>
<h2>{{ user }} has collected {{ n_fats }} links this month.</h2> <h2>{% blocktrans %}{{ user }} has collected {{ n_fats }} links this month.{% endblocktrans %}</h2>
<table class="table table-responsive table-bordered"> <table class="table table-responsive table-bordered">
<tr> <tr>
<th class="col-md-2 text-center">Ship</th> <th class="col-md-2 text-center">{% trans "Ship" %}</th>
<th class="col-md-2 text-center">Times used</th> <th class="col-md-2 text-center">{% trans "Times used" %}</th>
</tr> </tr>
{% for ship, n_fats in shipStats %} {% for ship, n_fats in shipStats %}
<tr> <tr>
@ -33,15 +34,15 @@
{% endfor %} {% endfor %}
</table> </table>
{% if created_fats %} {% if created_fats %}
<h2>{{ user }} has created {{ n_created_fats }} links this month.</h2> <h2>{% blocktrans %}{{ user }} has created {{ n_created_fats }} links this month.{% endblocktrans %}</h2>
<table class="table table-bordered"> <table class="table table-bordered">
<tr> <tr>
<th class="text-center">Name</th> <th class="text-center">{% trans "Name" %}</th>
<th class="text-center">Creator</th> <th class="text-center">{% trans "Creator" %}</th>
<th class="text-center">Fleet</th> <th class="text-center">{% trans "Fleet" %}</th>
<th class="text-center">Eve Time</th> <th class="text-center">{% trans "Eve Time" %}</th>
<th class="text-center">Duration</th> <th class="text-center">{% trans "Duration" %}</th>
<th class="text-center">Edit</th> <th class="text-center">{% trans "Edit" %}</th>
</tr> </tr>
{% for link in created_fats %} {% for link in created_fats %}
<tr> <tr>

View File

@ -3,26 +3,26 @@
{% load staticfiles %} {% load staticfiles %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Personal fatlink statistics{% endblock page_title %} {% block page_title %}{% trans "Personal fatlink statistics" %}{% endblock page_title %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Participation data statistics for {{ year }} <h1 class="page-header text-center">{% trans "Participation data statistics for" %} {{ year }}
<div class="text-right"> <div class="text-right">
<a href="{% url 'auth_fatlink_view_personal_statistics_year' previous_year %}"> <a href="{% url 'auth_fatlink_view_personal_statistics_year' previous_year %}">
<button type="button" class="btn btn-info">Previous year</button> <button type="button" class="btn btn-info">{% trans "Previous year" %}</button>
</a> </a>
{% if next_year %} {% if next_year %}
<a href="{% url 'auth_fatlink_view_personal_statistics_year' next_year %}"> <a href="{% url 'auth_fatlink_view_personal_statistics_year' next_year %}">
<button type="button" class="btn btn-info">Next year</button> <button type="button" class="btn btn-info">{% trans "Next year" %}</button>
</a> </a>
{% endif %} {% endif %}
</div> </div>
</h1> </h1>
<table class="table table-responsive table-bordered"> <table class="table table-responsive table-bordered">
<tr> <tr>
<th class="col-md-2 text-center">Month</th> <th class="col-md-2 text-center">{% trans "Month" %}</th>
<th class="col-md-2 text-center">Fats</th> <th class="col-md-2 text-center">{% trans "Fats" %}</th>
</tr> </tr>
{% for monthnr, month, n_fats in monthlystats %} {% for monthnr, month, n_fats in monthlystats %}
<tr> <tr>

View File

@ -1,20 +1,21 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Fatlink statistics{% endblock page_title %} {% block page_title %}{% trans "Fatlink statistics" %}{% endblock page_title %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Participation data statistics for {{ month }}, {{ year }} <h1 class="page-header text-center">{% blocktrans %}Participation data statistics for {{ month }}, {{ year }}{% endblocktrans %}
<div class="text-right"> <div class="text-right">
<a href="{% url 'auth_fatlink_view_statistics_month' previous_month|date:"Y" previous_month|date:"m" %}"> <a href="{% url 'auth_fatlink_view_statistics_month' previous_month|date:"Y" previous_month|date:"m" %}">
<button type="button" class="btn btn-info">Previous month</button> <button type="button" class="btn btn-info">{% trans "Previous month" %}</button>
</a> </a>
{% if next_month %} {% if next_month %}
<a href="{% url 'auth_fatlink_view_statistics_month' next_month|date:"Y" next_month|date:"m" %}"> <a href="{% url 'auth_fatlink_view_statistics_month' next_month|date:"Y" next_month|date:"m" %}">
<button type="button" class="btn btn-info">Next month</button> <button type="button" class="btn btn-info">{% trans "Next month" %}</button>
</a> </a>
{% endif %} {% endif %}
</div> </div>
@ -22,11 +23,11 @@
<table class="table table-responsive table-bordered"> <table class="table table-responsive table-bordered">
<tr> <tr>
<th class="col-md-1"></th> <th class="col-md-1"></th>
<th class="col-md-2 text-center">Ticker</th> <th class="col-md-2 text-center">{% trans "Ticker" %}</th>
<th class="col-md-5 text-center">Corp</th> <th class="col-md-5 text-center">{% trans "Corp" %}</th>
<th class="col-md-2 text-center">Members</th> <th class="col-md-2 text-center">{% trans "Members" %}</th>
<th class="col-md-2 text-center">Fats</th> <th class="col-md-2 text-center">{% trans "Fats" %}</th>
<th class="col-md-2 text-center">Average fats</th> <th class="col-md-2 text-center">{% trans "Average fats" %}</th>
</tr> </tr>
{% for corpStat in fatStats %} {% for corpStat in fatStats %}
<tr> <tr>

View File

@ -1,33 +1,34 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Fatlink view{% endblock page_title %} {% block page_title %}{% trans "Fatlink view" %}{% endblock page_title %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Participation data</h1> <h1 class="page-header text-center">{% trans "Participation data" %}</h1>
<table class="table"> <table class="table">
<tr> <tr>
<th class="col-md-11"> <th class="col-md-11">
<h4><b>Most recent clicked fatlinks</b> <h4><b>{% trans "Most recent clicked fatlinks" %}</b>
</h4> </h4>
</th> </th>
<th class="col-md-1"> <th class="col-md-1">
<a href="{% url 'auth_fatlink_view_personal_statistics' %}"> <a href="{% url 'auth_fatlink_view_personal_statistics' %}">
<button type="button" class="btn btn-info">Personal statistics</button> <button type="button" class="btn btn-info">{% trans "Personal statistics" %}</button>
</a> </a>
</th> </th>
</tr> </tr>
</table> </table>
<table class="table table-responsive table-bordered"> <table class="table table-responsive table-bordered">
<tr> <tr>
<th class="text-center">fatname</th> <th class="text-center">{% trans "fatname" %}</th>
<th class="text-center">Character</th> <th class="text-center">{% trans "Character" %}</th>
<th class="text-center">System</th> <th class="text-center">{% trans "System" %}</th>
<th class="text-center">Ship</th> <th class="text-center">{% trans "Ship" %}</th>
<th class="text-center">Eve Time</th> <th class="text-center">{% trans "Eve Time" %}</th>
</tr> </tr>
{% for fat in fats %} {% for fat in fats %}
<tr> <tr>
@ -48,29 +49,29 @@
<table class="table"> <table class="table">
<tr> <tr>
<th class="col-md-10"> <th class="col-md-10">
<h4><b>Most recent fatlinks</b> <h4><b>{% trans "Most recent fatlinks" %}</b>
</h4> </h4>
</th> </th>
<th class="col-md-1"> <th class="col-md-1">
<a href="{% url 'auth_fatlink_view_statistics' %}"> <a href="{% url 'auth_fatlink_view_statistics' %}">
<button type="button" class="btn btn-info">View statistics</button> <button type="button" class="btn btn-info">{% trans "View statistics" %}</button>
</a> </a>
</th> </th>
<th class="col-md-1"> <th class="col-md-1">
<a href="{% url 'auth_create_fatlink_view' %}"> <a href="{% url 'auth_create_fatlink_view' %}">
<button type="button" class="btn btn-success">Create fatlink</button> <button type="button" class="btn btn-success">{% trans "Create fatlink" %}</button>
</a> </a>
</th> </th>
</tr> </tr>
</table> </table>
<table class="table table-bordered"> <table class="table table-bordered">
<tr> <tr>
<th class="text-center">Name</th> <th class="text-center">{% trans "Name" %}</th>
<th class="text-center">Creator</th> <th class="text-center">{% trans "Creator" %}</th>
<th class="text-center">Fleet</th> <th class="text-center">{% trans "Fleet" %}</th>
<th class="text-center">Eve Time</th> <th class="text-center">{% trans "Eve Time" %}</th>
<th class="text-center">Duration</th> <th class="text-center">{% trans "Duration" %}</th>
<th class="text-center">Edit</th> <th class="text-center">{% trans "Edit" %}</th>
</tr> </tr>
{% for link in fatlinks %} {% for link in fatlinks %}
<tr> <tr>

View File

@ -1,10 +1,11 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Alliance Fleet Doctrines{% endblock page_title %} {% block page_title %}{% trans "Alliance Fleet Doctrines" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}

View File

@ -1,15 +1,16 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Fleet Formatter Tool{% endblock page_title %} {% block page_title %}{% trans "Fleet Formatter Tool" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Fleet Broadcast Formatter Tool</h1> <h1 class="page-header text-center">{% trans "Fleet Broadcast Formatter Tool" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-6 col-md-offset-3"> <div class="col-md-6 col-md-offset-3">
@ -22,7 +23,7 @@
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Format</button> <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Format" %}</button>
<br/> <br/>
</form> </form>
</div> </div>

View File

@ -1,6 +1,7 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}FleetUp{% endblock page_title %} {% block page_title %}FleetUp{% endblock page_title %}
@ -11,20 +12,20 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="navbar-header"> <div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span> <span class="sr-only">{% trans "Toggle navigation" %}</span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
<a class="navbar-brand" href="#">Fleet-Up</a> <a class="navbar-brand" href="#">{% trans "Fleet-Up" %}</a>
</div> </div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li class="active"><a href="#">Ops and Timers <span class="sr-only">(current)</span></a></li> <li class="active"><a href="#">{% trans "Ops and Timers" %} <span class="sr-only">(current)</span></a></li>
<li><a href="/fleetup/doctrines/">Doctrines</a></li> <li><a href="/fleetup/doctrines/">{% trans "Doctrines" %}</a></li>
<li><a href="/fleetup/fittings/">Fittings</a></li> <li><a href="/fleetup/fittings/">{% trans "Fittings" %}</a></li>
{% if perms.auth.human_resources %} {% if perms.auth.human_resources %}
<li><a href="/fleetup/characters/">Characters</a></li> <li><a href="/fleetup/characters/">{% trans "Characters" %}</a></li>
{% endif %} {% endif %}
<li></li> <li></li>
</ul> </ul>
@ -33,8 +34,8 @@
</nav> </nav>
<div class="panel"> <div class="panel">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#operations">Operations</a></li> <li class="active"><a data-toggle="tab" href="#operations">{% trans "Operations" %}</a></li>
<li><a data-toggle="tab" href="#timers">Timers</a></li> <li><a data-toggle="tab" href="#timers">{% trans "Timers" %}</a></li>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
@ -49,13 +50,13 @@
<div class="panel-body"> <div class="panel-body">
<table class="table table-condensed"> <table class="table table-condensed">
<tr> <tr>
<th class="col-md-6">Start</th> <th class="col-md-6">{% trans "Start" %}</th>
<th class="col-md-6">End</th> <th class="col-md-6">{% trans "End" %}</th>
</tr> </tr>
<tr> <tr>
<td class="col-md-6">{{ start.start|date:"l d M H:i" }} <span class="label label-success">Eve Time</span></td> <td class="col-md-6">{{ start.start|date:"l d M H:i" }} <span class="label label-success">{% trans "Eve Time" %}</span></td>
<td class="col-md-6">{{ start.end|date:"l d M H:i" }} <span class="label label-success">Eve Time</span></td> <td class="col-md-6">{{ start.end|date:"l d M H:i" }} <span class="label label-success">{% trans "Eve Time" %}</span></td>
</tr> </tr>
<tr> <tr>
<td class="col-md-6"><div id="countdown{{ start.operation_id }}"></div></td> <td class="col-md-6"><div id="countdown{{ start.operation_id }}"></div></td>
@ -68,10 +69,10 @@
<div class="col-lg-12"> <div class="col-lg-12">
<table class="table table-condensed table-striped"> <table class="table table-condensed table-striped">
<tr> <tr>
<th class="col-md-4">Location</th> <th class="col-md-4">{% trans "Location" %}</th>
<th class="col-md-4">Doctrine</th> <th class="col-md-4">{% trans "Doctrine" %}</th>
<th class="col-md-2">Organizer</th> <th class="col-md-2">{% trans "Organizer" %}</th>
<th class="col-md-2">URL</th> <th class="col-md-2">{% trans "URL" %}</th>
</tr> </tr>
<tr> <tr>
<td> <td>
@ -86,7 +87,7 @@
{% endfor %} {% endfor %}
{% else %} {% else %}
<span class="label label-danger">TBA</span> <span class="label label-danger">{% trans "TBA" %}</span>
{% endif %} {% endif %}
</td> </td>
<td> <td>
@ -94,9 +95,9 @@
</td> </td>
<td> <td>
{% ifequal start.url "" %} {% ifequal start.url "" %}
<div class="label label-danger">No link</div> <div class="label label-danger">{% trans "No link" %}</div>
{% else %} {% else %}
<a href="{{ start.url }}" target="_blank" class="label label-success">External link</a> <a href="{{ start.url }}" target="_blank" class="label label-success">{% trans "External link" %}</a>
{% endifequal %} {% endifequal %}
</td> </td>
</tr> </tr>
@ -106,13 +107,13 @@
</div> </div>
{% endfor %} {% endfor %}
{% else %} {% else %}
<h3>There seems to be no Operations in the near future, go make ISK!</h3> <h3>{% trans "There seems to be no Operations in the near future, go make ISK!" %}</h3>
{% endif %} {% endif %}
</div> </div>
<div class="col-lg-3"> <div class="col-lg-3">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h2 class="panel-title">Current Eve Time:</h2> <h2 class="panel-title">{% trans "Current Eve Time:" %}</h2>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div id="current-time"></div> <div id="current-time"></div>
@ -121,7 +122,7 @@
{% if timers_list %} {% if timers_list %}
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h2 class="panel-title">Timers</h2> <h2 class="panel-title">{% trans "Timers" %}</h2>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<table class="table table-condensed table-hover table-striped"> <table class="table table-condensed table-hover table-striped">
@ -146,18 +147,18 @@
{% if timers_list %} {% if timers_list %}
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h2 class="panel-title">Timers</h2> <h2 class="panel-title">{% trans "Timers" %}</h2>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="col-lg-12"> <div class="col-lg-12">
<table class="table table-condensed table-hover table-striped"> <table class="table table-condensed table-hover table-striped">
<tr> <tr>
<th class="col-lg-1">Type</th> <th class="col-lg-1">{% trans "Type" %}</th>
<th class="col-lg-1">Structure</th> <th class="col-lg-1">{% trans "Structure" %}</th>
<th class="col-lg-2">Location</th> <th class="col-lg-2">{% trans "Location" %}</th>
<th class="col-lg-2">Expires(EVE-time)</th> <th class="col-lg-2">{% trans "Expires(EVE-time)" %}</th>
<th class="col-lg-1">Owner</th> <th class="col-lg-1">{% trans "Owner" %}</th>
<th class="col-lg-2">Note</th> <th class="col-lg-2">{% trans "Note" %}</th>
</tr> </tr>
{% for notes, type in timers_list %} {% for notes, type in timers_list %}
<tr> <tr>
@ -188,7 +189,7 @@
</div> </div>
</div> </div>
{% else %} {% else %}
<h3>There seems to be no Timers in the near future, this does not mean there isn't any!</h3> <h3>{% trans "There seems to be no Timers in the near future, this does not mean there isn't any!" %}</h3>
{% endif %} {% endif %}
</div> </div>
</div> </div>

View File

@ -1,6 +1,7 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}FleetUp{% endblock page_title %} {% block page_title %}FleetUp{% endblock page_title %}
@ -12,7 +13,7 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="navbar-header"> <div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span> <span class="sr-only">{% trans "Toggle navigation" %}</span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
@ -21,11 +22,11 @@
</div> </div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="/fleetup/">Ops and Timers</a></li> <li><a href="/fleetup/">{% trans "Ops and Timers" %}</a></li>
<li><a href="/fleetup/doctrines/">Doctrines</a></li> <li><a href="/fleetup/doctrines/">{% trans "Doctrines" %}</a></li>
<li><a href="/fleetup/fittings/">Fittings</a></li> <li><a href="/fleetup/fittings/">{% trans "Fittings" %}</a></li>
<li class="active"><a href="/fleetup/characters/">Characters <span class="sr-only">(current)</span></a></li> <li class="active"><a href="/fleetup/characters/">{% trans "Characters" %} <span class="sr-only">(current)</span></a></li>
<li></li> <li></li>
</ul> </ul>
@ -34,7 +35,7 @@
</nav> </nav>
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title">Characters registered on Fleet-Up.com</h3> <h3 class="panel-title">{% trans "Characters registered on Fleet-Up.com" %}</h3>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="col-lg-6"> <div class="col-lg-6">
@ -42,8 +43,8 @@
<table class="table table-condensed table-hover table-striped"> <table class="table table-condensed table-hover table-striped">
<tr> <tr>
<th class="col-md-1"></th> <th class="col-md-1"></th>
<th class="col-md-1">Character</th> <th class="col-md-1">{% trans "Character" %}</th>
<th class="col-md-1">Corporation</th> <th class="col-md-1">{% trans "Corporation" %}</th>
<th class="col-md-1">Fleet-Up(id)</th> <th class="col-md-1">Fleet-Up(id)</th>
</tr> </tr>
{% for char_name, user_id in member_list %} {% for char_name, user_id in member_list %}

View File

@ -1,6 +1,7 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}FleetUp - Doctrine{% endblock page_title %} {% block page_title %}FleetUp - Doctrine{% endblock page_title %}
@ -11,7 +12,7 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="navbar-header"> <div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span> <span class="sr-only">{% trans "Toggle navigation" %}</span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
@ -20,11 +21,11 @@
</div> </div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="/fleetup/">Ops and Timers</a></li> <li><a href="/fleetup/">{% trans "Ops and Timers" %}</a></li>
<li class="active"><a href="/fleetup/doctrines/">Doctrines <span class="sr-only">(current)</span></a></li> <li class="active"><a href="/fleetup/doctrines/">{% trans "Doctrines" %} <span class="sr-only">(current)</span></a></li>
<li><a href="/fleetup/fittings/">Fittings</a></li> <li><a href="/fleetup/fittings/">{% trans "Fittings" %}</a></li>
{% if perms.auth.corp_stats %} {% if perms.auth.corp_stats %}
<li><a href="/fleetup/characters/">Characters</a></li> <li><a href="/fleetup/characters/">{% trans "Characters" %}</a></li>
{% endif %} {% endif %}
<li></li> <li></li>
</ul> </ul>
@ -45,12 +46,12 @@
<table class="table table-condensed table-hover table-striped"> <table class="table table-condensed table-hover table-striped">
<tr> <tr>
<th class="col-md-1"></th> <th class="col-md-1"></th>
<th class="col-md-1">Name</th> <th class="col-md-1">{% trans "Name" %}</th>
<th class="col-md-1">Role</th> <th class="col-md-1">{% trans "Role" %}</th>
<th class="col-md-1">Hull type</th> <th class="col-md-1">{% trans "Hull type" %}</th>
<th class="col-md-1">Ship type</th> <th class="col-md-1">{% trans "Ship type" %}</th>
<th class="col-md-1">Estimated ISK</th> <th class="col-md-1">{% trans "Estimated ISK" %}</th>
<th class="col-md-2">Categories</th> <th class="col-md-2">{% trans "Categories" %}</th>
</tr> </tr>
{% for item in Role.list %} {% for item in Role.list %}
<tr> <tr>

View File

@ -1,6 +1,7 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}FleetUp{% endblock page_title %} {% block page_title %}FleetUp{% endblock page_title %}
@ -11,7 +12,7 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="navbar-header"> <div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span> <span class="sr-only">{% trans "Toggle navigation" %}</span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
@ -20,11 +21,11 @@
</div> </div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="/fleetup/">Ops and Timers</a></li> <li><a href="/fleetup/">{% trans "Ops and Timers" %}</a></li>
<li class="active"><a href="/fleetup/doctrines/">Doctrines <span class="sr-only">(current)</span></a></li> <li class="active"><a href="/fleetup/doctrines/">{% trans "Doctrines" %} <span class="sr-only">(current)</span></a></li>
<li><a href="/fleetup/fittings/">Fittings</a></li> <li><a href="/fleetup/fittings/">{% trans "Fittings" %}</a></li>
{% if perms.auth.corp_stats %} {% if perms.auth.corp_stats %}
<li><a href="/fleetup/characters/">Characters</a></li> <li><a href="/fleetup/characters/">{% trans "Characters</a></li>
{% endif %} {% endif %}
<li></li> <li></li>
</ul> </ul>
@ -45,9 +46,9 @@
<table class="table table-condensed table-hover table-striped"> <table class="table table-condensed table-hover table-striped">
<tr> <tr>
<th class="col-lg-1"></th> <th class="col-lg-1"></th>
<th class="col-lg-4">Name</th> <th class="col-lg-4">{% trans "Name" %}</th>
<th class="col-lg-3">Doctrine</th> <th class="col-lg-3">{% trans "Doctrine" %}</th>
<th class="col-lg-4">Last updated</th> <th class="col-lg-4">{% trans "Last updated" %}</th>
<!--<th class="col-lg-1">Owner</th> <!--<th class="col-lg-1">Owner</th>
<th class="col-lg-2">Note</th>--> <th class="col-lg-2">Note</th>-->
</tr> </tr>

View File

@ -1,9 +1,10 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}FleetUp - Doctrine{% endblock page_title %} {% block page_title %}{% trans "FleetUp - Doctrine" %}{% endblock page_title %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
@ -11,20 +12,20 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="navbar-header"> <div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span> <span class="sr-only">{% trans "Toggle navigation" %}</span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
<a class="navbar-brand" href="#">Fleet-Up</a> <a class="navbar-brand" href="#">{% trans "Fleet-Up" %}</a>
</div> </div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="/fleetup/">Ops and Timers</a></li> <li><a href="/fleetup/">{% trans "Ops and Timers" %}</a></li>
<li><a href="/fleetup/doctrines/">Doctrines</a></li> <li><a href="/fleetup/doctrines/">{% trans "Doctrines" %}</a></li>
<li class="active"><a href="/fleetup/fittings/">Fittings <span class="sr-only">(current)</span></a></li> <li class="active"><a href="/fleetup/fittings/">{% trans "Fittings" %} <span class="sr-only">(current)</span></a></li>
{% if perms.auth.corp_stats %} {% if perms.auth.corp_stats %}
<li><a href="/fleetup/characters/">Characters</a></li> <li><a href="/fleetup/characters/">{% trans "Characters" %}</a></li>
{% endif %} {% endif %}
<li></li> <li></li>
</ul> </ul>
@ -37,16 +38,16 @@
{% for x, y in fitting_data.items %} {% for x, y in fitting_data.items %}
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title">This fit is part of a doctrine</h3> <h3 class="panel-title">{% trans "This fit is part of a doctrine" %}</h3>
</div> </div>
<div class="panel-body"> <div class="panel-body">
{% for doctrin in y.Doctrines %} {% for doctrin in y.Doctrines %}
<h4>{{ doctrin.Name }}</h4> <h4>{{ doctrin.Name }}</h4>
<div class="col-lg-12"> <div class="col-lg-12">
<p>Role in doctrine: {{ doctrin.Role }}</p> <p>{% trans "Role in doctrine:" %} {{ doctrin.Role }}</p>
</div> </div>
<div class="col-lg-4"> <div class="col-lg-4">
<p>Priority:</p> <p>{% trans "Priority:" %}</p>
</div> </div>
<div class="col-lg-8"> <div class="col-lg-8">
<div class="progress"> <div class="progress">
@ -56,14 +57,14 @@
</div> </div>
</div> </div>
<div class="col-lg-8 col-lg-offset-7"> <div class="col-lg-8 col-lg-offset-7">
<a class="btn btn-primary" href="/fleetup/doctrines/{{ doctrin.DoctrineId }}/">See doctrine</a> <a class="btn btn-primary" href="/fleetup/doctrines/{{ doctrin.DoctrineId }}/">{% trans "See doctrine" %}</a>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title">Fit categories</h3> <h3 class="panel-title">{% trans "Fit categories" %}</h3>
</div> </div>
<div class="panel-body"> <div class="panel-body">
{% for category in y.Categories %} {% for category in y.Categories %}
@ -74,7 +75,7 @@
{% endfor %} {% endfor %}
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title">All fits in this Doctrine</h3> <h3 class="panel-title">{% trans "All fits in this Doctrine" %}</h3>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="list-group"> <div class="list-group">
@ -103,10 +104,10 @@
<img src="https://image.eveonline.com/InventoryType/{{ j.EveTypeId }}_64.png" class="img-responsive"> <img src="https://image.eveonline.com/InventoryType/{{ j.EveTypeId }}_64.png" class="img-responsive">
</div> </div>
<div class="col-lg-9"> <div class="col-lg-9">
<p>Hull: <b>{{ j.HullType }}</b></p> <p>{% trans "Hull:" %} <b>{{ j.HullType }}</b></p>
<p>Ship: <b>{{ j.ShipType }}</b></p> <p>{% trans "Ship:" %} <b>{{ j.ShipType }}</b></p>
{% load humanize %} {% load humanize %}
<p>Estimated price: <b>{{ j.EstPrice|intword }} ISK</b></p> <p>{% trans "Estimated price:" %} <b>{{ j.EstPrice|intword }} ISK</b></p>
</div> </div>
{% regroup j.FittingData by Slot as fitting_list %} {% regroup j.FittingData by Slot as fitting_list %}
<table class="table table-condensed table-hover"> <table class="table table-condensed table-hover">
@ -134,7 +135,7 @@
<div class="col-lg-3"> <div class="col-lg-3">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title">EFT/Export</h3> <h3 class="panel-title">{% trans "EFT/Export" %}</h3>
</div> </div>
<div class="panel-body"> <div class="panel-body">
{% for data in fitting_eft.items %} {% for data in fitting_eft.items %}

View File

@ -1,6 +1,7 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}FleetUp{% endblock page_title %} {% block page_title %}FleetUp{% endblock page_title %}
@ -11,20 +12,20 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="navbar-header"> <div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span> <span class="sr-only">{% trans "Toggle navigation" %}</span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
<a class="navbar-brand" href="#">Fleet-Up</a> <a class="navbar-brand" href="#">{% trans "Fleet-Up" %}</a>
</div> </div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="/fleetup/">Ops and Timers</a></li> <li><a href="/fleetup/">{% trans "Ops and Timers" %}</a></li>
<li><a href="/fleetup/doctrines/">Doctrines</a></li> <li><a href="/fleetup/doctrines/">{% trans "Doctrines" %}</a></li>
<li class="active"><a href="/fleetup/fittings/">Fittings <span class="sr-only">(current)</span></a></li> <li class="active"><a href="/fleetup/fittings/">{% trans "Fittings" %} <span class="sr-only">(current)</span></a></li>
{% if perms.auth.corp_stats %} {% if perms.auth.corp_stats %}
<li><a href="/fleetup/characters/">Characters</a></li> <li><a href="/fleetup/characters/">{% trans "Characters" %}</a></li>
{% endif %} {% endif %}
<li></li> <li></li>
</ul> </ul>
@ -36,11 +37,11 @@
<table class="table table-condensed table-hover table-striped"> <table class="table table-condensed table-hover table-striped">
<tr> <tr>
<th class="col-md-1"></th> <th class="col-md-1"></th>
<th class="col-md-1">Name</th> <th class="col-md-1">{% trans "Name" %}</th>
<th class="col-md-1">Hull</th> <th class="col-md-1">{% trans "Hull" %}</th>
<th class="col-md-1">Ship type</th> <th class="col-md-1">{% trans "Ship type" %}</th>
<th class="col-md-1">Estimated ISK</th> <th class="col-md-1">{% trans "Estimated ISK" %}</th>
<th class="col-md-2">Categories</th> <th class="col-md-2">{% trans "Categories" %}</th>
</tr> </tr>
{% for id, fittings in fitting_list %} {% for id, fittings in fitting_list %}
@ -70,7 +71,7 @@
{% endfor %} {% endfor %}
</table> </table>
{% else %} {% else %}
<h3>There seems to be no Doctrines in here at the moment!</h3> <h3>{% trans "There seems to be no Doctrines in here at the moment!" %}</h3>
{% endif %} {% endif %}
</div> </div>
</div> </div>

View File

@ -1,22 +1,23 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Groups Management{% endblock page_title %} {% block page_title %}{% trans "Groups Management" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h3 class="page-header text-center">Group Management</h3> <h3 class="page-header text-center">{% trans "Group Management" %}</h3>
<h4 class="page-header text-center">Group Add Request</h4> <h4 class="page-header text-center">{% trans "Group Add Request" %}</h4>
<table class="table table-bordered"> <table class="table table-bordered">
<tr> <tr>
<th class="text-center">RequestID</th> <th class="text-center">{% trans "RequestID" %}</th>
<th class="text-center">CharacterName</th> <th class="text-center">{% trans "CharacterName" %}</th>
<th class="text-center">GroupName</th> <th class="text-center">{% trans "GroupName" %}</th>
<th class="text-center">Action</th> <th class="text-center">{% trans "Action" %}</th>
</tr> </tr>
{% for acceptrequest in acceptrequests %} {% for acceptrequest in acceptrequests %}
@ -27,26 +28,26 @@
<td class="text-center"> <td class="text-center">
<a href="/group/request/accept/{{ acceptrequest.id }}"> <a href="/group/request/accept/{{ acceptrequest.id }}">
<button type="button" class="btn btn-success"> <button type="button" class="btn btn-success">
Accept {% trans "Accept" %}
</button> </button>
</a> </a>
<a href="/group/request/reject/{{ acceptrequest.id }}"> <a href="/group/request/reject/{{ acceptrequest.id }}">
<button type="button" class="btn btn-danger"> <button type="button" class="btn btn-danger">
Reject {% trans "Reject" %}
</button> </button>
</a> </a>
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
<h4 class="page-header text-center">Group Leave Request</h4> <h4 class="page-header text-center">{% trans "Group Leave Request" %}</h4>
<table class="table table-bordered"> <table class="table table-bordered">
<tr> <tr>
<th class="text-center">RequestID</th> <th class="text-center">{% trans "RequestID" %}</th>
<th class="text-center">CharacterName</th> <th class="text-center">{% trans "CharacterName" %}</th>
<th class="text-center">GroupName</th> <th class="text-center">{% trans "GroupName" %}</th>
<th class="text-center">Action</th> <th class="text-center">{% trans "Action" %}</th>
</tr> </tr>
{% for leaverequest in leaverequests %} {% for leaverequest in leaverequests %}
@ -57,13 +58,13 @@
<td class="text-center"> <td class="text-center">
<a href="/group/leave_request/accept/{{ leaverequest.id }}"> <a href="/group/leave_request/accept/{{ leaverequest.id }}">
<button type="button" class="btn btn-success"> <button type="button" class="btn btn-success">
Accept {% trans "Accept" %}
</button> </button>
</a> </a>
<a href="/group/leave_request/reject/{{ leaverequest.id }}"> <a href="/group/leave_request/reject/{{ leaverequest.id }}">
<button type="button" class="btn btn-danger"> <button type="button" class="btn btn-danger">
Reject {% trans "Reject" %}
</button> </button>
</a> </a>
</td> </td>

View File

@ -1,21 +1,22 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Available{% endblock page_title %} {% block page_title %}{% trans "Available" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Available Groups</h1> <h1 class="page-header text-center">{% trans "Available Groups" %}</h1>
{% if perms.auth.member %} {% if perms.auth.member %}
<table class="table table-bordered"> <table class="table table-bordered">
<tr> <tr>
<th class="text-center">GroupID</th> <th class="text-center">{% trans "GroupID" %}</th>
<th class="text-center">GroupName</th> <th class="text-center">{% trans "GroupName" %}</th>
<th class="text-center">GroupDesc</th> <th class="text-center">{% trans "GroupDesc" %}</th>
<th class="text-center">Action</th> <th class="text-center">{% trans "Action" %}</th>
</tr> </tr>
{% for pair in pairs %} {% for pair in pairs %}
@ -28,7 +29,7 @@
{% if pair.2 == "" %} {% if pair.2 == "" %}
<a href="/group/request_leave/{{ pair.0.id }}"> <a href="/group/request_leave/{{ pair.0.id }}">
<button type="button" class="btn btn-danger"> <button type="button" class="btn btn-danger">
Leave {% trans "Leave" %}
</button> </button>
</a> </a>
{% else %} {% else %}
@ -39,7 +40,7 @@
{% elif pair.2 == "" %} {% elif pair.2 == "" %}
<a href="/group/request_add/{{ pair.0.id }}"> <a href="/group/request_add/{{ pair.0.id }}">
<button type="button" class="btn btn-success"> <button type="button" class="btn btn-success">
Request {% trans "Request" %}
</button> </button>
</a> </a>
{% else %} {% else %}
@ -53,9 +54,9 @@
</table> </table>
{% else %} {% else %}
{% if IS_CORP %} {% if IS_CORP %}
<div class="alert alert-danger" role="alert">You are not in the corporation.</div> <div class="alert alert-danger" role="alert">{% trans "You are not in the corporation." %}</div>
{% else %} {% else %}
<div class="alert alert-danger" role="alert">You are not in the alliance.</div> <div class="alert alert-danger" role="alert">{% trans "You are not in the alliance." %}</div>
{% endif %} {% endif %}
{% endif %} {% endif %}
</div> </div>

View File

@ -1,13 +1,15 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Choose a Corp{% endblock %} {% block title %}Choose a Corp{% endblock %}
{% block page_title %}Choose a Corp{% endblock page_title %} {% block page_title %}{% trans "Choose a Corp" %}{% endblock page_title %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Choose a Corp</h1> <h1 class="page-header text-center">{% trans "Choose a Corp" %}</h1>
{% if choices %} {% if choices %}
<div class="panel panel-primary"> <div class="panel panel-primary">
<div class="panel-heading">Available Corps</div> <div class="panel-heading">{% trans "Available Corps" %}</div>
<table class="table table-responsive"> <table class="table table-responsive">
{% for choice in choices %} {% for choice in choices %}
<tr> <tr>
@ -19,7 +21,7 @@
</table> </table>
</div> </div>
{% else %} {% else %}
<div class="alert alert-danger">No corps are accepting applications at this time.</div> <div class="alert alert-danger">{% trans "No corps are accepting applications at this time." %}</div>
{% endif %} {% endif %}
</div> </div>
{% endblock content %} {% endblock content %}

View File

@ -1,10 +1,12 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Apply To {{ corp.corporation_name }}{% endblock title %} {% block title %}Apply To {{ corp.corporation_name }}{% endblock title %}
{% block page_title %}Apply To {{ corp.corporation_name }}{% endblock page_title %} {% block page_title %}{% trans "Apply To" %} {{ corp.corporation_name }}{% endblock page_title %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Apply To {{ corp.corporation_name }}</h1> <h1 class="page-header text-center">{% trans "Apply To" %} {{ corp.corporation_name }}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="row"> <div class="row">
@ -21,7 +23,7 @@
</div> </div>
</div> </div>
{% endfor %} {% endfor %}
<button class="btn btn-lg btn-primary btn-block" type="submit" formmethod="post">Submit</button> <button class="btn btn-lg btn-primary btn-block" type="submit" formmethod="post">{% trans "Submit" %}</button>
</form> </form>
</div> </div>
</div> </div>

View File

@ -1,30 +1,31 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}HR Application Management{% endblock page_title %} {% block page_title %}{% trans "HR Application Management" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
{% if not perms.auth.member %} {% if not perms.auth.member %}
<h1 class="page-header text-center">Personal Applications <h1 class="page-header text-center">{% trans "Personal Applications" %}
<div class="text-right"> <div class="text-right">
{% if create %} {% if create %}
<a href="{% url 'auth_hrapplication_create_view' %}"><button type="button" class="btn btn-success">Create Application</button></a> <a href="{% url 'auth_hrapplication_create_view' %}"><button type="button" class="btn btn-success">{% trans "Create Application" %}</button></a>
{% else %} {% else %}
<button type="button" class="btn btn-success" disabled>Create Application</button> <button type="button" class="btn btn-success" disabled>{% trans "Create Application" %}</button>
{% endif %} {% endif %}
</div> </div>
</h1> </h1>
<table class="table table-bordered table-condensed"> <table class="table table-bordered table-condensed">
<tr> <tr>
<th class="text-center">Username</th> <th class="text-center">{% trans "Username" %}</th>
<th class="text-center">Corporation <th class="text-center">{% trans "Corporation" %}
<th class="text-center">Status</th> <th class="text-center">{% trans "Status" %}</th>
<th class="text-center">Actions</th> <th class="text-center">{% trans "Actions" %}</th>
</tr> </tr>
{% for personal_app in personal_apps %} {% for personal_app in personal_apps %}
<tr> <tr>
@ -32,11 +33,11 @@
<td class="text-center">{{ personal_app.form.corp.corporation_name }}</td> <td class="text-center">{{ personal_app.form.corp.corporation_name }}</td>
<td class="text-center"> <td class="text-center">
{% if personal_app.approved == None %} {% if personal_app.approved == None %}
<div class="label label-warning">Pending</div> <div class="label label-warning">{% trans "Pending" %}</div>
{% elif personal_app.approved == True %} {% elif personal_app.approved == True %}
<div class="label label-success">Approved</div> <div class="label label-success">{% trans "Approved" %}</div>
{% else %} {% else %}
<div class="label label-danger">Rejected</div> <div class="label label-danger">{% trans "Rejected" %}</div>
{% endif %} {% endif %}
</td> </td>
<td class="text-center"> <td class="text-center">
@ -57,29 +58,29 @@
</table> </table>
{% endif %} {% endif %}
{% if perms.auth.human_resources %} {% if perms.auth.human_resources %}
<h1 class="page-header text-center">Application Management <h1 class="page-header text-center">{% trans "Application Management" %}
<div class="text-right"> <div class="text-right">
<!-- Button trigger modal --> <!-- Button trigger modal -->
<button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#myModal"> <button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#myModal">
Search Applications {% trans "Search Applications" %}
</button> </button>
</div> </div>
</h1> </h1>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#pending">Pending</a></li> <li class="active"><a data-toggle="tab" href="#pending">{% trans "Pending" %}</a></li>
<li><a data-toggle="tab" href="#reviewed">Reviewed</a></li> <li><a data-toggle="tab" href="#reviewed">{% trans "Reviewed" %}</a></li>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<div id="pending" class="tab-pane fade in active"> <div id="pending" class="tab-pane fade in active">
<div class="panel-body"> <div class="panel-body">
<table class="table"> <table class="table">
<tr> <tr>
<th class="text-center">Date</th> <th class="text-center">{% trans "Date" %}</th>
<th class="text-center">Username</th> <th class="text-center">{% trans "Username" %}</th>
<th class="text-center">Main Character</th> <th class="text-center">{% trans "Main Character" %}</th>
<th class="text-center">Corporation</th> <th class="text-center">{% trans "Corporation" %}</th>
<th class="text-center">Status</th> <th class="text-center">{% trans "Status" %}</th>
<th class="text-center">Actions</th> <th class="text-center">{% trans "Actions" %}</th>
</tr> </tr>
{% for app in applications %} {% for app in applications %}
<tr> <tr>
@ -90,14 +91,14 @@
<td class="text-center"> <td class="text-center">
{% if app.approved_denied == None %} {% if app.approved_denied == None %}
{% if app.reviewer_str %} {% if app.reviewer_str %}
<div class="label label-info">Reviewer: {{ app.reviewer_str }}</div> <div class="label label-info">{% trans "Reviewer:" %} {{ app.reviewer_str }}</div>
{% else %} {% else %}
<div class="label label-warning">Pending</div> <div class="label label-warning">{% trans "Pending" %}</div>
{% endif %} {% endif %}
{% elif app.approved_denied == True %} {% elif app.approved_denied == True %}
<div class="label label-success">Approved</div> <div class="label label-success">{% trans "Approved" %}</div>
{% else %} {% else %}
<div class="label label-danger">Rejected</div> <div class="label label-danger">{% trans "Rejected" %}</div>
{% endif %} {% endif %}
</td> </td>
<td class="text-center"> <td class="text-center">
@ -115,12 +116,12 @@
<div class="panel-body"> <div class="panel-body">
<table class="table"> <table class="table">
<tr> <tr>
<th class="text-center">Date</th> <th class="text-center">{% trans "Date" %}</th>
<th class="text-center">Username</th> <th class="text-center">{% trans "Username" %}</th>
<th class="text-center">Main Character</th> <th class="text-center">{% trans "Main Character" %}</th>
<th class="text-center">Corporation</th> <th class="text-center">{% trans "Corporation" %}</th>
<th class="text-center">Status</th> <th class="text-center">{% trans "Status" %}</th>
<th class="text-center">Actions</th> <th class="text-center">{% trans "Actions" %}</th>
</tr> </tr>
{% for app in finished_applications %} {% for app in finished_applications %}
<tr> <tr>
@ -131,14 +132,14 @@
<td class="text-center"> <td class="text-center">
{% if app.approved_denied == None %} {% if app.approved_denied == None %}
{% if app.reviewer_str %} {% if app.reviewer_str %}
<div class="label label-info">Reviewer: {{ app.reviewer_str }}</div> <div class="label label-info">{% trans "Reviewer: {{ app.reviewer_str }}</div>
{% else %} {% else %}
<div class="label label-warning">Pending</div> <div class="label label-warning">{% trans "Pending" %}</div>
{% endif %} {% endif %}
{% elif app.approved_denied == True %} {% elif app.approved_denied == True %}
<div class="label label-success">Approved</div> <div class="label label-success">{% trans "Approved" %}</div>
{% else %} {% else %}
<div class="label label-danger">Rejected</div> <div class="label label-danger">{% trans "Rejected" %}</div>
{% endif %} {% endif %}
</td> </td>
<td class="text-center"> <td class="text-center">
@ -164,8 +165,8 @@
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span
class="sr-only">Close</span></button> class="sr-only">{% trans "Close" %}</span></button>
<h4 class="modal-title" id="myModalLabel">Application Search</h4> <h4 class="modal-title" id="myModalLabel">{% trans "Application Search" %}</h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<form class="form-signin" role="form" <form class="form-signin" role="form"
@ -173,7 +174,7 @@
{% csrf_token %} {% csrf_token %}
{{ search_form|bootstrap }} {{ search_form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Search</button> <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Search" %}</button>
</form> </form>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">

View File

@ -1,6 +1,7 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
@ -10,23 +11,23 @@
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
{% if perms.auth.human_resources %} {% if perms.auth.human_resources %}
<h1 class="page-header text-center">Application Search Results <h1 class="page-header text-center">{% trans "Application Search Results" %}
<div class="text-right"> <div class="text-right">
<!-- Button trigger modal --> <!-- Button trigger modal -->
<button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#myModal"> <button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#myModal">
Search Applications {% trans "Search Applications" %}
</button> </button>
</div> </div>
</h1> </h1>
<div class="container-fluid"> <div class="container-fluid">
<table class="table table-bordered"> <table class="table table-bordered">
<tr> <tr>
<th class="text-center">Application ID</th> <th class="text-center">{% trans "Application ID" %}</th>
<th class="text-center">Username</th> <th class="text-center">{% trans "Username" %}</th>
<th class="text-center">Main Character</th> <th class="text-center">{% trans "Main Character" %}</th>
<th class="text-center">Corporation</th> <th class="text-center">{% trans "Corporation" %}</th>
<th class="text-center">Status</th> <th class="text-center">{% trans "Status" %}</th>
<th class="text-center">Actions</th> <th class="text-center">{% trans "Actions" %}</th>
</tr> </tr>
{% for app in applications %} {% for app in applications %}
<tr> <tr>
@ -36,11 +37,11 @@
<td class="text-center">{{ app.form.corp }}</td> <td class="text-center">{{ app.form.corp }}</td>
<td class="text-center"> <td class="text-center">
{% if app.approved == None %} {% if app.approved == None %}
<div class="label label-warning">Pending</div> <div class="label label-warning">{% trans "Pending" %}</div>
{% elif app.approved == True %} {% elif app.approved == True %}
<div class="label label-success">Approved</div> <div class="label label-success">{% trans "Approved" %}</div>
{% else %} {% else %}
<div class="label label-danger">Rejected</div> <div class="label label-danger">{% trans "Rejected" %}</div>
{% endif %} {% endif %}
</td> </td>
<td class="text-center"> <td class="text-center">
@ -65,7 +66,7 @@
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span
class="sr-only">Close</span></button> class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">Application Search</h4> <h4 class="modal-title" id="myModalLabel">{% trans "Application Search" %}</h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<form class="form-signin" role="form" <form class="form-signin" role="form"
@ -73,7 +74,7 @@
{% csrf_token %} {% csrf_token %}
{{ search_form|bootstrap }} {{ search_form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Search</button> <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Search" %}</button>
</form> </form>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">

View File

@ -1,34 +1,36 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load bootstrap %} {% load bootstrap %}
{% load i18n %}
{% block title %}Alliance Auth - View Application{% endblock %} {% block title %}Alliance Auth - View Application{% endblock %}
{% block page_title %}View Application{% endblock page_title %} {% block page_title %}{% trans "View Application" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">View Application</h1> <h1 class="page-header text-center">{% trans "View Application" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="row"> <div class="row">
{% if app.approved %} {% if app.approved %}
<div class="alert alert-success">Approved</div> <div class="alert alert-success">{% trans "Approved" %}</div>
{% elif app.approved == False %} {% elif app.approved == False %}
<div class="alert alert-danger">Denied</div> <div class="alert alert-danger">{% trans "Denied" %}</div>
{% else %} {% else %}
<div class="alert alert-warning">Pending</div> <div class="alert alert-warning">{% trans "Pending" %}</div>
{% endif %} {% endif %}
{% if app.reviewer_str %} {% if app.reviewer_str %}
<div class="alert alert-info">Reviewer: {{ app.reviewer_str }}</div> <div class="alert alert-info">{% trans "Reviewer:" %} {{ app.reviewer_str }}</div>
{% endif %} {% endif %}
</div> </div>
<div class="row"> <div class="row">
<div class="panel panel-info"> <div class="panel panel-info">
<div class="panel-heading">Applicant</div> <div class="panel-heading">{% trans "Applicant" %}</div>
<table class="table"> <table class="table">
<tr> <tr>
<th class="text-center">User</th> <th class="text-center">{% trans "User" %}</th>
<th class="text-center">Main Character</th> <th class="text-center">{% trans "Main Character" %}</th>
</tr> </tr>
<tr> <tr>
<td class="text-center">{{ app.user }}</td> <td class="text-center">{{ app.user }}</td>
@ -37,13 +39,13 @@
</table> </table>
</div> </div>
<div class="panel panel-info"> <div class="panel panel-info">
<div class="panel-heading">Characters</div> <div class="panel-heading">{% trans "Characters" %}</div>
<table class="table"> <table class="table">
<tr> <tr>
<th class="text-center"></th> <th class="text-center"></th>
<th class="text-center">Name</th> <th class="text-center">{% trans "Name" %}</th>
<th class="text-center">Corp</th> <th class="text-center">{% trans "Corp" %}</th>
<th class="text-center">Alliance</th> <th class="text-center">{% trans "Alliance" %}</th>
</tr> </tr>
{% for char in app.characters %} {% for char in app.characters %}
<tr> <tr>
@ -70,28 +72,28 @@
<div class="row"> <div class="row">
{% if perms.auth.human_resources %} {% if perms.auth.human_resources %}
<div class="panel panel-primary"> <div class="panel panel-primary">
<div class="panel-heading">Actions</div> <div class="panel-heading">{% trans "Actions" %}</div>
{% if app.approved == None %} {% if app.approved == None %}
{% if app.reviewer == user %} {% if app.reviewer == user %}
{% if perms.hrapplications.approve_application %} {% if perms.hrapplications.approve_application %}
<a href="/hr_application_approve/{{ app.id }}" class="btn btn-success">Approve</a> <a href="/hr_application_approve/{{ app.id }}" class="btn btn-success">{% trans "Approve" %}</a>
{% endif %} {% endif %}
{% if perms.hrapplications.reject_application %} {% if perms.hrapplications.reject_application %}
<a href="/hr_application_reject/{{ app.id }}" class="btn btn-danger">Reject</a> <a href="/hr_application_reject/{{ app.id }}" class="btn btn-danger">{% trans "Reject" %}</a>
{% endif %} {% endif %}
{% if perms.hrapplications.delete_application %} {% if perms.hrapplications.delete_application %}
<a href="/hr_application_remove/{{ app.id }}" class="btn btn-danger">Delete</a> <a href="/hr_application_remove/{{ app.id }}" class="btn btn-danger">{% trans "Delete" %}</a>
{% endif %} {% endif %}
{% elif not app.reviewer %} {% elif not app.reviewer %}
<a href="/hr_mark_in_progress/{{ app.id }}" class="btn btn-warning">Mark in Progress</a> <a href="/hr_mark_in_progress/{{ app.id }}" class="btn btn-warning">{% trans "Mark in Progress" %}</a>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if perms.hrapplications.add_applicationcomment %} {% if perms.hrapplications.add_applicationcomment %}
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">Comment</button> <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">{% trans "Comment" %}</button>
{% endif %} {% endif %}
{% if perms.hrapplications.view_apis %} {% if perms.hrapplications.view_apis %}
{% for api in apis %} {% for api in apis %}
<a href="{{ JACK_KNIFE_URL }}?usid={{ api.api_id}}&apik={{ api.api_key }}" class="btn btn-info">API {{ api.api_id }}</a> <a href="{{ JACK_KNIFE_URL }}?usid={{ api.api_id}}&apik={{ api.api_key }}" class="btn btn-info">{% trans "API" %} {{ api.api_id }}</a>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div> </div>
@ -133,16 +135,16 @@
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> <button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">&times;</span><span class="sr-only">Close</span> <span aria-hidden="true">&times;</span><span class="sr-only">{% trans "Close" %}</span>
</button> </button>
<h4 class="modal-title" id="myModalLabel">Add Comment</h4> <h4 class="modal-title" id="myModalLabel">{% trans "Add Comment" %}</h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<form class="form-signin" role="form" action="" method="POST"> <form class="form-signin" role="form" action="" method="POST">
{% csrf_token %} {% csrf_token %}
{{ comment_form|bootstrap }} {{ comment_form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Add Comment</button> <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Add Comment" %}</button>
</form> </form>
</div> </div>
<div class="modal-footer"></div> <div class="modal-footer"></div>

View File

@ -1,27 +1,28 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth - Create Application{% endblock %} {% block title %}Alliance Auth - Create Application{% endblock %}
{% block page_title %}Create Application{% endblock page_title %} {% block page_title %}{% trans "Create Application" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Create Application</h1> <h1 class="page-header text-center">{% trans "Create Application" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="row"> <div class="row">
{% if success %} {% if success %}
<div class="alert alert-success text-center" role="alert">Application Submitted</div> <div class="alert alert-success text-center" role="alert">{% trans "Application Submitted" %}</div>
{% else %} {% else %}
<form class="form-signin" role="form" action="" method="POST"> <form class="form-signin" role="form" action="" method="POST">
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Submit Application</button> <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Submit Application" %}</button>
</form> </form>
{% endif %} {% endif %}
</div> </div>

View File

@ -1,28 +1,29 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Jabber Broadcast{% endblock page_title %} {% block page_title %}{% trans "Jabber Broadcast" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Jabber Broadcast</h1> <h1 class="page-header text-center">{% trans "Jabber Broadcast" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="row"> <div class="row">
{% if success %} {% if success %}
<div class="alert alert-success" role="alert">Broadcast Sent!!</div> <div class="alert alert-success" role="alert">{% trans "Broadcast Sent!!" %}</div>
{% endif %} {% endif %}
<form class="form-signin" role="form" action="" method="POST" <form class="form-signin" role="form" action="" method="POST"
onsubmit="submitbutton.disabled = true; return true;"> onsubmit="submitbutton.disabled = true; return true;">
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" name="submitbutton" type="submit">Broadcast <button class="btn btn-lg btn-primary btn-block" name="submitbutton" type="submit">{% trans "Broadcast" %}
</button> </button>
</form> </form>
</div> </div>

View File

@ -1,17 +1,18 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Notifications{% endblock %} {% block title %}{% trans "Notifications" %}{% endblock %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Notifications</h1> <h1 class="page-header text-center">{% trans "Notifications" %}</h1>
<div class="col-lg-12 container" id="example"> <div class="col-lg-12 container" id="example">
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#unread">Unread <b>({{unread|length}})</b></a></li> <li class="active"><a data-toggle="tab" href="#unread">{% trans "Unread" %} <b>({{unread|length}})</b></a></li>
<li><a data-toggle="tab" href="#read">Read <b>({{read|length}})</b></a></li> <li><a data-toggle="tab" href="#read">{% trans "Read" %} <b>({{read|length}})</b></a></li>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<div id="unread" class="tab-pane fade in active"> <div id="unread" class="tab-pane fade in active">
@ -19,9 +20,9 @@
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-condensed table-hover table-striped"> <table class="table table-condensed table-hover table-striped">
<tr> <tr>
<th class="text-center">Timestamp</th> <th class="text-center">{% trans "Timestamp" %}</th>
<th class="text-center">Title</th> <th class="text-center">{% trans "Title" %}</th>
<th class="text-center">View</th> <th class="text-center">{% trans "View" %}</th>
</tr> </tr>
{% for notif in unread %} {% for notif in unread %}
<tr class="{{ notif.level }}"> <tr class="{{ notif.level }}">
@ -50,9 +51,9 @@
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-condensed table-hover table-striped"> <table class="table table-condensed table-hover table-striped">
<tr> <tr>
<th class="text-center">Timestamp</th> <th class="text-center">{% trans "Timestamp" %}</th>
<th class="text-center">Title</th> <th class="text-center">{% trans "Title" %}</th>
<th class="text-center">View</th> <th class="text-center">{% trans "View" %}</th>
</tr> </tr>
{% for notif in read %} {% for notif in read %}
<tr class="{{ notif.level }}"> <tr class="{{ notif.level }}">

View File

@ -1,13 +1,14 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}View Notification{% endblock title %} {% block title %}View Notification{% endblock title %}
{% block page_title %}View Notification{% endblock page_title %} {% block page_title %}{% trans "View Notification" %}{% endblock page_title %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">View Notification</h1> <h1 class="page-header text-center">{% trans "View Notification" %}</h1>
<div class="col-lg-12 container" id="example"> <div class="col-lg-12 container" id="example">
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">

View File

@ -1,43 +1,45 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Fleet Operation Management{% endblock page_title %} {% block page_title %}{% trans "Fleet Operation Management" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Fleet Operation Timers <h1 class="page-header text-center">{% trans "Fleet Operation Timers" %}
<div class="text-right"> <div class="text-right">
<a href="{% url 'auth_add_optimer_view' %}"> <a href="{% url 'auth_add_optimer_view' %}">
{% if perms.auth.optimer_management %} {% if perms.auth.optimer_management %}
<button type="button" class="btn btn-success">Create Operation</button> <button type="button" class="btn btn-success">{% trans "Create Operation" %}</button>
{% endif %} {% endif %}
</a> </a>
</div> </div>
</h1> </h1>
<div class="col-lg-12 text-center"> <div class="col-lg-12 text-center">
<div class="label label-info text-left"> <div class="label label-info text-left">
<b>Current Eve Time: </b> <b>{% trans "Current Eve Time:" %} </b>
</div><div class="label label-info text-left" id="current-time"></div> </div><div class="label label-info text-left" id="current-time"></div>
<br/> <br/>
</div> </div>
<table class="table table-responsive table-bordered"> <table class="table table-responsive table-bordered">
<tr> <tr>
<th class="text-center">Operation Name</th> <th class="text-center">{% trans "Operation Name" %}</th>
<th class="text-center">Doctrine</th> <th class="text-center">{% trans "Doctrine" %}</th>
<th class="text-center">Form Up System</th> <th class="text-center">{% trans "Form Up System" %}</th>
<th class="text-center">Form Up Location</th> <th class="text-center">{% trans "Form Up Location" %}</th>
<th class="text-center">Start Time</th> <th class="text-center">{% trans "Start Time" %}</th>
<th class="text-center">Local Time</th> <th class="text-center">{% trans "Local Time" %}</th>
<th class="text-center">Duration</th> <th class="text-center">{% trans "Duration" %}</th>
<th class="text-center">FC</th> <th class="text-center">{% trans "FC" %}</th>
<th class="text-center">Details</th> <th class="text-center">{% trans "Details" %}</th>
<th class="text-center">Post Time</th> <th class="text-center">{% trans "Post Time" %}</th>
{% if perms.auth.optimer_management %} {% if perms.auth.optimer_management %}
<th class="text-center">Creator</th> <th class="text-center">{% trans "Creator" %}</th>
<th class="text-center">Action</th> <th class="text-center">{% trans "Action" %}</th>
{% endif %} {% endif %}
</tr> </tr>
@ -75,23 +77,28 @@
</tr> </tr>
</table> </table>
</div> </div>
<script src="/static/js/dateformat.js"></script> <script src="/static/js/dateformat.js"></script>
<script src="/static/js/countdown.js"></script> <script src="/static/js/countdown.js"></script>
<script> <script>
var locale = "{{ LANGUAGE_CODE }}";
{% for ops in optimer %}var clock{{ ops.id }} = document.getElementById("countdown{{ ops.id }}"), targetDate{{ ops.id }} = new Date(Date.UTC({{ ops.start | date:"Y, m-1, d, H, i" }}));{% endfor %} {% for ops in optimer %}var clock{{ ops.id }} = document.getElementById("countdown{{ ops.id }}"), targetDate{{ ops.id }} = new Date(Date.UTC({{ ops.start | date:"Y, m-1, d, H, i" }}));{% endfor %}
{% for ops in optimer %}setInterval(function(){clock{{ ops.id }}.innerHTML = targetDate{{ ops.id }}.format('D @ h:ia'); if (targetDate{{ ops.id }} > Date.now()){ clock{{ ops.id }}.innerHTML = clock{{ ops.id }}.innerHTML + "<BR>" + countdown(targetDate{{ ops.id }}).toString();}}, 1000);{% endfor %} {% for ops in optimer %}setInterval(function(){
var options = { weekday: 'short' };
var options2 = { hour: 'numeric', minute: 'numeric' };
var time = ((targetDate{{ ops.id }}.toLocaleString(locale, options)) + " @ " + (targetDate{{ ops.id }}.toLocaleString(locale, options2)));
clock{{ ops.id }}.innerHTML = time;
if (targetDate{{ ops.id }} > Date.now())
{ clock{{ ops.id }}.innerHTML = clock{{ ops.id }}.innerHTML + "<BR>" + countdown(targetDate{{ ops.id }}).toString();}}, 1000);{% endfor %}
setInterval(function(){updateClock()}, 1000); setInterval(function(){updateClock()}, 1000);
function updateClock() { function updateClock() {
var clock = new Date(); var options = { timeZone: 'UTC', weekday: 'short', day: 'numeric', month: 'short', year: 'numeric', hour: "numeric", minute: "numeric", second: "numeric" };
document.getElementById("current-time").innerHTML = "<b>" + clock.toUTCString() + "</b>"; var clock = new Date()
document.getElementById("current-time").innerHTML = "<b>" + clock.toLocaleString(locale, options) + "</b>";
} }
</script> </script>
{% endblock content %} {% endblock content %}

View File

@ -1,29 +1,31 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block title %}Alliance Auth - Update Fleet Operation {% endblock %} {% block title %}Alliance Auth - Update Fleet Operation {% endblock %}
{% block page_title %}Update AAR Link{% endblock page_title %} {% block page_title %}{% trans "Update AAR Link" %}{% endblock page_title %}
{% block extra_css %} {% block extra_css %}
<link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %} <link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Update Fleet Operation</h1> <h1 class="page-header text-center">{% trans "Update Fleet Operation" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="row"> <div class="row">
{% if no_fleet_id %} {% if no_fleet_id %}
<div class="alert alert-danger" role="alert">Fleet Operation Does Not Exist</div> <div class="alert alert-danger" role="alert">{% trans "Fleet Operation Does Not Exist" %}</div>
{% else %} {% else %}
<form class="form-signin" role="form" action="" method="POST"> <form class="form-signin" role="form" action="" method="POST">
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Update Fleet Operation <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Update Fleet Operation" %}
</button> </button>
</form> </form>
{% endif %} {% endif %}
@ -38,6 +40,7 @@
{% block extra_script %} {% block extra_script %}
$('#id_start').datetimepicker({ $('#id_start').datetimepicker({
lang: '{{ LANGUAGE_CODE }}',
maskInput: true, maskInput: true,
format: 'Y-m-d H:i',minDate:0 format: 'Y-m-d H:i',minDate:0
}); });

View File

@ -1,15 +1,16 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Service Password Change{% endblock page_title %} {% block page_title %}{% trans "Service Password Change" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Set {{service}} Password</h1> <h1 class="page-header text-center">{% blocktrans %}Set {{service}} Password{% endblocktrans %}</h1>
{% if error %} {% if error %}
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
@ -22,13 +23,13 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="row"> <div class="row">
<p>Passwords are stored as plain text. Don't re-use another password.</p> <p>{% trans "Passwords are stored as plain text. Don't re-use another password." %}</p>
<form class="form-signin" role="form" action="" method="POST" <form class="form-signin" role="form" action="" method="POST"
onsubmit="submitbutton.disabled = true; return true;"> onsubmit="submitbutton.disabled = true; return true;">
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" name="submitbutton" type="submit">Set Password</button> <button class="btn btn-lg btn-primary btn-block" name="submitbutton" type="submit">{% trans "Set Password" %}</button>
</form> </form>
</div> </div>
</div> </div>

View File

@ -1,18 +1,19 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Services Management{% endblock page_title %} {% block page_title %}{% trans "Services Management" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Available Services</h1> <h1 class="page-header text-center">{% trans "Available Services" %}</h1>
{% if ENABLE_AUTH_DISCORD or ENABLE_BLUE_DISCORD %} {% if ENABLE_AUTH_DISCORD or ENABLE_BLUE_DISCORD %}
{% if request.user.is_superuser %} {% if request.user.is_superuser %}
<div class="text-center"> <div class="text-center">
<a type="button" class="btn btn-lg btn-success" href="{% url 'auth_discord_add_bot' %}">Link Discord Server</a> <a type="button" class="btn btn-lg btn-success" href="{% url 'auth_discord_add_bot' %}">{% trans "Link Discord" %} Server</a>
</div> </div>
<br> <br>
{% endif %} {% endif %}
@ -20,11 +21,11 @@
{% if perms.auth.blue_member %} {% if perms.auth.blue_member %}
<table class="table table-bordered"> <table class="table table-bordered">
<tr> <tr>
<th class="text-center">Service</th> <th class="text-center">{% trans "Service" %}</th>
<th class="text-center">Username</th> <th class="text-center">{% trans "Username" %}</th>
<th class="text-center">Password</th> <th class="text-center">{% trans "Password" %}</th>
<th class="text-center">Domain</th> <th class="text-center">{% trans "Domain" %}</th>
<th class="text-center">Action</th> <th class="text-center">{% trans "Action" %}</th>
</tr> </tr>
{% if ENABLE_BLUE_FORUM %} {% if ENABLE_BLUE_FORUM %}
<tr> <tr>
@ -333,11 +334,11 @@
{% endif %} {% endif %}
{% if ENABLE_BLUE_TEAMSPEAK3 %} {% if ENABLE_BLUE_TEAMSPEAK3 %}
<tr> <tr>
<th class="text-center">Service</th> <th class="text-center">{% trans "Service" %}</th>
<th class="text-center">Unique ID</th> <th class="text-center">{% trans "Unique ID" %}</th>
<th class="text-center">PermissionKey</th> <th class="text-center">PermissionKey</th>
<th class="text-center">Quick Link</th> <th class="text-center">{% trans "Quick Link" %}</th>
<th class="text-center">Action</th> <th class="text-center">{% trans "Action" %}</th>
</tr> </tr>
<tr> <tr>
<td class="text-center">Teamspeak 3</td> <td class="text-center">Teamspeak 3</td>
@ -374,11 +375,11 @@
{% elif perms.auth.member %} {% elif perms.auth.member %}
<table class="table table-bordered"> <table class="table table-bordered">
<tr> <tr>
<th class="text-center">Service</th> <th class="text-center">{% trans "Service" %}</th>
<th class="text-center">Username</th> <th class="text-center">{% trans "Username" %}</th>
<th class="text-center">Password</th> <th class="text-center">{% trans "Password" %}</th>
<th class="text-center">Domain</th> <th class="text-center">{% trans "Domain" %}</th>
<th class="text-center">Action</th> <th class="text-center">{% trans "Action" %}</th>
</tr> </tr>
{% if ENABLE_AUTH_FORUM %} {% if ENABLE_AUTH_FORUM %}
<tr> <tr>
@ -685,11 +686,11 @@
{% endif %} {% endif %}
{% if ENABLE_AUTH_TEAMSPEAK3 %} {% if ENABLE_AUTH_TEAMSPEAK3 %}
<tr> <tr>
<th class="text-center">Service</th> <th class="text-center">{% trans "Service" %}</th>
<th class="text-center">Unique ID</th> <th class="text-center">{% trans "Unique ID" %}</th>
<th class="text-center">PermissionKey</th> <th class="text-center">PermissionKey</th>
<th class="text-center">Quick Link</th> <th class="text-center">{% trans "Quick Link" %}</th>
<th class="text-center">Action</th> <th class="text-center">{% trans "Action" %}</th>
</tr> </tr>
<tr> <tr>
<td class="text-center">Teamspeak 3</td> <td class="text-center">Teamspeak 3</td>
@ -725,9 +726,9 @@
</table> </table>
{% else %} {% else %}
{% if IS_CORP %} {% if IS_CORP %}
<div class="alert alert-danger" role="alert">You are not in the corporation.</div> <div class="alert alert-danger" role="alert">{% trans "You are not in the corporation." %}</div>
{% else %} {% else %}
<div class="alert alert-danger" role="alert">You are not in the alliance.</div> <div class="alert alert-danger" role="alert">{% trans "You are not in the alliance." %}</div>
{% endif %} {% endif %}
{% endif %} {% endif %}
</div> </div>

View File

@ -1,36 +1,37 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Wormhole Signature Management{% endblock page_title %} {% block page_title %}{% trans "Wormhole Signature Management" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Wormhole Signatures <h1 class="page-header text-center">{% trans "Wormhole Signatures" %}
<div class="text-right"> <div class="text-right">
<a href="{% url 'auth_add_signature_view' %}"> <a href="{% url 'auth_add_signature_view' %}">
{% if perms.auth.signature_management %} {% if perms.auth.signature_management %}
<button type="button" class="btn btn-success">Create Signature</button> <button type="button" class="btn btn-success">{% trans "Create Signature" %}</button>
{% endif %} {% endif %}
</a> </a>
</div> </div>
</h1> </h1>
<table class="table table-responsive table-bordered"> <table class="table table-responsive table-bordered">
<tr> <tr>
<th class="text-center">ID</th> <th class="text-center">{% trans "ID" %}</th>
<th class="text-center">System</th> <th class="text-center">{% trans "System" %}</th>
<th class="text-center">Destination</th> <th class="text-center">{% trans "Destination" %}</th>
<th class="text-center">Goes Through</th> <th class="text-center">{% trans "Goes Through" %}</th>
<th class="text-center">Lifetime Status</th> <th class="text-center">{% trans "Lifetime Status" %}</th>
<th class="text-center">Mass Status</th> <th class="text-center">{% trans "Mass Status" %}</th>
<th class="text-center">Ship Size</th> <th class="text-center">{% trans "Ship Size" %}</th>
<th class="text-center">Notes</th> <th class="text-center">{% trans "Notes" %}</th>
<th class="text-center">Post Time</th> <th class="text-center">{% trans "Post Time" %}</th>
{% if perms.auth.signature_management %} {% if perms.auth.signature_management %}
<th class="text-center">Creator</th> <th class="text-center">{% trans "Creator" %}</th>
<th class="text-center">Action</th> <th class="text-center">{% trans "Action" %}</th>
{% endif %} {% endif %}
</tr> </tr>

View File

@ -1,29 +1,30 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth - Update Signature {% endblock %} {% block title %}Alliance Auth - Update Signature {% endblock %}
{% block page_title %}Update AAR Link{% endblock page_title %} {% block page_title %}{% trans "Update AAR Link" %}{% endblock page_title %}
{% block extra_css %} {% block extra_css %}
<link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %} <link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Update Signature</h1> <h1 class="page-header text-center">{% trans "Update Signature" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="row"> <div class="row">
{% if no_fleet_id %} {% if no_fleet_id %}
<div class="alert alert-danger" role="alert">Signature Does Not Exist</div> <div class="alert alert-danger" role="alert">{% trans "Signature Does Not Exist" %}</div>
{% else %} {% else %}
<form class="form-signin" role="form" action="" method="POST"> <form class="form-signin" role="form" action="" method="POST">
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Update Signature <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Update Signature" %}
</button> </button>
</form> </form>
{% endif %} {% endif %}

View File

@ -1,17 +1,18 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth - SRP Fleet Create{% endblock %} {% block title %}Alliance Auth - SRP Fleet Create{% endblock %}
{% block page_title %}SRP Fleet Create{% endblock page_title %} {% block page_title %}{% trans "SRP Fleet Create" %}{% endblock page_title %}
{% block extra_css %} {% block extra_css %}
<link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %} <link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Create SRP Fleet</h1> <h1 class="page-header text-center">{% trans "Create SRP Fleet" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
@ -21,12 +22,12 @@
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Create SRP Fleet</button> <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Create SRP Fleet" %}</button>
</form> </form>
{% else %} {% else %}
<div class="alert alert-success" role="alert">Fleet Created Successfully!</div> <div class="alert alert-success" role="alert">{% trans "Fleet Created Successfully!" %}</div>
<div class="alert alert-info" role="alert">Give this <a <div class="alert alert-info" role="alert">{% blocktrans %}Give this <a
href="/srp_request/{{ completed_srp_code }}">Link</a> to the line members href="/srp_request/{{ completed_srp_code }}">Link</a> to the line members{% endblocktrans %}
</div> </div>
<div class="alert alert-info" role="alert"> <div class="alert alert-info" role="alert">
http://{{ request.get_host }}/srp_request/{{ completed_srp_code }}</div> http://{{ request.get_host }}/srp_request/{{ completed_srp_code }}</div>

View File

@ -1,6 +1,8 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% load humanize %} {% load humanize %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
@ -10,16 +12,16 @@
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<div class="row"> <div class="row">
<h1 class="page-header text-center">SRP Fleet Data <h1 class="page-header text-center">{% trans "SRP Fleet Data" %}
<div class="text-right"> <div class="text-right">
{% if perms.auth.srp_management %} {% if perms.auth.srp_management %}
{% if fleet_status == "Completed" %} {% if fleet_status == "Completed" %}
<a href="/srp_fleet_mark_uncompleted/{{ fleet_id }}"> <a href="/srp_fleet_mark_uncompleted/{{ fleet_id }}">
<button type="button" class="btn btn-warning">Mark Incomplete</button> <button type="button" class="btn btn-warning">{% trans "Mark Incomplete" %}</button>
</a> </a>
{% else %} {% else %}
<a href="/srp_fleet_mark_completed/{{ fleet_id }}"> <a href="/srp_fleet_mark_completed/{{ fleet_id }}">
<button type="button" class="btn btn-success">Mark Completed</button> <button type="button" class="btn btn-success">{% trans "Mark Completed" %}</button>
</a> </a>
{% endif %} {% endif %}
{% endif %} {% endif %}
@ -27,23 +29,23 @@
</h1> </h1>
<div class="alert alert-info" role="alert"> <div class="alert alert-info" role="alert">
<div class="text-right"> <div class="text-right">
<b>Total Losses: {{ srpfleetrequests.count }}</b> <b>{% trans "Total Losses:" %} {{ srpfleetrequests.count }}</b>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<b>Total ISK Cost: {{ totalcost | intcomma }}</b> <b>{% trans "Total ISK Cost:" %} {{ totalcost | intcomma }}</b>
</div> </div>
</div> </div>
<table class="table table-bordered"> <table class="table table-bordered">
<tr> <tr>
<th class="text-center">Pilot Name</th> <th class="text-center">{% trans "Pilot Name" %}</th>
<th class="text-center">Killboard Link</th> <th class="text-center">{% trans "Killboard Link" %}</th>
<th class="text-center">Additional Info</th> <th class="text-center">{% trans "Additional Info" %}</th>
<th class="text-center">Ship Type</th> <th class="text-center">{% trans "Ship Type" %}</th>
<th class="text-center">Killboard Loss Amt</th> <th class="text-center">{% trans "Killboard Loss Amt" %}</th>
<th class="text-center">SRP ISK Cost</th> <th class="text-center">{% trans "SRP ISK Cost" %}</th>
<th class="text-center">Post Time</th> <th class="text-center">{% trans "Post Time" %}</th>
<th class="text-center">Status</th> <th class="text-center">{% trans "Status" %}</th>
{% if perms.auth.srp_management %} {% if perms.auth.srp_management %}
<th class="text-center">Actions</th> <th class="text-center">{% trans "Actions" %}</th>
{% endif %} {% endif %}
</tr> </tr>
{% for srpfleetrequest in srpfleetrequests %} {% for srpfleetrequest in srpfleetrequests %}
@ -65,15 +67,15 @@
<td class="text-center"> <td class="text-center">
{% if srpfleetrequest.srp_status == "Approved" %} {% if srpfleetrequest.srp_status == "Approved" %}
<div class="label label-success"> <div class="label label-success">
Approved {% trans "Approved" %}
</div> </div>
{% elif srpfleetrequest.srp_status == "Rejected" %} {% elif srpfleetrequest.srp_status == "Rejected" %}
<div class="label label-danger"> <div class="label label-danger">
Rejected {% trans "Rejected" %}
</div> </div>
{% else %} {% else %}
<div class="label label-warning"> <div class="label label-warning">
Pending {% trans "Pending" %}
</div> </div>
{% endif %} {% endif %}
</td> </td>

View File

@ -1,34 +1,35 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth - SRP Request{% endblock %} {% block title %}Alliance Auth - SRP Request{% endblock %}
{% block page_title %}SRP Request{% endblock page_title %} {% block page_title %}{% trans "SRP Request" %}{% endblock page_title %}
{% block extra_css %} {% block extra_css %}
<link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %} <link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Create SRP Request</h1> <h1 class="page-header text-center">{% trans "Create SRP Request" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="row"> <div class="row">
{% if no_srp_code %} {% if no_srp_code %}
<div class="alert alert-danger" role="alert">SRP Code Does Not Exist</div> <div class="alert alert-danger" role="alert">{% trans "SRP Code Does Not Exist" %}</div>
{% else %} {% else %}
{% if completed == False %} {% if completed == False %}
<form class="form-signin" role="form" action="" method="POST"> <form class="form-signin" role="form" action="" method="POST">
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Create SRP Request <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Create SRP Request" %}
</button> </button>
</form> </form>
{% else %} {% else %}
<div class="alert alert-success" role="alert">SRP Request Successfully Submitted</div> <div class="alert alert-success" role="alert">{% trans "SRP Request Successfully Submitted" %}</div>
{% endif %} {% endif %}
{% endif %} {% endif %}
</div> </div>

View File

@ -1,29 +1,30 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth - Update SRP Amount{% endblock %} {% block title %}Alliance Auth - Update SRP Amount{% endblock %}
{% block page_title %}Update SRP Amount{% endblock page_title %} {% block page_title %}{% trans "Update SRP Amount" %}{% endblock page_title %}
{% block extra_css %} {% block extra_css %}
<link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %} <link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Update SRP Amount</h1> <h1 class="page-header text-center">{% trans "Update SRP Amount" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="row"> <div class="row">
{% if no_srp_code %} {% if no_srp_code %}
<div class="alert alert-danger" role="alert">SRP Code Does Not Exist</div> <div class="alert alert-danger" role="alert">{% trans "SRP Code Does Not Exist" %}</div>
{% else %} {% else %}
<form class="form-signin" role="form" action="" method="POST"> <form class="form-signin" role="form" action="" method="POST">
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Update SRP Request Amount <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Update SRP Request Amount" %}
</button> </button>
</form> </form>
{% endif %} {% endif %}

View File

@ -1,29 +1,30 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth - Update AAR Link{% endblock %} {% block title %}Alliance Auth - Update AAR Link{% endblock %}
{% block page_title %}Update AAR Link{% endblock page_title %} {% block page_title %}{% trans "Update AAR Link" %}{% endblock page_title %}
{% block extra_css %} {% block extra_css %}
<link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %} <link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Update AAR Link</h1> <h1 class="page-header text-center">{% trans "Update AAR Link" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="row"> <div class="row">
{% if no_fleet_id %} {% if no_fleet_id %}
<div class="alert alert-danger" role="alert">SRP Fleet Does Not Exist</div> <div class="alert alert-danger" role="alert">{% trans "SRP Fleet Does Not Exist" %}</div>
{% else %} {% else %}
<form class="form-signin" role="form" action="" method="POST"> <form class="form-signin" role="form" action="" method="POST">
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Update AAR Link <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Update AAR Link" %}
</button> </button>
</form> </form>
{% endif %} {% endif %}

View File

@ -1,43 +1,45 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% load humanize %} {% load humanize %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Srp Management{% endblock page_title %} {% block page_title %}{% trans "Srp Management" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<div class="row"> <div class="row">
<h1 class="page-header text-center">SRP Management <h1 class="page-header text-center">{% trans "SRP Management" %}
<div class="text-right"> <div class="text-right">
{% if perms.auth.srp_management %} {% if perms.auth.srp_management %}
<a href="{% url 'auth_srp_management_all_view' %}"> <a href="{% url 'auth_srp_management_all_view' %}">
<button type="button" class="btn btn-primary">View All</button> <button type="button" class="btn btn-primary">{% trans "View All" %}</button>
</a> </a>
<a href="{% url 'auth_srp_fleet_add_view' %}"> <a href="{% url 'auth_srp_fleet_add_view' %}">
<button type="button" class="btn btn-success">Add SRP Fleet</button> <button type="button" class="btn btn-success">{% trans "Add SRP Fleet" %}</button>
</a> </a>
{% endif %} {% endif %}
</div> </div>
</h1> </h1>
<div class="alert alert-info" role="alert"> <div class="alert alert-info" role="alert">
<div class="text-right"> <div class="text-right">
<b>Total ISK Cost: {{ totalcost | intcomma }}</b> <b>{% trans "Total ISK Cost:" %} {{ totalcost | intcomma }}</b>
</div> </div>
</div> </div>
<table class="table table-bordered"> <table class="table table-bordered">
<tr> <tr>
<th class="text-center">Fleet Name</th> <th class="text-center">{% trans "Fleet Name" %}</th>
<th class="text-center">Fleet Time</th> <th class="text-center">{% trans "Fleet Time" %}</th>
<th class="text-center">Fleet Doctrine</th> <th class="text-center">{% trans "Fleet Doctrine" %}</th>
<th class="text-center">Fleet Commander</th> <th class="text-center">{% trans "Fleet Commander" %}</th>
<th class="text-center">Fleet AAR</th> <th class="text-center">{% trans "Fleet AAR" %}</th>
<th class="text-center">Fleet SRP Code</th> <th class="text-center">{% trans "Fleet SRP Code" %}</th>
<th class="text-center">Fleet ISK Cost</th> <th class="text-center">{% trans "Fleet ISK Cost" %}</th>
<th class="text-center">SRP Status</th> <th class="text-center">{% trans "SRP Status" %}</th>
<th class="text-center">Actions</th> <th class="text-center">{% trans "Actions" %}</th>
</tr> </tr>
{% for srpfleet in srpfleets %} {% for srpfleet in srpfleets %}
<tr> <tr>
@ -63,7 +65,7 @@
</div> </div>
{% else %} {% else %}
<div class="label label-danger"> <div class="label label-danger">
Disabled {% trans "Disabled" %}
</div> </div>
{% endif %} {% endif %}
</th> </th>
@ -78,11 +80,11 @@
<td class="text-center"> <td class="text-center">
{% if srpfleet.fleet_srp_status == "" %} {% if srpfleet.fleet_srp_status == "" %}
<div class="label label-warning"> <div class="label label-warning">
Pending {% trans "Pending" %}
</div> </div>
{% else %} {% else %}
<div class="label label-success"> <div class="label label-success">
Completed {% trans "Completed" %}
</div> </div>
{% endif %} {% endif %}
</td> </td>

View File

@ -1,24 +1,25 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Verify Teamspeak{% endblock page_title %} {% block page_title %}{% trans "Verify Teamspeak" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Verify Teamspeak Identity</h1> <h1 class="page-header text-center">{% trans "Verify Teamspeak Identity" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<a href="ts3server://{{ TEAMSPEAK3_PUBLIC_URL }}?token={{ authinfo.teamspeak3_perm_key }}&nickname={{ authinfo.teamspeak3_uid }}" class="btn btn-primary btn-block btn-lg" title="Join">Join Server</a> <a href="ts3server://{{ TEAMSPEAK3_PUBLIC_URL }}?token={{ authinfo.teamspeak3_perm_key }}&nickname={{ authinfo.teamspeak3_uid }}" class="btn btn-primary btn-block btn-lg" title="Join">{% trans "Join Server" %}</a>
<br/> <br/>
<form class="form-signin" role="form" action="{% url 'auth_verify_teamspeak3' %}" method="POST"> <form class="form-signin" role="form" action="{% url 'auth_verify_teamspeak3' %}" method="POST">
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Continue</button> <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Continue" %}</button>
</form> </form>
</div> </div>
</div> </div>

View File

@ -1,39 +1,41 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block title %}Alliance Auth{% endblock %} {% block title %}Alliance Auth{% endblock %}
{% block page_title %}Structure Timer Management{% endblock page_title %} {% block page_title %}{% trans "Structure Timer Management" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %} {% block extra_css %}{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Structure Timers <h1 class="page-header text-center">{% trans "Structure Timers" %}
<div class="text-right"> <div class="text-right">
<a href="{% url 'auth_add_timer_view' %}"> <a href="{% url 'auth_add_timer_view' %}">
{% if perms.auth.timer_management %} {% if perms.auth.timer_management %}
<button type="button" class="btn btn-success">Create Structure Timer</button> <button type="button" class="btn btn-success">{% trans "Create Structure Timer" %}</button>
{% endif %} {% endif %}
</a> </a>
</div> </div>
</h1> </h1>
<div class="col-lg-12 text-center"> <div class="col-lg-12 text-center">
<div class="label label-info text-left"> <div class="label label-info text-left">
<b>Current Eve Time: </b> <b>{% trans "Current Eve Time:" %} </b>
</div><div class="label label-info text-left" id="current-time"></div> </div><div class="label label-info text-left" id="current-time"></div>
</div> </div>
<h4><b>Next Timer</b></h4> <h4><b>{% trans "Next Timer" %}</b></h4>
<table class="table table-responsive table-bordered"> <table class="table table-responsive table-bordered">
<tr> <tr>
<th style="width:150px" class="text-center">Details</th> <th style="width:150px" class="text-center">{% trans "Details" %}</th>
<th class="text-center">Objective</th> <th class="text-center">{% trans "Objective" %}</th>
<th class="text-center">System</th> <th class="text-center">{% trans "System" %}</th>
<th class="text-center">Structure</th> <th class="text-center">{% trans "Structure" %}</th>
<th class="text-center">Eve Time</th> <th class="text-center">{% trans "Eve Time" %}</th>
<th class="text-center">Local Time</th> <th class="text-center">{% trans "Local Time" %}</th>
<th class="text-center">Creator</th> <th class="text-center">{% trans "Creator" %}</th>
{% if perms.auth.timer_management %} {% if perms.auth.timer_management %}
<th class="text-center">Action</th> <th class="text-center">{% trans "Action" %}</th>
{% endif %} {% endif %}
</tr> </tr>
{% if closest_timer %} {% if closest_timer %}
@ -46,17 +48,17 @@
<td class="text-center"> <td class="text-center">
{% ifequal closest_timer.objective "Hostile" %} {% ifequal closest_timer.objective "Hostile" %}
<div class="label label-danger"> <div class="label label-danger">
Hostile {% trans "Hostile" %}
</div> </div>
{% endifequal %} {% endifequal %}
{% ifequal closest_timer.objective "Friendly" %} {% ifequal closest_timer.objective "Friendly" %}
<div class="label label-primary"> <div class="label label-primary">
Friendly {% trans "Friendly" %}
</div> </div>
{% endifequal %} {% endifequal %}
{% ifequal closest_timer.objective "Neutral" %} {% ifequal closest_timer.objective "Neutral" %}
<div class="label label-default"> <div class="label label-default">
Neutral {% trans "Neutral" %}
</div> </div>
{% endifequal %} {% endifequal %}
</td> </td>
@ -124,18 +126,18 @@
</tr> </tr>
</table> </table>
{% if corp_timers %} {% if corp_timers %}
<h4><b>Corp Timers</b></h4> <h4><b>{% trans "Corp Timers" %}</b></h4>
<table class="table table-bordered"> <table class="table table-bordered">
<tr> <tr>
<th style="width:150px" class="text-center">Details</th> <th style="width:150px" class="text-center">{% trans "Details" %}</th>
<th class="text-center">Objective</th> <th class="text-center">{% trans "Objective" %}</th>
<th class="text-center">System</th> <th class="text-center">{% trans "System" %}</th>
<th class="text-center">Structure</th> <th class="text-center">{% trans "Structure" %}</th>
<th class="text-center">Eve Time</th> <th class="text-center">{% trans "Eve Time" %}</th>
<th class="text-center">Local Time</th> <th class="text-center">{% trans "Local Time" %}</th>
<th class="text-center">Creator</th> <th class="text-center">{% trans "Creator" %}</th>
{% if perms.auth.timer_management %} {% if perms.auth.timer_management %}
<th class="text-center">Action</th> <th class="text-center">{% trans "Action" %}</th>
{% endif %} {% endif %}
</tr> </tr>
{% for timer in corp_timers %} {% for timer in corp_timers %}
@ -148,17 +150,17 @@
<td class="text-center"> <td class="text-center">
{% ifequal timer.objective "Hostile" %} {% ifequal timer.objective "Hostile" %}
<div class="label label-danger"> <div class="label label-danger">
Hostile {% trans "Hostile" %}
</div> </div>
{% endifequal %} {% endifequal %}
{% ifequal timer.objective "Friendly" %} {% ifequal timer.objective "Friendly" %}
<div class="label label-primary"> <div class="label label-primary">
Friendly {% trans "Friendly" %}
</div> </div>
{% endifequal %} {% endifequal %}
{% ifequal timer.objective "Neutral" %} {% ifequal timer.objective "Neutral" %}
<div class="label label-default"> <div class="label label-default">
Neutral {% trans "Neutral" %}
</div> </div>
{% endifequal %} {% endifequal %}
</td> </td>
@ -226,18 +228,18 @@
{% endfor %} {% endfor %}
</table> </table>
{% endif %} {% endif %}
<h4><b>Future Timers</b></h4> <h4><b>{% trans "Future Timers" %}</b></h4>
<table class="table table-bordered"> <table class="table table-bordered">
<tr> <tr>
<th style="width:150px" class="text-center">Details</th> <th style="width:150px" class="text-center">{% trans "Details" %}</th>
<th class="text-center">Objective</th> <th class="text-center">{% trans "Objective" %}</th>
<th class="text-center">System</th> <th class="text-center">{% trans "System" %}</th>
<th class="text-center">Structure</th> <th class="text-center">{% trans "Structure" %}</th>
<th class="text-center">Eve Time</th> <th class="text-center">{% trans "Eve Time" %}</th>
<th class="text-center">Local Time</th> <th class="text-center">{% trans "Local Time" %}</th>
<th class="text-center">Creator</th> <th class="text-center">{% trans "Creator" %}</th>
{% if perms.auth.timer_management %} {% if perms.auth.timer_management %}
<th class="text-center">Action</th> <th class="text-center">{% trans "Action" %}</th>
{% endif %} {% endif %}
</tr> </tr>
{% for timer in timers %} {% for timer in timers %}
@ -251,17 +253,17 @@
<td class="text-center"> <td class="text-center">
{% ifequal timer.objective "Hostile" %} {% ifequal timer.objective "Hostile" %}
<div class="label label-danger"> <div class="label label-danger">
Hostile {% trans "Hostile" %}
</div> </div>
{% endifequal %} {% endifequal %}
{% ifequal timer.objective "Friendly" %} {% ifequal timer.objective "Friendly" %}
<div class="label label-primary"> <div class="label label-primary">
Friendly {% trans "Friendly" %}
</div> </div>
{% endifequal %} {% endifequal %}
{% ifequal timer.objective "Neutral" %} {% ifequal timer.objective "Neutral" %}
<div class="label label-default"> <div class="label label-default">
Neutral {% trans "Neutral" %}
</div> </div>
{% endifequal %} {% endifequal %}
</td> </td>
@ -334,32 +336,58 @@
<script src="/static/js/dateformat.js"></script> <script src="/static/js/dateformat.js"></script>
<script src="/static/js/countdown.js"></script> <script src="/static/js/countdown.js"></script>
<script> <script>
var locale = "{{ LANGUAGE_CODE }}";
var options = { weekday: 'short' };
var options2 = { hour: 'numeric', minute: 'numeric' };
var clockClosest = document.getElementById("countdownclosest"), targetDate = new Date(Date.UTC({{ closest_timer.eve_time | date:"Y, m-1, d, H, i" }}));{% for timer in timers %} var clockClosest = document.getElementById("countdownclosest"), targetDate = new Date(Date.UTC({{ closest_timer.eve_time | date:"Y, m-1, d, H, i" }}));{% for timer in timers %}
var clock{{ timer.id }} = document.getElementById("countdown{{ timer.id }}"), targetDate{{ timer.id }} = new Date(Date.UTC({{ timer.eve_time | date:"Y, m-1, d, H, i" }}));{% endfor %} var clock{{ timer.id }} = document.getElementById("countdown{{ timer.id }}"), targetDate{{ timer.id }} = new Date(Date.UTC({{ timer.eve_time | date:"Y, m-1, d, H, i" }}));{% endfor %}
setInterval(function(){clockClosest.innerHTML = targetDate.format('D @ h:ia'); if (targetDate > Date.now()){ clockClosest.innerHTML = clockClosest.innerHTML + "<BR>" + countdown(targetDate).toString();}}, 1000); setInterval(function(){
{% for timer in timers %}setInterval(function(){clock{{ timer.id }}.innerHTML = targetDate{{ timer.id }}.format('D @ h:ia'); if (targetDate{{ timer.id }} > Date.now()){ clock{{ timer.id }}.innerHTML = clock{{ timer.id }}.innerHTML + "<BR>" + countdown(targetDate{{ timer.id }}).toString();}}, 1000);{% endfor %} clockClosest.innerHTML = ((targetDate.toLocaleString(locale, options)) + " @ " + (targetDate.toLocaleString(locale, options2)));
if (targetDate > Date.now()){
clockClosest.innerHTML = clockClosest.innerHTML + "<BR>" + countdown(targetDate).toString();}}, 1000);
{% for timer in timers %}setInterval(
function(){
clock{{ timer.id }}.innerHTML = ((targetDate{{ timer.id }}.toLocaleString(locale, options)) + " @ " + (targetDate{{ timer.id }}.toLocaleString(locale, options2)));
if (targetDate{{ timer.id }} > Date.now()){
clock{{ timer.id }}.innerHTML = clock{{ timer.id }}.innerHTML + "<BR>" + countdown(targetDate{{ timer.id }}).toString();}}, 1000);{% endfor %}
setInterval(function(){updateClock()}, 1000); setInterval(function(){updateClock()}, 1000);
function updateClock() { function updateClock() {
var clock = new Date(); var options = { timeZone: 'UTC', weekday: 'short', day: 'numeric', month: 'short', year: 'numeric', hour: "numeric", minute: "numeric", second: "numeric" };
document.getElementById("current-time").innerHTML = "<b>" + clock.toUTCString() + "</b>"; var clock = new Date()
document.getElementById("current-time").innerHTML = "<b>" + clock.toLocaleString(locale, options) + "</b>";
} }
</script> </script>
<script> <script>
var locale = "{{ LANGUAGE_CODE }}";
var options = { weekday: 'short' };
var options2 = { hour: 'numeric', minute: 'numeric' };
var clockClosestCorp = document.getElementById("countdownclosestCorp"), targetDate = new Date(Date.UTC({{ closest_timer.eve_time | date:"Y, m-1, d, H, i" }}));{% for timer in corp_timers %} var clockClosestCorp = document.getElementById("countdownclosestCorp"), targetDate = new Date(Date.UTC({{ closest_timer.eve_time | date:"Y, m-1, d, H, i" }}));{% for timer in corp_timers %}
var clockCorp{{ timer.id }} = document.getElementById("countdownCorp{{ timer.id }}"), targetDate{{ timer.id }} = new Date(Date.UTC({{ timer.eve_time | date:"Y, m-1, d, H, i" }}));{% endfor %} var clockCorp{{ timer.id }} = document.getElementById("countdownCorp{{ timer.id }}"), targetDate{{ timer.id }} = new Date(Date.UTC({{ timer.eve_time | date:"Y, m-1, d, H, i" }}));{% endfor %}
setInterval(function(){clockClosestCorp.innerHTML = targetDate.format('D @ h:ia'); if (targetDate > Date.now()){ clockClosestCorp.innerHTML = clockClosestCorp.innerHTML + "<BR>" + countdown(targetDate).toString();}}, 1000); setInterval(
{% for timer in corp_timers %}setInterval(function(){clockCorp{{ timer.id }}.innerHTML = targetDate{{ timer.id }}.format('D @ h:ia'); if (targetDate{{ timer.id }} > Date.now()){ clockCorp{{ timer.id }}.innerHTML = clockCorp{{ timer.id }}.innerHTML + "<BR>" + countdown(targetDate{{ timer.id }}).toString();}}, 1000);{% endfor %} function(){
clockClosestCorp.innerHTML = ((targetDate.toLocaleString(locale, options)) + " @ " + (targetDate.toLocaleString(locale, options2)));
if (targetDate > Date.now()){
clockClosestCorp.innerHTML = clockClosestCorp.innerHTML + "<BR>" + countdown(targetDate).toString();}}, 1000);
{% for timer in corp_timers %}setInterval(function(){
clockCorp{{ timer.id }}.innerHTML = ((targetDate{{ timer.id }}.toLocaleString(locale, options)) + " @ " + (targetDate{{ timer.id }}.toLocaleString(locale, options2)));
if (targetDate{{ timer.id }} > Date.now()){ clockCorp{{ timer.id }}.innerHTML = clockCorp{{ timer.id }}.innerHTML + "<BR>" + countdown(targetDate{{ timer.id }}).toString();}}, 1000);{% endfor %}
setInterval(function(){updateClock()}, 1000); setInterval(function(){updateClock()}, 1000);
function updateClock() { function updateClock() {
var clockCorp = new Date(); var options = { timeZone: 'UTC', weekday: 'short', day: 'numeric', month: 'short', year: 'numeric', hour: "numeric", minute: "numeric", second: "numeric" };
document.getElementById("current-time").innerHTML = "<b>" + clockCorp.toUTCString() + "</b>"; var clock = new Date()
document.getElementById("current-time").innerHTML = "<b>" + clock.toLocaleString(locale, options) + "</b>";
} }
</script> </script>

View File

@ -1,29 +1,30 @@
{% extends "public/base.html" %} {% extends "public/base.html" %}
{% load bootstrap %} {% load bootstrap %}
{% load staticfiles %} {% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth - Update Structure Timer {% endblock %} {% block title %}Alliance Auth - Update Structure Timer {% endblock %}
{% block page_title %}Update AAR Link{% endblock page_title %} {% block page_title %}{% trans "Update AAR Link" %}{% endblock page_title %}
{% block extra_css %} {% block extra_css %}
<link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %} <link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Update Structure Timer</h1> <h1 class="page-header text-center">{% trans "Update Structure Timer" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="row"> <div class="row">
{% if no_fleet_id %} {% if no_fleet_id %}
<div class="alert alert-danger" role="alert">Structure Timer Does Not Exist</div> <div class="alert alert-danger" role="alert">{% trans "Structure Timer Does Not Exist" %}</div>
{% else %} {% else %}
<form class="form-signin" role="form" action="" method="POST"> <form class="form-signin" role="form" action="" method="POST">
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Update Structure Timer <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Update Structure Timer" %}
</button> </button>
</form> </form>
{% endif %} {% endif %}

View File

@ -3,17 +3,17 @@
{% load i18n static %} {% load i18n static %}
{% block title %}{% trans 'Password change' %}{% endblock %} {% block title %}{% trans 'Password Change' %}{% endblock %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Change Password</h1> <h1 class="page-header text-center">{% trans "Change Password" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="row"> <div class="row">
<p class="text-center"> <p class="text-center">
Completed {% trans "Completed" %}
</p> </p>
</div> </div>
</div> </div>

View File

@ -2,12 +2,11 @@
{% load bootstrap %} {% load bootstrap %}
{% load i18n static %} {% load i18n static %}
{% block title %}{% trans "Password Change" %}{% endblock %}
{% block title %}{% trans 'Password change' %}{% endblock %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header text-center">Change Password</h1> <h1 class="page-header text-center">{% trans "Change Password" %}</h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
@ -16,7 +15,7 @@
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
<br/> <br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Change Password</button> <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Change Password" %}</button>
</form> </form>
</div> </div>
</div> </div>

View File

@ -51,7 +51,7 @@
<p class="text-center">{% trans "Your password has been set." %}</p> <p class="text-center">{% trans "Your password has been set." %}</p>
<a href="{{ login_url }}"> <a href="{{ login_url }}">
<button class="btn btn-lg btn-success btn-block">Log In</button> <button class="btn btn-lg btn-success btn-block">{% trans "Login" %}</button>
</a> </a>
</div> </div>
</div> </div>

View File

@ -50,7 +50,7 @@
{% csrf_token %} {% csrf_token %}
{{ form |bootstrap }} {{ form |bootstrap }}
<div class=""> <div class="">
<button class="btn btn-lg btn-primary btn-block" type="submit">Change Password</button> <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Change Password" %}</button>
</div> </div>
</form> </form>
{% else %} {% else %}

View File

@ -53,7 +53,7 @@
<p class="text-center">{% trans "Forgotten your password? Enter your email below." %}</p> <p class="text-center">{% trans "Forgotten your password? Enter your email below." %}</p>
{{ form|bootstrap }} {{ form|bootstrap }}
<div class=""> <div class="">
<button class="btn btn-lg btn-primary btn-block" type="submit">Reset Password</button> <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Reset Password" %}</button>
</div> </div>
</form> </form>
</div> </div>

View File

@ -1,20 +1,21 @@
from django import forms from django import forms
from django.core.validators import MaxValueValidator, MinValueValidator from django.core.validators import MaxValueValidator, MinValueValidator
from django.utils.translation import ugettext_lazy as _
class TimerForm(forms.Form): class TimerForm(forms.Form):
structure_choices = [('POCO', 'POCO'), ('I-HUB', 'I-HUB'), ('POS[S]', 'POS[S]'), structure_choices = [('POCO', 'POCO'), ('I-HUB', 'I-HUB'), ('POS[S]', 'POS[S]'),
('POS[M]', 'POS[M]'), ('POS[L]', 'POS[L]'), ('Station', 'Station'), ('TCU', 'TCU'), ('Other', 'Other')] ('POS[M]', 'POS[M]'), ('POS[L]', 'POS[L]'), ('Station', 'Station'), ('TCU', 'TCU'), (_('Other'), _('Other'))]
objective_choices = [('Friendly', 'Friendly'), ('Hostile', 'Hostile'), ('Neutral', 'Neutral')] objective_choices = [('Friendly', _('Friendly')), ('Hostile', _('Hostile')), ('Neutral', _('Neutral'))]
details = forms.CharField(max_length=254, required=True, label='Details') details = forms.CharField(max_length=254, required=True, label=_('Details'))
system = forms.CharField(max_length=254, required=True, label="System") system = forms.CharField(max_length=254, required=True, label=_("System"))
planet_moon = forms.CharField(max_length=254, label="Planet/Moon", required=False, initial="") planet_moon = forms.CharField(max_length=254, label=_("Planet/Moon"), required=False, initial="")
structure = forms.ChoiceField(choices=structure_choices, required=True, label="Structure Type") structure = forms.ChoiceField(choices=structure_choices, required=True, label=_("Structure Type"))
objective = forms.ChoiceField(choices=objective_choices, required=True, label="Objective") objective = forms.ChoiceField(choices=objective_choices, required=True, label=_("Objective"))
days_left = forms.IntegerField(required=True, label="Days Remaining", validators=[MinValueValidator(0)]) days_left = forms.IntegerField(required=True, label=_("Days Remaining"), validators=[MinValueValidator(0)])
hours_left = forms.IntegerField(required=True, label="Hours Remaining", validators=[MinValueValidator(0), MaxValueValidator(23)]) hours_left = forms.IntegerField(required=True, label=_("Hours Remaining"), validators=[MinValueValidator(0), MaxValueValidator(23)])
minutes_left = forms.IntegerField(required=True, label="Minutes Remaining", validators=[MinValueValidator(0), MaxValueValidator(59)]) minutes_left = forms.IntegerField(required=True, label=_("Minutes Remaining"), validators=[MinValueValidator(0), MaxValueValidator(59)])
important = forms.BooleanField(label="Important", required=False) important = forms.BooleanField(label=_("Important"), required=False)
corp_timer = forms.BooleanField(label="Corp-Restricted", required=False) corp_timer = forms.BooleanField(label=_("Corp-Restricted"), required=False)