import declare from 'dojo/_base/declare';
import _ListBase from 'argos/_ListBase';
import MODEL_TYPES from 'argos/Models/Types';
import getResource from 'argos/I18n'; // eslint-disable-line
import MODEL_NAMES from '../../Models/Names';

const __class = declare('crm.Views.Account.ListOffline', [_ListBase], {
  // Localization
  titleText: 'Offline Notes',

  // Templates
  itemTemplate: new Simplate([`
    <p>{%: $.$key %}</p>
  `]),

  // View Properties
  detailView: 'history_detail_offline',
  id: 'history_list_offline',
  security: 'Entities/Account/View',
  insertView: 'history_edit_offline',
  entityName: 'History',
  pageSize: 100,
  resourceKind: 'history',
  modelName: MODEL_NAMES.HISTORY,
  enableOfflineSupport: true,
  enableOnlineSupport: true, // TODO: don't show this when online, set to false when done testing.
  enableSearch: false,
  expose: true,

  getModel: function getModel() {
    const model = App.ModelManager.getModel(MODEL_NAMES.HISTORY, MODEL_TYPES.OFFLINE);
    return model;
  },
});

export default __class;

@@ -409,18 +409,48 @@
  %3Cp%3E
-%7B%25: $.$key
+time: %7B%25: Locale.formatDate($.StartDate)
  %25%7D%3C
@@ -897,16 +897,41 @@
 e: true,
+%0A  labelProperty: 'Text',
 %0A%0A  getM

Test formatters.