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
| = simple_form_for @mailing, :url => import_mailings_path, multipart: true do |f| | |
| = f.error_notification | |
| .form-inputs | |
| = f.input :file, as: :file | |
| .form-actions | |
| = f.button :submit, "Enviar Arquivo", class: 'btn btn-primary' |
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
| = simple_form_for @answer_option do |f| | |
| = f.error_notification | |
| .form-inputs | |
| = f.input :content | |
| = f.association :question | |
| .form-actions | |
| = f.button :submit, class: 'btn btn-success' |
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
| = simple_form_for @page do |f| | |
| = f.error_notification | |
| .form-inputs | |
| = f.input :title | |
| = f.association :section | |
| .panel.panel-default | |
| .panel-heading | |
| .panel-title Definir direcionamento da página |
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
| .form-group.form-inline.fields#teste | |
| .form-group | |
| = f.input :nexts, label: false, collection: [ "Enviar para","Pergunta","Objetivo","Post","Tarefa","Tag" ], include_blank: false, prompt: "Selecione a Opção", :input_html => { :id => "first_select", :name => 'page[nexts][]' } | |
| .form-group | |
| = f.input :nexts, label: false, collection: Question.order(:title), include_blank: false, prompt: "Selecione a pergunta", :input_html => { :id => "question_select", :name => 'page[nexts][]' } | |
| .form-group | |
| = f.input :nexts, label: false, collection: Question.order(:title), as: :grouped_select, group_method: :answer_options, label_method: :content, value_method: :id, include_blank: false, prompt: "Selecione a Reposta", :input_html => { :id => "answer_option_select", :name => 'page[nexts][]' } | |
| .form-group | |
| = f.input :nexts, label: false, collection: Page.order(:title), include_blank: false, prompt: "Selecione a página", :input_html => { :id => "next_select", :name => 'page[nexts][]' } |
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
| ########################################################## | |
| # Gerencia os campos selects do direcionamento das pages # | |
| ########################################################## | |
| # Remove selects de direcionamento | |
| $(document).on 'click', 'form .remove_fields', (event) -> | |
| $(this).prev('input[type="hidden"]').val('1') | |
| $(this).closest('.fields').hide() | |
| event.preventDefault() |
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
| .main-home | |
| - @goals.each do |goal| | |
| h1.text-center = goal.title | |
| = simple_form_for goal do |f| | |
| = f.error_notification | |
| .form-group.text-center | |
| = f.simple_fields_for :goal_options do |g| | |
| = g.simple_fields_for :user_goal_options do |u| |
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
| = simple_form_for(@question) do |f| | |
| = f.error_notification | |
| .form-inputs | |
| = f.association :page | |
| = f.input :kind, collection: [ "Booleana", "Select", "Button", "Aberta" ], prompt: "Selecione o tipo de pergunta" | |
| = f.input :title | |
| = f.input :description_detailed, :as => :ckeditor, :input_html => { :ckeditor => {:toolbar => 'MyToolbar'} } | |
| hr |
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
| source 'https://rubygems.org' | |
| # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
| gem 'rails', '5.0.1' | |
| gem 'bootstrap-sass', '~> 3.3.7' | |
| gem 'font-awesome-rails', '~> 4.7', '>= 4.7.0.1' | |
| gem 'jquery-rails', '~> 4.2', '>= 4.2.2' | |
| # Use SCSS for stylesheets |
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
| module.exports = { | |
| env: { | |
| browser: true, | |
| es6: true, | |
| jest: true, | |
| }, | |
| extends: [ | |
| 'react-app', | |
| 'airbnb', | |
| 'plugin:@typescript-eslint/recommended', |
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
| require 'axlsx' | |
| class SpreadsheetJob < ApplicationJob | |
| queue_as :reports | |
| def perform(*args) | |
| @timestamp = args[0]['timestamp'] | |
| create_report | |
| create_spreadsheet |
OlderNewer