update index

This commit is contained in:
东皇 2017-12-13 16:12:20 +08:00
parent 86767e11b4
commit d0077ff248
3 changed files with 65 additions and 30 deletions

View File

@ -0,0 +1,7 @@
import Ember from 'ember';
export function repeatIt([val, t]) {
return Ember.String.htmlSafe(Array(t).fill(val).join(''));
}
export default Ember.Helper.helper(repeatIt);

View File

@ -2,41 +2,52 @@
{{#main-content}}
<div class="col-sm-12">
<h3>User tips: </h3>
<p class="bold">&nbsp;&nbsp;&nbsp;&nbsp;Customer Status:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Active Auto assigned, Active customer, with PO in current year</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Occasional Auto assigned, Not very active, no PO in current year, but occasional PO within past 2 years</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sleeping Auto assigned, Sleeping customer and no PO within past 2 years, still use PUSH-PULL</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NA Manually assigned, Not PUSH-PULL customer anymore</p>
<p class="bold">&nbsp;&nbsp;&nbsp;&nbsp;LMCN Week Goals: </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;每次访客时100%向需要的客户推广:新产品、光纤、组件和技术研讨会。</p>
<p class="bold">{{repeat-it '&nbsp;' 4}}Customer Status:</p>
<p>{{repeat-it '&nbsp;' 8}}Active Auto assigned, Active customer, with PO in current year</p>
<p>{{repeat-it '&nbsp;' 8}}Occasional Auto assigned, Not very active, no PO in current year, but occasional PO within past 2 years</p>
<p>{{repeat-it '&nbsp;' 8}}Sleeping Auto assigned, Sleeping customer and no PO within past 2 years, still use PUSH-PULL</p>
<p>{{repeat-it '&nbsp;' 8}}NA Manually assigned, Not PUSH-PULL customer anymore</p>
<p class="bold">{{repeat-it '&nbsp;' 4}}Customer Basic Information to collect: </p>
<p>{{repeat-it '&nbsp;' 8}}General info: </p>
<p>{{repeat-it '&nbsp;' 8}}Global Project (for CA only): </p>
<p>{{repeat-it '&nbsp;' 8}}Cust. Core Business: </p>
<p>{{repeat-it '&nbsp;' 8}}LEMO app: </p>
<p>{{repeat-it '&nbsp;' 8}}LEMO rivals(%): </p>
<p>{{repeat-it '&nbsp;' 8}}Cust. staff qty: </p>
<p>{{repeat-it '&nbsp;' 8}}Cust. competitors: </p>
<p class="bold">{{repeat-it '&nbsp;' 4}}LMCN Week Goals: </p>
<p>{{repeat-it '&nbsp;' 8}}每次访客时100%向需要的客户推广:新产品、光纤、组件和技术研讨会。</p>
<hr />
<h3>Admin Tips: </h3>
<p>&nbsp;&nbsp;&nbsp;&nbsp;Step 1 Import Customers: QAD 2.2.23</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;Step 2 Import Sales Data: QAD 7.17.13</p>
<p>{{repeat-it '&nbsp;' 4}}Step 1 Import Customers: QAD 2.2.23</p>
<p>{{repeat-it '&nbsp;' 4}}Step 2 Import Sales Data: QAD 7.17.13</p>
{{!--
{{!--
User tips:
    Customer Status:
        Active Auto assigned, Active customer, with PO in current year
        Occasional Auto assigned, Not very active, no PO in current year, but occasional PO within past 2 years
        Sleeping Auto assigned, Sleeping customer and no PO within past 2 years, still use PUSH-PULL
        NA Manually assigned, Not PUSH-PULL customer anymore
 
Customer Basic Information to collect:
General info:
Global Project (for CA only):  
Cust. Core Business:
LEMO app:
LEMO rivals(%):
Cust. staff qty:
Cust. competitors:
 
LMCN Week Goals:
每次访客时100%向需要的客户推广:新产品、光纤、组件和技术研讨会。
User Tips:
Customer Status:
Active Auto assigned, active customer, with PO in current year
Occasional Auto assigned, not very active, no PO in current year, but occasional PO within past 2 years
Sleeping Auto assigned, no PO in current year and in past 2 years, but still use PUSH-PULL
NA Manually assigned, not PUSH-PULL customer anymore
LMCN week goals:
每次访客时100%向需要的客户推广:新产品、光纤、组件和技术研讨会。
Admin Tips:
Step 1 Import Customers: QAD 2.2.23
Step 2 Import Sales Data: QAD 7.17.13
--}}
--}}
</div>
{{/main-content}}
{{/main-content}}

View File

@ -0,0 +1,17 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('repeat-it', 'helper:repeat-it', {
integration: true
});
// Replace this with your real tests.
test('it renders', function(assert) {
this.set('inputValue', '1234');
this.render(hbs`{{repeat-it inputValue}}`);
assert.equal(this.$().text().trim(), '1234');
});