File tree Expand file tree Collapse file tree 2 files changed +9
-21
lines changed Expand file tree Collapse file tree 2 files changed +9
-21
lines changed Original file line number Diff line number Diff line change 1
1
< div class ="box tabular settings ">
2
+ <%
3
+ @options = [ "None" ]
4
+ Tracker . all . sort . each do |t |
5
+ @options . push ( [ t . name , t . id ] )
6
+ end
7
+ %>
2
8
< h3 > <%= l ( :setting_message ) %> </ h3 >
3
9
4
10
< p >
5
11
<%= content_tag ( :label , l ( :field_tracker_simple_note ) ) %>
6
- <%
7
- @options = [ ]
8
- Tracker . all . sort . each do |t |
9
- @options . push ( [ t . name , t . id ] )
10
- end
11
- %>
12
12
<%= select_tag "settings[tracker_simple_notes]" ,
13
13
options_for_select ( @options , @settings [ 'tracker_simple_notes' ] ) %>
14
14
</ p >
15
15
16
16
< p >
17
17
<%= content_tag ( :label , l ( :field_tracker_photo_note ) ) %>
18
- <%
19
- @options = [ ]
20
- Tracker . all . sort . each do |t |
21
- @options . push ( [ t . name , t . id ] )
22
- end
23
- %>
24
18
<%= select_tag "settings[tracker_photo_notes]" ,
25
19
options_for_select ( @options , @settings [ 'tracker_photo_notes' ] ) %>
26
20
</ p >
27
21
28
22
< p >
29
23
<%= content_tag ( :label , l ( :field_tracker_gps_log ) ) %>
30
- <%
31
- @options = [ ]
32
- Tracker . all . sort . each do |t |
33
- @options . push ( [ t . name , t . id ] )
34
- end
35
- %>
36
24
<%= select_tag "settings[tracker_gps_logs]" ,
37
25
options_for_select ( @options , @settings [ 'tracker_gps_logs' ] ) %>
38
26
</ p >
Original file line number Diff line number Diff line change 12
12
13
13
settings (
14
14
default : {
15
- 'tracker_simple_notes' => 0 ,
16
- 'tracker_photo_notes' => 0 ,
17
- 'tracker_gps_logs' => 1 ,
15
+ 'tracker_simple_notes' => "" ,
16
+ 'tracker_photo_notes' => "" ,
17
+ 'tracker_gps_logs' => "" ,
18
18
'default_subject' => ""
19
19
} ,
20
20
partial : 'gtt_smash/settings'
You can’t perform that action at this time.
0 commit comments