This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontract_duration.html
168 lines (112 loc) · 2.82 KB
/
contract_duration.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>contract_duration</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="lib/reveal.js/css/reveal.min.css">
<link rel="stylesheet" href="lib/reveal.js/css/theme/night.css">
<link rel="stylesheet" href="lib/template.css">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="lib/reveal.js/lib/css/zenburn.css">
<!-- If the query includes 'print-pdf', include the PDF print sheet -->
<script>
if( window.location.search.match( /print-pdf/gi ) ) {
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'css/print/pdf.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
}
</script>
<!--[if lt IE 9]>
<script src="lib/reveal.js/lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<div class="slides" id="content">
<section data-markdown
data-separator="==="
data-vertical="---"><script type="text/template">
# Contract Duration
===
## JT-2785
---
### Before
* 1-3 months
* 4-6 months
* 7-9 months
...
---
### After
* X-Y months
===
## Impacts
---
### JobOffer
* ~~contract_duration~~
* contract_duration_min
* contract_duration_max
---
### StudentProfile
* ~~contract_duration~~
* contract_duration_min
* contract_duration_max
---
### Job Offer Search
* ~~contract_duration~~
* contract_duration_min
* contract_duration_max
---
### Cvtheque Search
* ~~contract_duration~~
* contract_duration_min
* contract_duration_max
---
/giphy noshitsherlock
===
## Retro-compatibility
---
### JobOffer
Multiposting, etc ...
```ruby
# app/models/job_offer/contract_duration_retro_compatibility
def contract_duration=
# ...
end
def contract_duration
# ...
end
```
---
### Display
```ruby
class ContractDurationPresenter
def self.present(duration_min, duration_max)
# ...
end
end
```
* "De 3 à 6 mois"
* "A partir de 8 mois"
* "Jusqu'à 12 mois"
===
## New input
```ruby
= f.input :contract_duration, as: :duration
```
* app/presenters/contract_duration_input.rb
* app/assets/javascripts/react_components/double_slider_input.js.jsx

</script></section>
</div>
</div>
<script src="lib/reveal.js/lib/js/head.min.js"></script>
<script src="lib/reveal.js/js/reveal.min.js"></script>
<script src="lib/jquery/dist/jquery.min.js"></script>
<script src="config.js"></script>
</body>
</html>