Compare commits

..

No commits in common. "master" and "23-ticket-simples" have entirely different histories.

5 changed files with 8 additions and 4 deletions

View File

@ -107,7 +107,7 @@ class TicketsController < ApplicationController
# Never trust parameters from the scary internet, only allow the white list through.
def ticket_params
params.require(:ticket).permit(:title, :description, :state)
params.require(:ticket).permit(:ticket_id, :title, :description, :state)
end
def looks_ticket

View File

@ -10,7 +10,7 @@ class Client < ActiveRecord::Base
delegate :name, to: :contact, allow_nil: true, prefix: true
def last_contact
contacts.where('view_at IS NOT NULL').pluck(:view_at).max || "never"
contacts.pluck(:view_at).max || "never"
end
def bills_retard

View File

@ -8,7 +8,7 @@ table.table.table-condensed
tr
td = c.creator_type
td = c.title
td = descriptionize c.comment
td = c.comment
td
= link_to "/comments/#{c.id}.json", remote: true, data: {:confirm => 'Are you sure?'}, method: :delete, class: "close remove-comment", type: "button", "aria-label" => "Close" do
span aria-hidden="true" &times;

View File

@ -7,4 +7,4 @@ table.table.table-condensed
tr
td = c.creator_type
td = c.title
td = descriptionize c.comment
td = c.comment

View File

@ -7,6 +7,10 @@
li = message
.form-horizontal
.form-group
.field
= f.label :ticket_id, class: "sr-only"
= f.text_field :ticket_id, class: "form-control", placeholder: "Master Ticket id"
.form-group
.field
= f.label :creator_type, class: "sr-only"