Commit 2d49afc0fa7533ee844a8197d60beb71e5c644f4

Authored by Felipe Henrique de Almeida Bormann
1 parent 918fef11

fixing menu alignment

amadeus/static/css/base/amadeus.css
@@ -10,6 +10,7 @@ @@ -10,6 +10,7 @@
10 color: white; 10 color: white;
11 width: 80%; 11 width: 80%;
12 margin-bottom: 3%; 12 margin-bottom: 3%;
  13 + text-align: center;
13 } 14 }
14 15
15 #sidebar-menu > .item:hover{ 16 #sidebar-menu > .item:hover{
@@ -20,7 +21,7 @@ @@ -20,7 +21,7 @@
20 21
21 22
22 #sidebar-menu > .item i { 23 #sidebar-menu > .item i {
23 - margin-left: 15%; 24 +
24 } 25 }
25 26
26 27
categories/views.py
@@ -73,6 +73,11 @@ class CreateCategory(HasRoleMixin, CreateView): @@ -73,6 +73,11 @@ class CreateCategory(HasRoleMixin, CreateView):
73 template_name = 'categories/create.html' 73 template_name = 'categories/create.html'
74 success_url = reverse_lazy('categories:index') 74 success_url = reverse_lazy('categories:index')
75 75
  76 +
  77 + def get_initial(self):
  78 + initial = super(CreateCategory, self).get_initial()
  79 + return initial
  80 +
76 def form_valid(self, form): 81 def form_valid(self, form):
77 self.object = form.save() 82 self.object = form.save()
78 #TODO: Implement log calls 83 #TODO: Implement log calls