From afe9a1573e4689234b9eafd19874006ed1d2de60 Mon Sep 17 00:00:00 2001 From: Ailson da Cruz Date: Mon, 5 Sep 2016 13:02:34 -0300 Subject: [PATCH] Resitro de usuário --- amadeus/settings.py | 305 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------------------------------------------------------------------------------------------------- amadeus/urls.py | 60 ++++++++++++++++++++++++++++++------------------------------ app/locale/pt_BR/LC_MESSAGES/django.po | 260 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------------------------- app/templates/home_app.html | 146 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------- courses/locale/pt_BR/LC_MESSAGES/django.po | 914 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- db.sqlite3 | Bin 3072 -> 0 bytes users/locale/pt_BR/LC_MESSAGES/django.po | 458 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- users/migrations/0007_auto_20160825_1801.py | 44 ++++++++++++++++++++++---------------------- users/migrations/0008_auto_20160902_2123.py | 27 +++++++++++++++++++++++++++ users/models.py | 2 +- users/templates/list_users.html | 60 ++++++++++++++++++++++++++++++------------------------------ 11 files changed, 1152 insertions(+), 1124 deletions(-) create mode 100644 users/migrations/0008_auto_20160902_2123.py diff --git a/amadeus/settings.py b/amadeus/settings.py index 96314c2..f800cca 100644 --- a/amadeus/settings.py +++ b/amadeus/settings.py @@ -1,153 +1,154 @@ - -""" -Django settings for amadeus project. - -Generated by 'django-admin startproject' using Django 1.9.7. - -For more information on this file, see -https://docs.djangoproject.com/en/1.9/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/1.9/ref/settings/ -""" - -import os - -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) -BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = '$=8)c!5)iha85a&8q4+kv1pyg0yl7_xe_x^z=2cn_1d7r0hny4' - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = [] - - -# Application definition - -INSTALLED_APPS = [ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.messages', - 'django.contrib.staticfiles', - - 'widget_tweaks', - 'rolepermissions', - 'rest_framework', - - 'core', - 'app', - 'courses', - 'users', -] - -MIDDLEWARE_CLASSES = [ - 'django.middleware.security.SecurityMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - 'django.middleware.clickjacking.XFrameOptionsMiddleware', - 'django.middleware.locale.LocaleMiddleware', -] - -ROOT_URLCONF = 'amadeus.urls' - -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], - 'APP_DIRS': True, - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - }, -] - -WSGI_APPLICATION = 'amadeus.wsgi.application' - - -# Database -# https://docs.djangopr/*oject.com/en/1.9/ref/settings/#databases - -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.postgresql', - 'NAME': 'amadeus', - 'USER': 'amadeus_admin', - 'PASSWORD': 'amadeus', - 'HOST': '127.0.0.1', - 'PORT': '5432', - } -} - -#superuser: admin pass: amadeus2358 - -# Password validation -# https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators - -AUTH_PASSWORD_VALIDATORS = [ - { - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', - }, -] - - -# Internationalization -# https://docs.djangoproject.com/en/1.9/topics/i18n/ - -LANGUAGE_CODE = 'pt-br' - -TIME_ZONE = 'America/Recife' - -USE_I18N = True - -USE_L10N = True - -USE_TZ = True - - -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/1.9/howto/static-files/ - -STATIC_URL = '/static/' - -# Files -MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'uploads') -MEDIA_URL = '/uploads/' - -# Users -LOGIN_REDIRECT_URL = 'app:index' -LOGIN_URL = 'home' -AUTH_USER_MODEL = 'users.User' -AUTHENTICATION_BACKENDS = [ - 'django.contrib.auth.backends.ModelBackend', -] -ROLEPERMISSIONS_MODULE = 'amadeus.roles' - - + +""" +Django settings for amadeus project. + +Generated by 'django-admin startproject' using Django 1.9.7. + +For more information on this file, see +https://docs.djangoproject.com/en/1.9/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/1.9/ref/settings/ +""" + +import os + +# Build paths inside the project like this: os.path.join(BASE_DIR, ...) +BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = '$=8)c!5)iha85a&8q4+kv1pyg0yl7_xe_x^z=2cn_1d7r0hny4' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + + 'widget_tweaks', + 'rolepermissions', + 'rest_framework', + + 'core', + 'app', + 'courses', + 'users', +] + +MIDDLEWARE_CLASSES = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', + 'django.middleware.locale.LocaleMiddleware', +] + +ROOT_URLCONF = 'amadeus.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'amadeus.wsgi.application' + + +# Database +# https://docs.djangopr/*oject.com/en/1.9/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.postgresql', + 'NAME': 'amadeus', + 'USER': 'amadeus_admin', + 'PASSWORD': 'amadeus', + 'HOST': '127.0.0.1', + 'PORT': '5432', + } +} + + +#superuser: admin pass: amadeus2358 + +# Password validation +# https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/1.9/topics/i18n/ + +LANGUAGE_CODE = 'pt-br' + +TIME_ZONE = 'America/Recife' + +USE_I18N = True + +USE_L10N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/1.9/howto/static-files/ + +STATIC_URL = '/static/' + +# Files +MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'uploads') +MEDIA_URL = '/uploads/' + +# Users +LOGIN_REDIRECT_URL = 'app:index' +LOGIN_URL = 'home' +AUTH_USER_MODEL = 'users.User' +AUTHENTICATION_BACKENDS = [ + 'django.contrib.auth.backends.ModelBackend', +] +ROLEPERMISSIONS_MODULE = 'amadeus.roles' + + #https://github.com/squ1b3r/Djaneiro \ No newline at end of file diff --git a/amadeus/urls.py b/amadeus/urls.py index 81a2db1..a0ffebe 100644 --- a/amadeus/urls.py +++ b/amadeus/urls.py @@ -1,30 +1,30 @@ - -"""amadeus URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/1.9/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.conf.urls import url, include - 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) -""" -from django.conf import settings -from django.conf.urls import include, url -from django.conf.urls.static import static -from django.contrib import admin - -urlpatterns = [ - url(r'^app/', include('app.urls', namespace = 'app')), - url(r'^course/', include('courses.urls', namespace = 'course')), - url(r'^users/', include('users.urls', namespace = 'users')), - url(r'^admin/', admin.site.urls), - url(r'^', include('core.urls', namespace = 'core')), -] - -urlpatterns += static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT) + +"""amadeus URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/1.9/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.conf.urls import url, include + 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) +""" +from django.conf import settings +from django.conf.urls import include, url +from django.conf.urls.static import static +from django.contrib import admin + +urlpatterns = [ + url(r'^app/', include('app.urls', namespace = 'app')), + url(r'^course/', include('courses.urls', namespace = 'course')), + url(r'^users/', include('users.urls', namespace = 'users')), + url(r'^admin/', admin.site.urls), + url(r'^', include('core.urls', namespace = 'core')), +] + +urlpatterns += static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT) diff --git a/app/locale/pt_BR/LC_MESSAGES/django.po b/app/locale/pt_BR/LC_MESSAGES/django.po index b9fb593..6be35d6 100644 --- a/app/locale/pt_BR/LC_MESSAGES/django.po +++ b/app/locale/pt_BR/LC_MESSAGES/django.po @@ -1,130 +1,130 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-09-01 22:44-0300\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#: app/templates/app/base.html:10 -msgid "The Project" -msgstr "" - -#: app/templates/app/base.html:11 -msgid "CCTE Group" -msgstr "" - -#: app/templates/app/base.html:14 -msgid "Hi" -msgstr "" - -#: app/templates/app/base.html:16 -msgid "See Profile" -msgstr "" - -#: app/templates/app/base.html:17 -msgid "Settings" -msgstr "" - -#: app/templates/app/base.html:18 -msgid "Logout" -msgstr "" - -#: app/templates/app/index.html:6 -msgid "You have:" -msgstr "" - -#: app/templates/app/index.html:10 -msgid "Pending Tasks" -msgstr "" - -#: app/templates/app/index.html:14 -msgid "Users Online" -msgstr "" - -#: app/templates/app/index.html:20 -msgid "You can:" -msgstr "" - -#: app/templates/app/index.html:24 app/templates/home_app.html:26 -msgid "Create Course" -msgstr "Criar Curso" - -#: app/templates/app/index.html:29 -msgid "Manage Users" -msgstr "" - -#: app/templates/app/index.html:33 -msgid "Manage Courses" -msgstr "" - -#: app/templates/app/index.html:37 -msgid "Gerenciar Categorias" -msgstr "" - -#: app/templates/app/index.html:45 -msgid "Your course(s):" -msgstr "" - -#: app/templates/app/index.html:46 -msgid "No courses subscribed yet" -msgstr "" - -#: app/templates/app/index.html:56 -msgid "Search course:" -msgstr "" - -#: app/templates/app/index.html:62 -msgid "Search" -msgstr "" - -#: app/templates/app/index.html:67 -msgid "Most popular keywords:" -msgstr "" - -#: app/templates/home_app.html:14 -msgid "Home" -msgstr "Início" - -#: app/templates/home_app.html:22 -msgid "Pending tasks" -msgstr "Tarefas Pendentes" - -#: app/templates/home_app.html:23 -msgid "Users Online (1)" -msgstr "Pessoas Online (1)" - -#: app/templates/home_app.html:24 -msgid "Course" -msgstr "Curso" - -#: app/templates/home_app.html:27 -msgid "Manage Course" -msgstr "Gerenciar Curso" - -#: app/templates/home_app.html:35 -msgid "Courses" -msgstr "Cursos" - -#: app/templates/home_app.html:51 -msgid "You didn't create any course yet." -msgstr "Você não criou nenhum curso ainda." - -#: app/templates/home_app.html:59 -msgid "Goals" -msgstr "Metas" - -#~ msgid "Amadeus" -#~ msgstr "Amadeus" +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-09-01 22:44-0300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: app/templates/app/base.html:10 +msgid "The Project" +msgstr "" + +#: app/templates/app/base.html:11 +msgid "CCTE Group" +msgstr "" + +#: app/templates/app/base.html:14 +msgid "Hi" +msgstr "" + +#: app/templates/app/base.html:16 +msgid "See Profile" +msgstr "" + +#: app/templates/app/base.html:17 +msgid "Settings" +msgstr "" + +#: app/templates/app/base.html:18 +msgid "Logout" +msgstr "" + +#: app/templates/app/index.html:6 +msgid "You have:" +msgstr "" + +#: app/templates/app/index.html:10 +msgid "Pending Tasks" +msgstr "" + +#: app/templates/app/index.html:14 +msgid "Users Online" +msgstr "" + +#: app/templates/app/index.html:20 +msgid "You can:" +msgstr "" + +#: app/templates/app/index.html:24 app/templates/home_app.html:26 +msgid "Create Course" +msgstr "Criar Curso" + +#: app/templates/app/index.html:29 +msgid "Manage Users" +msgstr "" + +#: app/templates/app/index.html:33 +msgid "Manage Courses" +msgstr "" + +#: app/templates/app/index.html:37 +msgid "Gerenciar Categorias" +msgstr "" + +#: app/templates/app/index.html:45 +msgid "Your course(s):" +msgstr "" + +#: app/templates/app/index.html:46 +msgid "No courses subscribed yet" +msgstr "" + +#: app/templates/app/index.html:56 +msgid "Search course:" +msgstr "" + +#: app/templates/app/index.html:62 +msgid "Search" +msgstr "" + +#: app/templates/app/index.html:67 +msgid "Most popular keywords:" +msgstr "" + +#: app/templates/home_app.html:14 +msgid "Home" +msgstr "Início" + +#: app/templates/home_app.html:22 +msgid "Pending tasks" +msgstr "Tarefas Pendentes" + +#: app/templates/home_app.html:23 +msgid "Users Online (1)" +msgstr "Pessoas Online (1)" + +#: app/templates/home_app.html:24 +msgid "Course" +msgstr "Curso" + +#: app/templates/home_app.html:27 +msgid "Manage Course" +msgstr "Gerenciar Curso" + +#: app/templates/home_app.html:35 +msgid "Courses" +msgstr "Cursos" + +#: app/templates/home_app.html:51 +msgid "You didn't create any course yet." +msgstr "Você não criou nenhum curso ainda." + +#: app/templates/home_app.html:59 +msgid "Goals" +msgstr "Metas" + +#~ msgid "Amadeus" +#~ msgstr "Amadeus" diff --git a/app/templates/home_app.html b/app/templates/home_app.html index 47d43c6..ed017ed 100644 --- a/app/templates/home_app.html +++ b/app/templates/home_app.html @@ -1,73 +1,73 @@ -{% extends 'base.html' %} - -{% load i18n %} - -{% block breadcrumbs %} -
-
-

{{ user }}

-
-
-
- -
-{% endblock %} - -{% block sidebar %} - -{% endblock %} - -{% block content %} -

- -
{% trans 'Courses' %}
-
-

- - {% if courses|length > 0 %} - {% for course in courses %} - - - {% endfor %} - {% else %} -

{% trans "You didn't create any course yet." %}

- {% endif %} -{% endblock %} - -{% block rightbar %} -
-

- -
{% trans 'Goals' %}
-
-

- - - - - - - - - -
70% de Presenca nas aulas
30/11 - Entrega das notas finais
-
-{% endblock rightbar %} +{% extends 'base.html' %} + +{% load i18n %} + +{% block breadcrumbs %} +
+
+

{{ user }}

+
+
+
+ +
+{% endblock %} + +{% block sidebar %} + +{% endblock %} + +{% block content %} +

+ +
{% trans 'Courses' %}
+
+

+ + {% if courses|length > 0 %} + {% for course in courses %} + + + {% endfor %} + {% else %} +

{% trans "You didn't create any course yet." %}

+ {% endif %} +{% endblock %} + +{% block rightbar %} +
+

+ +
{% trans 'Goals' %}
+
+

+ + + + + + + + + +
70% de Presenca nas aulas
30/11 - Entrega das notas finais
+
+{% endblock rightbar %} diff --git a/courses/locale/pt_BR/LC_MESSAGES/django.po b/courses/locale/pt_BR/LC_MESSAGES/django.po index 43cd726..eddafa2 100644 --- a/courses/locale/pt_BR/LC_MESSAGES/django.po +++ b/courses/locale/pt_BR/LC_MESSAGES/django.po @@ -1,457 +1,457 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-09-01 22:44-0300\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#: courses/forms.py:11 courses/forms.py:25 courses/forms.py:55 -#: courses/models.py:7 courses/models.py:20 courses/models.py:44 -#: courses/templates/category/index.html:38 -msgid "Name" -msgstr "" - -#: courses/forms.py:14 -msgid "Category name" -msgstr "" - -#: courses/forms.py:26 -msgid "Objectives" -msgstr "" - -#: courses/forms.py:27 courses/models.py:23 -msgid "Content" -msgstr "" - -#: courses/forms.py:28 -msgid "Number of studets maximum" -msgstr "" - -#: courses/forms.py:29 -msgid "Course registration start date" -msgstr "" - -#: courses/forms.py:30 -msgid "Course registration end date" -msgstr "" - -#: courses/forms.py:31 -msgid "Course start date" -msgstr "" - -#: courses/forms.py:32 -msgid "Course end date" -msgstr "" - -#: courses/forms.py:33 courses/models.py:30 -msgid "Image" -msgstr "" - -#: courses/forms.py:34 courses/models.py:12 courses/models.py:31 -msgid "Category" -msgstr "" - -#: courses/forms.py:37 -msgid "Course name" -msgstr "" - -#: courses/forms.py:38 -msgid "Course objective" -msgstr "" - -#: courses/forms.py:39 -msgid "Course modules" -msgstr "" - -#: courses/forms.py:40 -msgid "Max number of students that a class can have" -msgstr "" - -#: courses/forms.py:41 -msgid "Date that starts the registration period of the course (dd/mm/yyyy)" -msgstr "" - -#: courses/forms.py:42 -msgid "Date that ends the registration period of the course (dd/mm/yyyy)" -msgstr "" - -#: courses/forms.py:43 -msgid "Date that the course starts (dd/mm/yyyy)" -msgstr "" - -#: courses/forms.py:44 -msgid "Date that the course ends (dd/mm/yyyy)" -msgstr "" - -#: courses/forms.py:45 -msgid "Representative image of the course" -msgstr "" - -#: courses/forms.py:46 -msgid "Category which the course belongs" -msgstr "" - -#: courses/forms.py:56 courses/models.py:46 -msgid "Description" -msgstr "" - -#: courses/forms.py:57 -msgid "Is it visible?" -msgstr "" - -#: courses/forms.py:60 -msgid "Module's name" -msgstr "" - -#: courses/forms.py:61 -msgid "Modules's description" -msgstr "" - -#: courses/forms.py:62 -msgid "Is the module visible?" -msgstr "" - -#: courses/models.py:8 courses/models.py:21 courses/models.py:45 -#: courses/templates/category/index.html:39 -msgid "Slug" -msgstr "" - -#: courses/models.py:9 courses/models.py:25 courses/models.py:48 -msgid "Creation Date" -msgstr "" - -#: courses/models.py:13 courses/templates/category/create.html:16 -#: courses/templates/category/delete.html:15 -#: courses/templates/category/index.html:15 -#: courses/templates/category/update.html:16 -#: courses/templates/category/view.html:15 -msgid "Categories" -msgstr "" - -#: courses/models.py:22 -msgid "Objectivies" -msgstr "" - -#: courses/models.py:24 -msgid "Maximum Students" -msgstr "" - -#: courses/models.py:26 -msgid "Register Date (Begin)" -msgstr "" - -#: courses/models.py:27 -msgid "Register Date (End)" -msgstr "" - -#: courses/models.py:28 -msgid "Begin of Course Date" -msgstr "" - -#: courses/models.py:29 -msgid "End of Course Date" -msgstr "" - -#: courses/models.py:32 -msgid "User" -msgstr "" - -#: courses/models.py:36 courses/models.py:49 -msgid "Course" -msgstr "" - -#: courses/models.py:37 courses/templates/course/create.html:16 -#: courses/templates/course/delete.html:15 -#: courses/templates/course/filtered.html:8 -#: courses/templates/course/index.html:15 -#: courses/templates/course/update.html:16 -#: courses/templates/course/view.html:15 -#: courses/templates/module/create.html:17 -#: courses/templates/module/delete.html:16 -#: courses/templates/module/index.html:16 -#: courses/templates/module/update.html:17 -msgid "Courses" -msgstr "" - -#: courses/models.py:47 courses/templates/module/index.html:107 -msgid "Visible" -msgstr "" - -#: courses/models.py:53 -msgid "Module" -msgstr "" - -#: courses/models.py:54 courses/templates/module/index.html:92 -msgid "Modules" -msgstr "" - -#: courses/templates/category/create.html:8 -#: courses/templates/category/delete.html:7 -#: courses/templates/category/index.html:7 -#: courses/templates/category/update.html:8 -#: courses/templates/category/view.html:7 -#: courses/templates/course/create.html:8 -#: courses/templates/course/delete.html:7 courses/templates/course/index.html:7 -#: courses/templates/course/update.html:8 courses/templates/course/view.html:7 -#: courses/templates/module/create.html:8 -#: courses/templates/module/delete.html:7 courses/templates/module/index.html:7 -#: courses/templates/module/update.html:8 -msgid "Home" -msgstr "" - -#: courses/templates/category/create.html:9 -#: courses/templates/category/delete.html:18 -#: courses/templates/category/index.html:18 -#: courses/templates/category/view.html:18 -msgid "Create Category" -msgstr "" - -#: courses/templates/category/create.html:26 -#: courses/templates/category/update.html:26 -#: courses/templates/course/create.html:26 -#: courses/templates/course/update.html:32 -#: courses/templates/module/create.html:52 -#: courses/templates/module/update.html:52 -msgid "All fields are required" -msgstr "" - -#: courses/templates/category/create.html:51 -#: courses/templates/category/update.html:51 -#: courses/templates/course/create.html:51 -#: courses/templates/course/update.html:57 -#: courses/templates/module/create.html:77 -#: courses/templates/module/update.html:77 -msgid "Save" -msgstr "" - -#: courses/templates/category/delete.html:8 -#: courses/templates/category/index.html:8 -msgid "Manage Categories" -msgstr "" - -#: courses/templates/category/delete.html:26 -msgid "Are you sure you want to delete the category" -msgstr "" - -#: courses/templates/category/delete.html:27 -#: courses/templates/course/delete.html:28 -#: courses/templates/module/delete.html:50 -msgid "Yes" -msgstr "" - -#: courses/templates/category/delete.html:28 -#: courses/templates/course/delete.html:29 -#: courses/templates/module/delete.html:51 -msgid "No" -msgstr "" - -#: courses/templates/category/index.html:40 -msgid "Actions" -msgstr "" - -#: courses/templates/category/index.html:59 -msgid "No categories found" -msgstr "" - -#: courses/templates/category/update.html:9 -#: courses/templates/category/view.html:21 -msgid "Edit Category" -msgstr "" - -#: courses/templates/category/view.html:24 -msgid "Remove Category" -msgstr "" - -#: courses/templates/category/view.html:32 -msgid "Name:" -msgstr "" - -#: courses/templates/category/view.html:33 -msgid "Slug:" -msgstr "" - -#: courses/templates/course/create.html:9 -#: courses/templates/course/delete.html:18 -#: courses/templates/course/filtered.html:11 -#: courses/templates/course/index.html:18 courses/templates/course/view.html:25 -#: courses/templates/module/create.html:20 -#: courses/templates/module/delete.html:19 -#: courses/templates/module/index.html:26 -#: courses/templates/module/update.html:20 -msgid "Create Course" -msgstr "" - -#: courses/templates/course/delete.html:27 -msgid "Are you sure you want to delete the couse" -msgstr "" - -#: courses/templates/course/filtered.html:19 -#: courses/templates/course/index.html:26 -msgid "Categories:" -msgstr "" - -#: courses/templates/course/index.html:8 -msgid "Manage Courses" -msgstr "" - -#: courses/templates/course/index.html:80 -msgid "students tops" -msgstr "" - -#: courses/templates/course/index.html:86 -msgid "Subscribe Period:" -msgstr "" - -#: courses/templates/course/index.html:88 courses/templates/course/view.html:59 -#: courses/templates/module/index.html:83 -msgid "Period:" -msgstr "" - -#: courses/templates/course/index.html:104 -msgid "No courses found" -msgstr "" - -#: courses/templates/course/update.html:9 courses/templates/course/view.html:28 -#: courses/templates/module/create.html:26 -#: courses/templates/module/delete.html:25 -#: courses/templates/module/index.html:29 -#: courses/templates/module/update.html:26 -msgid "Edit Course" -msgstr "" - -#: courses/templates/course/update.html:19 -#: courses/templates/course/view.html:21 -#: courses/templates/module/create.html:29 -#: courses/templates/module/delete.html:9 -#: courses/templates/module/delete.html:28 -#: courses/templates/module/index.html:9 courses/templates/module/index.html:22 -#: courses/templates/module/update.html:29 -msgid "Manage Modules" -msgstr "" - -#: courses/templates/course/update.html:22 -#: courses/templates/course/view.html:31 -#: courses/templates/module/create.html:32 -#: courses/templates/module/delete.html:31 -#: courses/templates/module/index.html:32 -#: courses/templates/module/update.html:32 -msgid "Participants" -msgstr "" - -#: courses/templates/course/view.html:18 -#: courses/templates/module/create.html:23 -#: courses/templates/module/delete.html:22 -#: courses/templates/module/index.html:19 -#: courses/templates/module/update.html:23 -msgid "Course Info" -msgstr "" - -#: courses/templates/course/view.html:34 -#: courses/templates/module/create.html:35 -#: courses/templates/module/delete.html:34 -#: courses/templates/module/index.html:35 -#: courses/templates/module/update.html:35 -msgid "Course avaliations" -msgstr "" - -#: courses/templates/course/view.html:37 -#: courses/templates/module/create.html:38 -#: courses/templates/module/delete.html:37 -#: courses/templates/module/index.html:38 -#: courses/templates/module/update.html:38 -msgid "Duplicate Course" -msgstr "" - -#: courses/templates/course/view.html:40 -#: courses/templates/module/create.html:41 -#: courses/templates/module/delete.html:40 -#: courses/templates/module/index.html:41 -#: courses/templates/module/update.html:41 -msgid "Delete Course" -msgstr "" - -#: courses/templates/course/view.html:56 -msgid "Subscribes:" -msgstr "" - -#: courses/templates/course/view.html:66 -msgid "Objectives:" -msgstr "" - -#: courses/templates/course/view.html:69 -msgid "Work Plan:" -msgstr "" - -#: courses/templates/module/create.html:10 -#: courses/templates/module/index.html:70 -msgid "Create Module" -msgstr "" - -#: courses/templates/module/delete.html:49 -msgid "Are you sure you want to delete the module" -msgstr "" - -#: courses/templates/module/index.html:80 -msgid "students maximum" -msgstr "" - -#: courses/templates/module/index.html:109 -msgid "Invisible" -msgstr "" - -#: courses/templates/module/index.html:125 -msgid "No modules found" -msgstr "" - -#: courses/templates/module/update.html:10 -msgid "Edit Module" -msgstr "" - -#: courses/views.py:48 -msgid "Course created successfully!" -msgstr "" - -#: courses/views.py:70 -msgid "Course edited successfully!" -msgstr "" - -#: courses/views.py:92 -msgid "Course deleted successfully!" -msgstr "" - -#: courses/views.py:142 -msgid "Category created successfully!" -msgstr "" - -#: courses/views.py:164 -msgid "Category edited successfully!" -msgstr "" - -#: courses/views.py:185 -msgid "Category deleted successfully!" -msgstr "" - -#: courses/views.py:237 -msgid "Module created successfully!" -msgstr "" - -#: courses/views.py:268 -msgid "Module edited successfully!" -msgstr "" - -#: courses/views.py:291 -msgid "Module deleted successfully!" -msgstr "" +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-09-01 22:44-0300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: courses/forms.py:11 courses/forms.py:25 courses/forms.py:55 +#: courses/models.py:7 courses/models.py:20 courses/models.py:44 +#: courses/templates/category/index.html:38 +msgid "Name" +msgstr "" + +#: courses/forms.py:14 +msgid "Category name" +msgstr "" + +#: courses/forms.py:26 +msgid "Objectives" +msgstr "" + +#: courses/forms.py:27 courses/models.py:23 +msgid "Content" +msgstr "" + +#: courses/forms.py:28 +msgid "Number of studets maximum" +msgstr "" + +#: courses/forms.py:29 +msgid "Course registration start date" +msgstr "" + +#: courses/forms.py:30 +msgid "Course registration end date" +msgstr "" + +#: courses/forms.py:31 +msgid "Course start date" +msgstr "" + +#: courses/forms.py:32 +msgid "Course end date" +msgstr "" + +#: courses/forms.py:33 courses/models.py:30 +msgid "Image" +msgstr "" + +#: courses/forms.py:34 courses/models.py:12 courses/models.py:31 +msgid "Category" +msgstr "" + +#: courses/forms.py:37 +msgid "Course name" +msgstr "" + +#: courses/forms.py:38 +msgid "Course objective" +msgstr "" + +#: courses/forms.py:39 +msgid "Course modules" +msgstr "" + +#: courses/forms.py:40 +msgid "Max number of students that a class can have" +msgstr "" + +#: courses/forms.py:41 +msgid "Date that starts the registration period of the course (dd/mm/yyyy)" +msgstr "" + +#: courses/forms.py:42 +msgid "Date that ends the registration period of the course (dd/mm/yyyy)" +msgstr "" + +#: courses/forms.py:43 +msgid "Date that the course starts (dd/mm/yyyy)" +msgstr "" + +#: courses/forms.py:44 +msgid "Date that the course ends (dd/mm/yyyy)" +msgstr "" + +#: courses/forms.py:45 +msgid "Representative image of the course" +msgstr "" + +#: courses/forms.py:46 +msgid "Category which the course belongs" +msgstr "" + +#: courses/forms.py:56 courses/models.py:46 +msgid "Description" +msgstr "" + +#: courses/forms.py:57 +msgid "Is it visible?" +msgstr "" + +#: courses/forms.py:60 +msgid "Module's name" +msgstr "" + +#: courses/forms.py:61 +msgid "Modules's description" +msgstr "" + +#: courses/forms.py:62 +msgid "Is the module visible?" +msgstr "" + +#: courses/models.py:8 courses/models.py:21 courses/models.py:45 +#: courses/templates/category/index.html:39 +msgid "Slug" +msgstr "" + +#: courses/models.py:9 courses/models.py:25 courses/models.py:48 +msgid "Creation Date" +msgstr "" + +#: courses/models.py:13 courses/templates/category/create.html:16 +#: courses/templates/category/delete.html:15 +#: courses/templates/category/index.html:15 +#: courses/templates/category/update.html:16 +#: courses/templates/category/view.html:15 +msgid "Categories" +msgstr "" + +#: courses/models.py:22 +msgid "Objectivies" +msgstr "" + +#: courses/models.py:24 +msgid "Maximum Students" +msgstr "" + +#: courses/models.py:26 +msgid "Register Date (Begin)" +msgstr "" + +#: courses/models.py:27 +msgid "Register Date (End)" +msgstr "" + +#: courses/models.py:28 +msgid "Begin of Course Date" +msgstr "" + +#: courses/models.py:29 +msgid "End of Course Date" +msgstr "" + +#: courses/models.py:32 +msgid "User" +msgstr "" + +#: courses/models.py:36 courses/models.py:49 +msgid "Course" +msgstr "" + +#: courses/models.py:37 courses/templates/course/create.html:16 +#: courses/templates/course/delete.html:15 +#: courses/templates/course/filtered.html:8 +#: courses/templates/course/index.html:15 +#: courses/templates/course/update.html:16 +#: courses/templates/course/view.html:15 +#: courses/templates/module/create.html:17 +#: courses/templates/module/delete.html:16 +#: courses/templates/module/index.html:16 +#: courses/templates/module/update.html:17 +msgid "Courses" +msgstr "" + +#: courses/models.py:47 courses/templates/module/index.html:107 +msgid "Visible" +msgstr "" + +#: courses/models.py:53 +msgid "Module" +msgstr "" + +#: courses/models.py:54 courses/templates/module/index.html:92 +msgid "Modules" +msgstr "" + +#: courses/templates/category/create.html:8 +#: courses/templates/category/delete.html:7 +#: courses/templates/category/index.html:7 +#: courses/templates/category/update.html:8 +#: courses/templates/category/view.html:7 +#: courses/templates/course/create.html:8 +#: courses/templates/course/delete.html:7 courses/templates/course/index.html:7 +#: courses/templates/course/update.html:8 courses/templates/course/view.html:7 +#: courses/templates/module/create.html:8 +#: courses/templates/module/delete.html:7 courses/templates/module/index.html:7 +#: courses/templates/module/update.html:8 +msgid "Home" +msgstr "" + +#: courses/templates/category/create.html:9 +#: courses/templates/category/delete.html:18 +#: courses/templates/category/index.html:18 +#: courses/templates/category/view.html:18 +msgid "Create Category" +msgstr "" + +#: courses/templates/category/create.html:26 +#: courses/templates/category/update.html:26 +#: courses/templates/course/create.html:26 +#: courses/templates/course/update.html:32 +#: courses/templates/module/create.html:52 +#: courses/templates/module/update.html:52 +msgid "All fields are required" +msgstr "" + +#: courses/templates/category/create.html:51 +#: courses/templates/category/update.html:51 +#: courses/templates/course/create.html:51 +#: courses/templates/course/update.html:57 +#: courses/templates/module/create.html:77 +#: courses/templates/module/update.html:77 +msgid "Save" +msgstr "" + +#: courses/templates/category/delete.html:8 +#: courses/templates/category/index.html:8 +msgid "Manage Categories" +msgstr "" + +#: courses/templates/category/delete.html:26 +msgid "Are you sure you want to delete the category" +msgstr "" + +#: courses/templates/category/delete.html:27 +#: courses/templates/course/delete.html:28 +#: courses/templates/module/delete.html:50 +msgid "Yes" +msgstr "" + +#: courses/templates/category/delete.html:28 +#: courses/templates/course/delete.html:29 +#: courses/templates/module/delete.html:51 +msgid "No" +msgstr "" + +#: courses/templates/category/index.html:40 +msgid "Actions" +msgstr "" + +#: courses/templates/category/index.html:59 +msgid "No categories found" +msgstr "" + +#: courses/templates/category/update.html:9 +#: courses/templates/category/view.html:21 +msgid "Edit Category" +msgstr "" + +#: courses/templates/category/view.html:24 +msgid "Remove Category" +msgstr "" + +#: courses/templates/category/view.html:32 +msgid "Name:" +msgstr "" + +#: courses/templates/category/view.html:33 +msgid "Slug:" +msgstr "" + +#: courses/templates/course/create.html:9 +#: courses/templates/course/delete.html:18 +#: courses/templates/course/filtered.html:11 +#: courses/templates/course/index.html:18 courses/templates/course/view.html:25 +#: courses/templates/module/create.html:20 +#: courses/templates/module/delete.html:19 +#: courses/templates/module/index.html:26 +#: courses/templates/module/update.html:20 +msgid "Create Course" +msgstr "" + +#: courses/templates/course/delete.html:27 +msgid "Are you sure you want to delete the couse" +msgstr "" + +#: courses/templates/course/filtered.html:19 +#: courses/templates/course/index.html:26 +msgid "Categories:" +msgstr "" + +#: courses/templates/course/index.html:8 +msgid "Manage Courses" +msgstr "" + +#: courses/templates/course/index.html:80 +msgid "students tops" +msgstr "" + +#: courses/templates/course/index.html:86 +msgid "Subscribe Period:" +msgstr "" + +#: courses/templates/course/index.html:88 courses/templates/course/view.html:59 +#: courses/templates/module/index.html:83 +msgid "Period:" +msgstr "" + +#: courses/templates/course/index.html:104 +msgid "No courses found" +msgstr "" + +#: courses/templates/course/update.html:9 courses/templates/course/view.html:28 +#: courses/templates/module/create.html:26 +#: courses/templates/module/delete.html:25 +#: courses/templates/module/index.html:29 +#: courses/templates/module/update.html:26 +msgid "Edit Course" +msgstr "" + +#: courses/templates/course/update.html:19 +#: courses/templates/course/view.html:21 +#: courses/templates/module/create.html:29 +#: courses/templates/module/delete.html:9 +#: courses/templates/module/delete.html:28 +#: courses/templates/module/index.html:9 courses/templates/module/index.html:22 +#: courses/templates/module/update.html:29 +msgid "Manage Modules" +msgstr "" + +#: courses/templates/course/update.html:22 +#: courses/templates/course/view.html:31 +#: courses/templates/module/create.html:32 +#: courses/templates/module/delete.html:31 +#: courses/templates/module/index.html:32 +#: courses/templates/module/update.html:32 +msgid "Participants" +msgstr "" + +#: courses/templates/course/view.html:18 +#: courses/templates/module/create.html:23 +#: courses/templates/module/delete.html:22 +#: courses/templates/module/index.html:19 +#: courses/templates/module/update.html:23 +msgid "Course Info" +msgstr "" + +#: courses/templates/course/view.html:34 +#: courses/templates/module/create.html:35 +#: courses/templates/module/delete.html:34 +#: courses/templates/module/index.html:35 +#: courses/templates/module/update.html:35 +msgid "Course avaliations" +msgstr "" + +#: courses/templates/course/view.html:37 +#: courses/templates/module/create.html:38 +#: courses/templates/module/delete.html:37 +#: courses/templates/module/index.html:38 +#: courses/templates/module/update.html:38 +msgid "Duplicate Course" +msgstr "" + +#: courses/templates/course/view.html:40 +#: courses/templates/module/create.html:41 +#: courses/templates/module/delete.html:40 +#: courses/templates/module/index.html:41 +#: courses/templates/module/update.html:41 +msgid "Delete Course" +msgstr "" + +#: courses/templates/course/view.html:56 +msgid "Subscribes:" +msgstr "" + +#: courses/templates/course/view.html:66 +msgid "Objectives:" +msgstr "" + +#: courses/templates/course/view.html:69 +msgid "Work Plan:" +msgstr "" + +#: courses/templates/module/create.html:10 +#: courses/templates/module/index.html:70 +msgid "Create Module" +msgstr "" + +#: courses/templates/module/delete.html:49 +msgid "Are you sure you want to delete the module" +msgstr "" + +#: courses/templates/module/index.html:80 +msgid "students maximum" +msgstr "" + +#: courses/templates/module/index.html:109 +msgid "Invisible" +msgstr "" + +#: courses/templates/module/index.html:125 +msgid "No modules found" +msgstr "" + +#: courses/templates/module/update.html:10 +msgid "Edit Module" +msgstr "" + +#: courses/views.py:48 +msgid "Course created successfully!" +msgstr "" + +#: courses/views.py:70 +msgid "Course edited successfully!" +msgstr "" + +#: courses/views.py:92 +msgid "Course deleted successfully!" +msgstr "" + +#: courses/views.py:142 +msgid "Category created successfully!" +msgstr "" + +#: courses/views.py:164 +msgid "Category edited successfully!" +msgstr "" + +#: courses/views.py:185 +msgid "Category deleted successfully!" +msgstr "" + +#: courses/views.py:237 +msgid "Module created successfully!" +msgstr "" + +#: courses/views.py:268 +msgid "Module edited successfully!" +msgstr "" + +#: courses/views.py:291 +msgid "Module deleted successfully!" +msgstr "" diff --git a/db.sqlite3 b/db.sqlite3 index fb67489..7ee14f8 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/users/locale/pt_BR/LC_MESSAGES/django.po b/users/locale/pt_BR/LC_MESSAGES/django.po index 0a74173..1eab2a5 100644 --- a/users/locale/pt_BR/LC_MESSAGES/django.po +++ b/users/locale/pt_BR/LC_MESSAGES/django.po @@ -1,229 +1,229 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-09-01 22:44-0300\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#: users/forms.py:10 -msgid "Password" -msgstr "" - -#: users/models.py:10 -msgid "Login" -msgstr "" - -#: users/models.py:13 -msgid "" -"Type a valid username. This fields should only contain letters, numbers and " -"the characteres: @/./+/-/_ ." -msgstr "" - -#: users/models.py:16 -msgid "" -"A short name that will be used to identify you in the platform and to access " -"it" -msgstr "" - -#: users/models.py:17 -msgid "Mail" -msgstr "" - -#: users/models.py:18 -msgid "Name" -msgstr "" - -#: users/models.py:19 -msgid "City" -msgstr "" - -#: users/models.py:20 -msgid "State" -msgstr "" - -#: users/models.py:21 -msgid "Gender" -msgstr "" - -#: users/models.py:21 -msgid "Male" -msgstr "" - -#: users/models.py:21 -msgid "Female" -msgstr "" - -#: users/models.py:22 -msgid "Image" -msgstr "" - -#: users/models.py:23 -msgid "Birth Date" -msgstr "" - -#: users/models.py:24 -msgid "Phone" -msgstr "" - -#: users/models.py:25 users/templates/users/profile.html:42 -msgid "Cpf" -msgstr "" - -#: users/models.py:26 -msgid "Type" -msgstr "" - -#: users/models.py:26 -msgid "Professor" -msgstr "" - -#: users/models.py:26 -msgid "Student" -msgstr "" - -#: users/models.py:27 -msgid "Create Date" -msgstr "" - -#: users/models.py:28 -msgid "Administrador" -msgstr "" - -#: users/models.py:29 -msgid "Active" -msgstr "" - -#: users/models.py:37 -msgid "User" -msgstr "" - -#: users/models.py:38 -msgid "Users" -msgstr "" - -#: users/templates/list_users.html:14 users/templates/users/create.html:8 -#: users/templates/users/edit_profile.html:8 users/templates/users/index.html:7 -#: users/templates/users/profile.html:8 users/templates/users/update.html:8 -#: users/templates/users/view.html:7 -msgid "Home" -msgstr "Início" - -#: users/templates/list_users.html:15 users/templates/users/index.html:8 -msgid "Manage Users" -msgstr "Gerenciar Usuários" - -#: users/templates/list_users.html:23 -msgid "Add user" -msgstr "Adicionar usuário" - -#: users/templates/list_users.html:24 -msgid "Send email" -msgstr "Enviar e-mail" - -#: users/templates/users/create.html:9 -msgid "New User" -msgstr "" - -#: users/templates/users/create.html:16 users/templates/users/index.html:15 -#: users/templates/users/update.html:16 users/templates/users/view.html:15 -msgid "System Users" -msgstr "" - -#: users/templates/users/create.html:19 users/templates/users/index.html:18 -#: users/templates/users/update.html:19 users/templates/users/view.html:18 -msgid "New Account" -msgstr "" - -#: users/templates/users/create.html:22 users/templates/users/index.html:21 -#: users/templates/users/update.html:22 users/templates/users/view.html:27 -msgid "Send Mail" -msgstr "" - -#: users/templates/users/create.html:32 -#: users/templates/users/edit_profile.html:29 -#: users/templates/users/update.html:32 -msgid "All fields are required" -msgstr "" - -#: users/templates/users/create.html:57 -#: users/templates/users/edit_profile.html:64 -#: users/templates/users/update.html:57 -msgid "Save" -msgstr "" - -#: users/templates/users/edit_profile.html:9 -#: users/templates/users/edit_profile.html:19 -#: users/templates/users/profile.html:19 -msgid "Edit Profile" -msgstr "" - -#: users/templates/users/edit_profile.html:16 -#: users/templates/users/profile.html:9 users/templates/users/profile.html:16 -msgid "Profile" -msgstr "" - -#: users/templates/users/index.html:56 users/templates/users/profile.html:32 -#: users/templates/users/view.html:39 -msgid "Administrator" -msgstr "" - -#: users/templates/users/index.html:74 -msgid "No users found" -msgstr "" - -#: users/templates/users/profile.html:36 users/templates/users/view.html:43 -msgid "Mail:" -msgstr "" - -#: users/templates/users/profile.html:39 users/templates/users/view.html:46 -msgid "Phone:" -msgstr "" - -#: users/templates/users/profile.html:45 -msgid "Birth date" -msgstr "" - -#: users/templates/users/update.html:9 -msgid "Edit user" -msgstr "" - -#: users/templates/users/view.html:21 -msgid "View User Account" -msgstr "" - -#: users/templates/users/view.html:24 -msgid "Edit User Account" -msgstr "" - -#: users/templates/users/view.html:49 -msgid "Cpf:" -msgstr "" - -#: users/templates/users/view.html:52 -msgid "Birth date:" -msgstr "" - -#: users/views.py:47 -msgid "User created successfully!" -msgstr "" - -#: users/views.py:76 -msgid "User edited successfully!" -msgstr "" - -#: users/views.py:125 -msgid "Profile edited successfully!" -msgstr "" +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-09-01 22:44-0300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: users/forms.py:10 +msgid "Password" +msgstr "" + +#: users/models.py:10 +msgid "Login" +msgstr "" + +#: users/models.py:13 +msgid "" +"Type a valid username. This fields should only contain letters, numbers and " +"the characteres: @/./+/-/_ ." +msgstr "" + +#: users/models.py:16 +msgid "" +"A short name that will be used to identify you in the platform and to access " +"it" +msgstr "" + +#: users/models.py:17 +msgid "Mail" +msgstr "" + +#: users/models.py:18 +msgid "Name" +msgstr "" + +#: users/models.py:19 +msgid "City" +msgstr "" + +#: users/models.py:20 +msgid "State" +msgstr "" + +#: users/models.py:21 +msgid "Gender" +msgstr "" + +#: users/models.py:21 +msgid "Male" +msgstr "" + +#: users/models.py:21 +msgid "Female" +msgstr "" + +#: users/models.py:22 +msgid "Image" +msgstr "" + +#: users/models.py:23 +msgid "Birth Date" +msgstr "" + +#: users/models.py:24 +msgid "Phone" +msgstr "" + +#: users/models.py:25 users/templates/users/profile.html:42 +msgid "Cpf" +msgstr "" + +#: users/models.py:26 +msgid "Type" +msgstr "" + +#: users/models.py:26 +msgid "Professor" +msgstr "" + +#: users/models.py:26 +msgid "Student" +msgstr "" + +#: users/models.py:27 +msgid "Create Date" +msgstr "" + +#: users/models.py:28 +msgid "Administrador" +msgstr "" + +#: users/models.py:29 +msgid "Active" +msgstr "" + +#: users/models.py:37 +msgid "User" +msgstr "" + +#: users/models.py:38 +msgid "Users" +msgstr "" + +#: users/templates/list_users.html:14 users/templates/users/create.html:8 +#: users/templates/users/edit_profile.html:8 users/templates/users/index.html:7 +#: users/templates/users/profile.html:8 users/templates/users/update.html:8 +#: users/templates/users/view.html:7 +msgid "Home" +msgstr "Início" + +#: users/templates/list_users.html:15 users/templates/users/index.html:8 +msgid "Manage Users" +msgstr "Gerenciar Usuários" + +#: users/templates/list_users.html:23 +msgid "Add user" +msgstr "Adicionar usuário" + +#: users/templates/list_users.html:24 +msgid "Send email" +msgstr "Enviar e-mail" + +#: users/templates/users/create.html:9 +msgid "New User" +msgstr "" + +#: users/templates/users/create.html:16 users/templates/users/index.html:15 +#: users/templates/users/update.html:16 users/templates/users/view.html:15 +msgid "System Users" +msgstr "" + +#: users/templates/users/create.html:19 users/templates/users/index.html:18 +#: users/templates/users/update.html:19 users/templates/users/view.html:18 +msgid "New Account" +msgstr "" + +#: users/templates/users/create.html:22 users/templates/users/index.html:21 +#: users/templates/users/update.html:22 users/templates/users/view.html:27 +msgid "Send Mail" +msgstr "" + +#: users/templates/users/create.html:32 +#: users/templates/users/edit_profile.html:29 +#: users/templates/users/update.html:32 +msgid "All fields are required" +msgstr "" + +#: users/templates/users/create.html:57 +#: users/templates/users/edit_profile.html:64 +#: users/templates/users/update.html:57 +msgid "Save" +msgstr "" + +#: users/templates/users/edit_profile.html:9 +#: users/templates/users/edit_profile.html:19 +#: users/templates/users/profile.html:19 +msgid "Edit Profile" +msgstr "" + +#: users/templates/users/edit_profile.html:16 +#: users/templates/users/profile.html:9 users/templates/users/profile.html:16 +msgid "Profile" +msgstr "" + +#: users/templates/users/index.html:56 users/templates/users/profile.html:32 +#: users/templates/users/view.html:39 +msgid "Administrator" +msgstr "" + +#: users/templates/users/index.html:74 +msgid "No users found" +msgstr "" + +#: users/templates/users/profile.html:36 users/templates/users/view.html:43 +msgid "Mail:" +msgstr "" + +#: users/templates/users/profile.html:39 users/templates/users/view.html:46 +msgid "Phone:" +msgstr "" + +#: users/templates/users/profile.html:45 +msgid "Birth date" +msgstr "" + +#: users/templates/users/update.html:9 +msgid "Edit user" +msgstr "" + +#: users/templates/users/view.html:21 +msgid "View User Account" +msgstr "" + +#: users/templates/users/view.html:24 +msgid "Edit User Account" +msgstr "" + +#: users/templates/users/view.html:49 +msgid "Cpf:" +msgstr "" + +#: users/templates/users/view.html:52 +msgid "Birth date:" +msgstr "" + +#: users/views.py:47 +msgid "User created successfully!" +msgstr "" + +#: users/views.py:76 +msgid "User edited successfully!" +msgstr "" + +#: users/views.py:125 +msgid "Profile edited successfully!" +msgstr "" diff --git a/users/migrations/0007_auto_20160825_1801.py b/users/migrations/0007_auto_20160825_1801.py index 538adcb..228319d 100644 --- a/users/migrations/0007_auto_20160825_1801.py +++ b/users/migrations/0007_auto_20160825_1801.py @@ -1,22 +1,22 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2016-08-25 21:01 -from __future__ import unicode_literals - -import django.core.validators -from django.db import migrations, models -import re - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0006_auto_20160815_0922'), - ] - - operations = [ - migrations.AlterField( - model_name='user', - name='username', - field=models.CharField(help_text='A short name that will be used to identify you in the platform and to access it', max_length=35, unique=True, validators=[django.core.validators.RegexValidator(re.compile(b'^[\\w.@+-]+$'), 'Type a valid username. This fields should only contain letters, numbers and the characteres: @/./+/-/_ .', b'invalid')], verbose_name='Login'), - ), - ] +# -*- coding: utf-8 -*- +# Generated by Django 1.10 on 2016-08-25 21:01 +from __future__ import unicode_literals + +import django.core.validators +from django.db import migrations, models +import re + + +class Migration(migrations.Migration): + + dependencies = [ + ('users', '0006_auto_20160815_0922'), + ] + + operations = [ + migrations.AlterField( + model_name='user', + name='username', + field=models.CharField(help_text='A short name that will be used to identify you in the platform and to access it', max_length=35, unique=True, validators=[django.core.validators.RegexValidator(re.compile(b'^[\\w.@+-]+$'), 'Type a valid username. This fields should only contain letters, numbers and the characteres: @/./+/-/_ .', b'invalid')], verbose_name='Login'), + ), + ] diff --git a/users/migrations/0008_auto_20160902_2123.py b/users/migrations/0008_auto_20160902_2123.py new file mode 100644 index 0000000..4695c0e --- /dev/null +++ b/users/migrations/0008_auto_20160902_2123.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10 on 2016-09-03 00:23 +from __future__ import unicode_literals + +import django.core.validators +from django.db import migrations, models +import re + + +class Migration(migrations.Migration): + + dependencies = [ + ('users', '0007_auto_20160825_1801'), + ] + + operations = [ + migrations.AlterField( + model_name='user', + name='type_profile', + field=models.IntegerField(blank=True, choices=[(1, 'Professor'), (2, 'Student')], default=2, null=True, verbose_name='Type'), + ), + migrations.AlterField( + model_name='user', + name='username', + field=models.CharField(help_text='A short name that will be used to identify you in the platform and to access it', max_length=35, unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[\\w.@+-]+$', 32), 'Type a valid username. This fields should only contain letters, numbers and the characteres: @/./+/-/_ .', 'invalid')], verbose_name='Login'), + ), + ] diff --git a/users/models.py b/users/models.py index 117b7f9..b3b597a 100644 --- a/users/models.py +++ b/users/models.py @@ -23,7 +23,7 @@ class User(AbstractBaseUser, PermissionsMixin): birth_date = models.DateField(_('Birth Date'), null = True, blank = True) phone = models.CharField(_('Phone'), max_length = 30, blank = True) cpf = models.CharField(_('Cpf'), max_length = 15, blank = True) - type_profile = models.IntegerField(_('Type'), null = True, blank = True, choices = ((1, _('Professor')), (2, _('Student')))) + type_profile = models.IntegerField(_('Type'), null = True, blank = True, choices = ((1, _('Professor')), (2, _('Student'))), default=2) date_created = models.DateTimeField(_('Create Date'), auto_now_add = True) is_staff = models.BooleanField(_('Administrador'), default = False) is_active = models.BooleanField(_('Active'), default = True) diff --git a/users/templates/list_users.html b/users/templates/list_users.html index af19787..48c68b9 100644 --- a/users/templates/list_users.html +++ b/users/templates/list_users.html @@ -1,30 +1,30 @@ -{% extends 'base.html' %} - -{% load i18n %} - -{% block breadcrumbs %} -
-
-

{% trans 'Manage Users' %}

-
-
-
-
- -
-
-{% endblock %} - -{% block sidebar %} - -{% endblock %} - -{% block content %} - -{% endblock %} +{% extends 'base.html' %} + +{% load i18n %} + +{% block breadcrumbs %} +
+
+

{% trans 'Manage Users' %}

+
+
+
+
+ +
+
+{% endblock %} + +{% block sidebar %} + +{% endblock %} + +{% block content %} + +{% endblock %} -- libgit2 0.21.2