Added intro message for customer if no ticket exists.
This commit is contained in:
parent
82a9139e74
commit
7cc29d6b94
3 changed files with 25 additions and 0 deletions
|
@ -86,6 +86,11 @@ class Index extends App.Controller
|
||||||
|
|
||||||
render: ->
|
render: ->
|
||||||
|
|
||||||
|
# if customer and no ticket exists, show the following message only
|
||||||
|
if !@ticket_list_show[0] && @isRole('Customer')
|
||||||
|
@html App.view('customer_not_ticket_exists')()
|
||||||
|
return
|
||||||
|
|
||||||
@selected = @bulkGetSelected()
|
@selected = @bulkGetSelected()
|
||||||
|
|
||||||
# set page title
|
# set page title
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
<div class="hero-unit">
|
||||||
|
<h1><%- @T('Welcome!') %><small></small></h1>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="span12">
|
||||||
|
<p><%- @T('You have not created a Ticket yet.') %></p>
|
||||||
|
<p><%- @T('The way to communicate with us is this thing called "Ticket".') %></p>
|
||||||
|
<p><%- @T('Please click the button below to create your first one.') %></p>
|
||||||
|
|
||||||
|
<p><a class="btn btn-primary" href="#customer_ticket_new"><%- @T('Create your first Ticket') %></a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -1761,5 +1761,11 @@ Translation.create( :locale => 'de', :source => "Username or email address inval
|
||||||
Translation.create( :locale => 'de', :source => "If you don\'t receive instructions within a minute or two, check your email\'s spam and junk filters, or try resending your request.", :target => "Wir hanben die Andorderung per E-Mail an Sie versendet, bitte Überprüfen Sie Ihr Email-Postfach (auch die Junk E-Mails) ggf. starten Sie eine Andorderung erneut.", :updated_by_id => 1, :created_by_id => 1 )
|
Translation.create( :locale => 'de', :source => "If you don\'t receive instructions within a minute or two, check your email\'s spam and junk filters, or try resending your request.", :target => "Wir hanben die Andorderung per E-Mail an Sie versendet, bitte Überprüfen Sie Ihr Email-Postfach (auch die Junk E-Mails) ggf. starten Sie eine Andorderung erneut.", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
Translation.create( :locale => 'de', :source => "again", :target => "erneut", :updated_by_id => 1, :created_by_id => 1 )
|
Translation.create( :locale => 'de', :source => "again", :target => "erneut", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
Translation.create( :locale => 'de', :source => "none", :target => "keine", :updated_by_id => 1, :created_by_id => 1 )
|
Translation.create( :locale => 'de', :source => "none", :target => "keine", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
|
Translation.create( :locale => 'de', :source => "Welcome!", :target => "Willkommen!", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
|
Translation.create( :locale => 'de', :source => "Please click the button below to create your first one.", :target => "Klicken Sie die Schaltfläche unten um das erste zu erstellen.", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
|
Translation.create( :locale => 'de', :source => "Create your first Ticket", :target => "Erstellen Sie Ihr erstes Ticket", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
|
Translation.create( :locale => 'de', :source => "You have not created a Ticket yet.", :target => "Sie haben noch kein Ticket erstellt.", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
|
Translation.create( :locale => 'de', :source => "The way to communicate with us is this thing called \"Ticket\".", :target => "Der Weg um mit uns zu kommunizieren ist das sogenannte \"Ticket\".", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
|
|
||||||
|
|
||||||
#Translation.create( :locale => 'de', :source => "", :target => "", :updated_by_id => 1, :created_by_id => 1 )
|
#Translation.create( :locale => 'de', :source => "", :target => "", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
|
|
Loading…
Reference in a new issue