Compare commits
No commits in common. "master" and "23-ticket-simples" have entirely different histories.
master
...
23-ticket-
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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" ×
|
span aria-hidden="true" ×
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user