This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useEffect, useState } from 'react'; | |
| import Movie from './components/Movie'; | |
| const FEATURED_API = 'https://api.themoviedb.org/3/discover/movie?sort_by=popularity.desc&api_key=76f5949e22b36c32ba5161bd79bfd0d8&language=pt-BR'; | |
| const SEARCH_API = 'https://api.themoviedb.org/3/search/movie?&api_key=76f5949e22b36c32ba5161bd79bfd0d8&language=pt-BR&query='; | |
| function App() { | |
| const [movies, setMovies] = useState([]); | |
| const [searchTerm, setSearchTerm] = useState(""); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { scope } from './scope'; | |
| import { uniqueId } from './helpers/ui'; | |
| import { BaseField } from './base'; | |
| import { ActionModal } from './modal'; | |
| export class TabelaDinamica { | |
| public baseHead; | |
| public baseBody; | |
| public callbackRemove; | |
| private tabelaId; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datetime import datetime | |
| from decimal import Decimal | |
| from django.db import transaction | |
| from django.utils.dateparse import parse_datetime | |
| from django.utils.timezone import localtime, localdate | |
| from financeiro.models import HistoricoCobranca, ParcelamentoOperadora, Cartao | |
| from financeiro.serializers import CobrancaPagamentoSerializer | |
| from financeiro.models import HistoricoCobranca |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def has_ordernacao_plano(self, order_documentos): | |
| planos_do_aluno = PlanoPagamento.objects.filter(aluno=self.aluno) | |
| ordenacoes_encontrada, numeros_de_ordenacao, ordenacao_filtrada = list(), list(), list() | |
| for num in order_documentos: | |
| numeros_de_ordenacao.append(order_documentos[num['label']- 1]['label']) | |
| for numero_ordenacao in planos_do_aluno: | |
| ordenacoes_encontrada.append(numero_ordenacao.ordenacao_documentos) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| $(function(){ | |
| <? if($_REQUEST["M2"]){?> | |
| $("#divMsg").parent().removeClass().addClass("notification").addClass('success').show(); | |
| <? }else{ ?> | |
| $("#divMsg").parent().removeClass().hide(); | |
| <? } ?> | |
| $('#tabelaPlanosPagamentoSerie tbody tr:even').addClass("alt-row"); | |
| $('#tabelaDocumentosEntregues tbody tr:even').addClass("alt-row"); | |
| $('#tabelaPeriodosLetivos tbody tr:even').addClass("alt-row"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @verificar_funcionario() | |
| @login_required | |
| def enviar(request): | |
| categoria = Categoria.objects.all() | |
| unidade = request.user.funcionario.unidade | |
| funcionario = request.user.funcionario | |
| if request.method == 'POST': | |
| form = TicketForm(request.POST, request.FILES or None) | |
| email = request.POST.get('email') | |
| categoria_id = request.POST.get('categoria') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% extends 'base.html' %} | |
| {% load static %} | |
| {% load bootstrap %} | |
| {% block titulo %} Restauração de Senha {% endblock %} | |
| {% block conteudo %} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.db import models | |
| from datetime import datetime | |
| from django.utils import timezone | |
| from django.core.validators import MaxValueValidator, MinValueValidator | |
| from django.contrib.auth.models import User | |
| from django.db.models.signals import post_save | |
| from django.dispatch import receiver | |
| from django.conf import settings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| from django.forms import ModelForm, RadioSelect | |
| from .widgets import TesteInput | |
| from .models import Ticket, Categoria | |
| from perfil.models import Funcionario, Unidade | |
| from django import forms | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.db import models | |
| from datetime import datetime | |
| from django.utils import timezone | |
| from django.core.validators import MaxValueValidator, MinValueValidator | |
| from django.conf import settings | |
| # Create your models here. | |
| BOOL_CHOICES = ((True, 'Sim'), (False, 'Não')) | |
| CATEGORIA = ( |
NewerOlder