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. # Never trust parameters from the scary internet, only allow the white list through.
def ticket_params def ticket_params
params.require(:ticket).permit(:title, :description, :state) params.require(:ticket).permit(:ticket_id, :title, :description, :state)
end end
def looks_ticket def looks_ticket

View File

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

View File

@ -8,7 +8,7 @@ table.table.table-condensed
tr tr
td = c.creator_type td = c.creator_type
td = c.title td = c.title
td = descriptionize c.comment td = c.comment
td 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 = 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; span aria-hidden="true" &times;

View File

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

View File

@ -7,6 +7,10 @@
li = message li = message
.form-horizontal .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 .form-group
.field .field
= f.label :creator_type, class: "sr-only" = f.label :creator_type, class: "sr-only"