Skip to content

Commit 0a6fde3

Browse files
mbasasanak
authored andcommitted
added baselayer option to view
1 parent 4f45c8d commit 0a6fde3

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

app/views/gtt_tile_sources/_form.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<div class="box tabular">
55
<p><%= f.text_field :name, required: true, size: 25 %></p>
66
<p><%= f.text_field :type, required: true, size: 25 %></p>
7+
<p><%= f.check_box :baselayer %></p>
78
<p><%= f.check_box :global %></p>
89
<p><%= f.check_box :default %></p>
910
<p> <%= f.text_area :options_string, rows: 10, cols: 80 %> </p>

app/views/gtt_tile_sources/_tile_source.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<tr class="<%= cycle("odd", "even") %>">
22
<td><%= tile_source.type %></td>
33
<td><%= link_to tile_source.name, edit_gtt_tile_source_path(tile_source) %></td>
4+
<td><%= checked_image tile_source.baselayer? %></td>
45
<td><%= checked_image tile_source.global? %></td>
56
<td><%= checked_image tile_source.default? %></td>
67
<td><%= tile_source_options tile_source %></td>

app/views/gtt_tile_sources/index.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<tr>
1111
<th><%= l :label_type %></th>
1212
<th><%= l :label_name %></th>
13+
<th><%= l :label_baselayer %></th>
1314
<th><%= l :label_global %></th>
1415
<th><%= l :label_default %></th>
1516
<th><%= l :label_config %></th>

config/locales/en.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ en:
88
field_location: "Location"
99
field_geom: "Geometry"
1010
field_global: Globally available
11+
field_baselayer: BaseLayer
1112
field_options_string: Options
1213
field_gtt_tile_source_ids: Tile Sources
1314

@@ -16,6 +17,7 @@ en:
1617
label_project_map: "Project Map"
1718
label_user_map: "User Map"
1819
label_name: Name
20+
label_baselayer: BaseLayer
1921
label_nearby: "nearby(lat,lng)"
2022
label_type: Type
2123
label_config: Configuration

config/locales/ja.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ja:
88
field_location: "場所"
99
field_geom: "所在地"
1010
field_global: 世界的に利用可能
11+
field_baselayer: 背景レイヤー
1112
field_options_string: オプション
1213
field_gtt_tile_source_ids: タイルソース
1314

@@ -16,6 +17,7 @@ ja:
1617
label_project_map: "プロジェクト 地図"
1718
label_user_map: "ユーザ 地図"
1819
label_name: タイトル
20+
label_baselayer: 背景レイヤー
1921
label_nearby: "近く(緯度,経度)"
2022
label_type: タイプ
2123
label_config: 構成

0 commit comments

Comments
 (0)