app/components/receipts_grid.rb
# Override for default bottom bar:
#
Override for default bottom bar.
Override for default bottom bar .
def default_bbar
    start_items = [
      :report_pdf.action,
      :report_pdf_copy.action,
      {
        :menu => [:export_txt.action, :export_csv.action],
        :text => I18n.t(:data_export),
        :icon => "/images/icons/folder_table.png"
      },
      "-",
      :show_details.action,
      :manage_patient.action,
      :search.action,
      "-"
    ]
    possible_items = []
    if ( Netzke::Core.current_user && Netzke::Core.current_user.can_do(:receipts, :free_add) )
      possible_items << :add.action
    end
    if ( Netzke::Core.current_user && Netzke::Core.current_user.can_do(:receipts, :del) )
      possible_items << :del.action
    end
    end_items = [
      :edit.action, :apply.action,
      "-",
      {
        :menu => [:add_in_form.action, :edit_in_form.action],
        :text => I18n.t(:edit_in_form),
        :icon => "/images/icons/application_form.png"
      },
      "-",
      :row_counter.action
    ]
    start_items + possible_items + end_items
  end
def default_bbar start_items = [ :report_pdf . action , :report_pdf_copy . action , { :menu => [ :export_txt . action , :export_csv . action ] , :text => I18n . t ( :data_export ) , :icon => "/images/icons/folder_table.png" } , "-" , :show_details . action , :manage_patient . action , :search . action , "-" ] possible_items = [ ] if ( Netzke :: Core . current_user && Netzke :: Core . current_user . can_do ( :receipts , :free_add ) ) possible_items << :add . action end if ( Netzke :: Core . current_user && Netzke :: Core . current_user . can_do ( :receipts , :del ) ) possible_items << :del . action end end_items = [ :edit . action , :apply . action , "-" , { :menu => [ :add_in_form . action , :edit_in_form . action ] , :text => I18n . t ( :edit_in_form ) , :icon => "/images/icons/application_form.png" } , "-" , :row_counter . action ] start_items + possible_items + end_items end
Override for default bottom bar:
Override for default bottom bar :