Quantcast
Channel: Zammad - Community - Latest posts
Viewing all articles
Browse latest Browse all 6760

How to add task in taskbar

$
0
0
class App.Asset extends App.Model
  @configure 'Asset','form_id', 'name', 'serial_number', 'organization', 'user', 'invoices_id', 'attachments_id', 'asset_model', 'seller_model', 'purchase_date', 'purchase_cost', 'description'
  @extend Spine.Model.Ajax
  @url: @apiPath + '/assets'
  @configure_attributes = [
    { name: 'name', display: __('Nazwa'), tag: 'input', null: false, },
    { name: 'serial_number', display: __('Numer seryjny'), tag: 'input',null: false },
    { name: 'organization', display: __('Organization'), tag: 'autocompletion_ajax_customer_organization', multiple: false, null: false, relation: 'Organization', },
    { name: 'user_ids', display: __('User'), tag: 'autocompletion_ajax', relation: 'User', null: true, },
    { name: 'invoice_id', display: __('Faktura'), tag: 'file_upload',form_id: @form_id, null: true, },
    { name: 'attachments_id', display: __('Załączniki'), tag: 'file_upload', form_id: @form_id, null: true,  },
    { name: 'asset_model_id', display: __('Aktywo'), tag: 'autocompletion_ajax', relation: 'AssetModel', null: true, },
    { name: 'seller_model_id', display: __('Sprzedawca'), tag: 'autocompletion_ajax', relation: 'SellerModel', null: true,},
    { name: 'purchase_date', display: __('Data kupna'), tag: 'date', class: 'input', null: true },
    { name: 'purchase_cost', display: __('Koszt kupna'), tag: 'decimal', null: true},
    { name: 'description', display: __('Opis'), tag: 'textarea',upload:true, class: 'input', null: true},
  ]
  @configure_overview = [
    'name', 'serial_number', 'organization', 'user_id', 'invoice_id', 'attachments_id', 'asset_model_id', 'seller_model_id', 'purchase_date', 'purchase_cost', 'description'
  ]
  @configure_preview = [
    'name', 'serial_number', 'organization', 'user_id', 'invoice_id', 'attachments_id', 'asset_model_id', 'seller_model_id', 'purchase_date', 'purchase_cost', 'description'
  ]
  icon: ->
    'overviews'

  displayName: ->
    if !_.isEmpty(@name)
      name = @name
  1. I don’t know which query you mean
  2. Yes, it is displayed when you first enter the controller, but when you later change it to, for example, dashboard, it no longer displays, only the link changes.

Viewing all articles
Browse latest Browse all 6760

Trending Articles