Adding begginings of hrapplications

This commit is contained in:
Raynaldo Rivera 2014-10-24 21:08:34 -07:00
parent fd8801d006
commit 6e99823252
10 changed files with 44 additions and 8 deletions

View File

@ -58,7 +58,8 @@ INSTALLED_APPS = (
'registration',
'services',
'eveonline',
'groupmanagement'
'groupmanagement',
'hrapplications',
)
MIDDLEWARE_CLASSES = (

View File

@ -1,5 +1,4 @@
from django.db import models
from django.contrib import admin
from django.contrib.auth.models import User

View File

6
hrapplications/admin.py Normal file
View File

@ -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)

1
hrapplications/forms.py Normal file
View File

@ -0,0 +1 @@
__author__ = 'r4stl1n'

21
hrapplications/models.py Normal file
View File

@ -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)

3
hrapplications/tests.py Normal file
View File

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

3
hrapplications/views.py Normal file
View File

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.

View File

@ -8,11 +8,7 @@
<h1 class="page-header text-center">Dashboard</h1>
{% if perms.auth.alliance_member %}
<div class="col-lg-12 container" id="example">
<div class="panel panel-default">
<div class="panel-heading">Alliance Announcment</div>
<div class="panel-body">Something something dark side </div>
</div>
<div class="row">
<div class="col-lg-6">

View File

@ -8,8 +8,14 @@
<div class="col-lg-12">
<h1 class="page-header text-center">Help</h1>
<div class="container">
<p>WAT</p>
<div class="container-fluid">
<div class="col-md-4 col-md-offset-4">
<div class="row">
<p class="text-center">
Contact IT
</p>
</div>
</div>
</div>
</div>
{% endblock content %}