diff --git a/alliance_auth/settings.py b/alliance_auth/settings.py index 4e6b25b2..fa29a964 100644 --- a/alliance_auth/settings.py +++ b/alliance_auth/settings.py @@ -58,7 +58,8 @@ INSTALLED_APPS = ( 'registration', 'services', 'eveonline', - 'groupmanagement' + 'groupmanagement', + 'hrapplications', ) MIDDLEWARE_CLASSES = ( diff --git a/authentication/models.py b/authentication/models.py index 5b5c9134..c6fc4e02 100644 --- a/authentication/models.py +++ b/authentication/models.py @@ -1,5 +1,4 @@ from django.db import models -from django.contrib import admin from django.contrib.auth.models import User diff --git a/hrapplications/__init__.py b/hrapplications/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/hrapplications/admin.py b/hrapplications/admin.py new file mode 100644 index 00000000..f1e094db --- /dev/null +++ b/hrapplications/admin.py @@ -0,0 +1,6 @@ +from django.contrib import admin +from models import HRApplications +from models import HRApplicationComment + +admin.site.register(HRApplications) +admin.site.register(HRApplicationComment) \ No newline at end of file diff --git a/hrapplications/forms.py b/hrapplications/forms.py new file mode 100644 index 00000000..8fdaf87a --- /dev/null +++ b/hrapplications/forms.py @@ -0,0 +1 @@ +__author__ = 'r4stl1n' diff --git a/hrapplications/models.py b/hrapplications/models.py new file mode 100644 index 00000000..a08c1672 --- /dev/null +++ b/hrapplications/models.py @@ -0,0 +1,21 @@ +from django.db import models +from django.contrib.auth.models import User + + +class HRApplications(models.Model): + character_name = models.CharField(max_length=254, default="") + full_api_id = models.CharField(max_length=254, default="") + full_api_key = models.CharField(max_length=254, default="") + prefered_corp = models.CharField(max_length=254, default="") + is_a_spi = models.BooleanField(default=False) + about = models.TextField(default="") + extra = models.TextField(default="") + + user = models.ForeignKey(User) + + +class HRApplicationComment(models.Model): + date = models.DateTimeField(auto_now=True) + comment = models.TextField(default="") + + user = models.ForeignKey(User) \ No newline at end of file diff --git a/hrapplications/tests.py b/hrapplications/tests.py new file mode 100644 index 00000000..7ce503c2 --- /dev/null +++ b/hrapplications/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/hrapplications/views.py b/hrapplications/views.py new file mode 100644 index 00000000..91ea44a2 --- /dev/null +++ b/hrapplications/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/templates/registered/dashboard.html b/templates/registered/dashboard.html index dd5ae11c..389c1125 100644 --- a/templates/registered/dashboard.html +++ b/templates/registered/dashboard.html @@ -8,11 +8,7 @@
WAT
++ Contact IT +
+