@@ 31-45 (lines=15) @@ | ||
28 | * Home site |
|
29 | * |
|
30 | */ |
|
31 | public function indexAction() |
|
32 | { |
|
33 | $result = $this->pagination([ |
|
34 | 'params' => ['Cvs_Index', [ |
|
35 | 'search', |
|
36 | 'page' => 1, |
|
37 | 'l', |
|
38 | 'd' => 10] |
|
39 | ], |
|
40 | 'form' => ['as' => 'filterForm', 'Cv/SearchForm'], |
|
41 | 'paginator' => ['as' => 'resumes', 'Cv/Paginator'] |
|
42 | ]); |
|
43 | ||
44 | return $result; |
|
45 | } |
|
46 | ||
47 | public function viewAction() |
|
48 | { |
@@ 115-125 (lines=11) @@ | ||
112 | /** |
|
113 | * List applications |
|
114 | */ |
|
115 | public function indexAction() |
|
116 | { |
|
117 | return $this->pagination([ |
|
118 | 'params' => ['Application_List', ['q', 'job', 'page' => 1, 'unread', 'status' => 'all']], |
|
119 | 'paginator' => ['Applications', 'as' => 'applications'], |
|
120 | 'form' => [ |
|
121 | ApplicationsFilter::class, |
|
122 | 'as' => 'form' |
|
123 | ], |
|
124 | ]); |
|
125 | } |
|
126 | ||
127 | /** |
|
128 | * Detail view of an application |
@@ 56-64 (lines=9) @@ | ||
53 | } |
|
54 | ||
55 | ||
56 | public function indexAction() |
|
57 | { |
|
58 | $params = $this->params()->fromQuery(); |
|
59 | return $this->pagination([ |
|
60 | 'params' => [ 'Jobs_Admin', ['text', 'page' => 1, 'companyId', 'status' ] ], |
|
61 | 'form' => [ 'as' => 'form', 'Jobs/AdminSearch' ], |
|
62 | 'paginator' => [ 'as' => 'jobs', 'Jobs/Admin' ], |
|
63 | ]); |
|
64 | } |
|
65 | ||
66 | public function editAction() |
|
67 | { |
@@ 72-94 (lines=23) @@ | ||
69 | * |
|
70 | * @return ViewModel |
|
71 | */ |
|
72 | public function indexAction() |
|
73 | { |
|
74 | ||
75 | $result = $this->pagination([ |
|
76 | 'paginator' => [ |
|
77 | 'Organizations/Organization', |
|
78 | 'as' => 'organizations', |
|
79 | 'params' => [ |
|
80 | 'type' => 'profile', |
|
81 | ] |
|
82 | ], |
|
83 | 'form' => [ |
|
84 | 'Core/Search', |
|
85 | [ |
|
86 | 'text_name' => 'text', |
|
87 | 'text_placeholder' => /*@translate*/ 'Search for organizations', |
|
88 | 'button_element' => 'text', |
|
89 | ], |
|
90 | 'as' => 'form' |
|
91 | ] |
|
92 | ]); |
|
93 | return new ViewModel($result); |
|
94 | } |
|
95 | ||
96 | /** |
|
97 | * @return array|ViewModel |