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
| class Vehicle::QuoteExhibitionRule < ActiveRecord::Base | |
| def activate! | |
| return true if self.active | |
| active_rule = self.class.active | |
| active_rule.update(active: false) if active_rule | |
| update_attribute :active, true | |
| end |
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
| function getFilters (vehicles) { | |
| return { | |
| gearTypes : _.uniq(_.pluck(vehicles, 'gear_type')), | |
| doors : _.uniq(_.pluck(vehicles, 'doors')), | |
| motor : _.uniq(_.pluck(vehicles, 'motor')) | |
| } | |
| } |
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
| function getFilters (vehicles) { | |
| return { | |
| gearTypes : _.uniq(_.pluck(vehicles, 'gear_type')), | |
| doors : _.uniq(_.pluck(vehicles, 'doors')), | |
| motor : _.uniq(_.pluck(vehicles, 'motor')) | |
| } | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <title>Select2 tests</title> | |
| <link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/css/select2.min.css" rel="stylesheet" /> | |
| </head> | |
| <body> | |
| <select id="countries"> |
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
| term = params.term && params.term.toLowerCase() |
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
| @$('table').dataTable | |
| bSort : true | |
| aoColumns : [ | |
| null, # Coluna sem alterações no comportamento | |
| bSortable: false, # Coluna que não será ordenada | |
| ] |
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
| { | |
| "manifest_version": 2, | |
| "name": "Person List", | |
| "description": "Person app list", | |
| "version": "1.0", | |
| "icons": { | |
| "128": "person-logo.png" | |
| }, | |
| "app": { | |
| "launch": { |
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
| package br.org.sesc.siplan.controller; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import javax.validation.Valid; | |
| import org.joda.time.LocalDateTime; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.beans.factory.annotation.Qualifier; |
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
| .base-painel { | |
| .painel-preferences-list { | |
| width: column(3); | |
| } | |
| } | |
| .base-painel { | |
| .painel-preferences { | |
| width: column(4); | |
| @include media-query(site-normal) { | |
| width: column(2); |
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
| <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> | |
| <% | |
| String showFeedback = request.getParameter("feedback"); | |
| showFeedback = showFeedback == null ? "" : showFeedback; | |
| %> | |
| <p class="my-account-title">Minhas preferências</p> | |
| <div class="base-painel"> | |
| <div class="painel-column"> | |
| <p class="description"> | |
| Através das suas preferências |