Skip to content

Commit

Permalink
Enables editing season start and season end
Browse files Browse the repository at this point in the history
  • Loading branch information
simaob committed Jul 5, 2020
1 parent e4b86a0 commit fe85277
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
19 changes: 15 additions & 4 deletions app/views/beaches/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,19 @@
<%= form.fields_for :beach_configuration do |builder| %>
<div class="form-row">
<div class="form-group col-md-6">
<%= builder.label :quality_flag, class: "col-sm-4 col-form-label" %>
<%= builder.check_box :quality_flag, class: "form-control" %>
<%= builder.label :season_start, class: "col-sm-4 col-form-label" %>
<%= builder.date_field :season_start, class: "form-control" %>
</div>
<div class="form-group col-md-6">
<%= builder.label :season_end, class: "col-sm-6 col-form-label" %>
<%= builder.date_field :season_end, class: "form-control" %>
</div>
</div>

<div class="form-row">
<div class="form-group col-md-6">
<%= builder.label :water_classification, class: "col-sm-8 col-form-label" %>
<%= builder.text_field :water_classification, class: "form-control" %>
</div>
<div class="form-group col-md-6">
<%= builder.label :sapo_code, class: "col-sm-6 col-form-label" %>
Expand Down Expand Up @@ -208,8 +219,8 @@
<%= builder.check_box :bathing_support, class: "form-control" %>
</div>
<div class="form-group col-md-4">
<%= builder.label :water_classification, class: "col-sm-8 col-form-label" %>
<%= builder.text_field :water_classification, class: "form-control" %>
<%= builder.label :quality_flag, class: "col-sm-6 col-form-label" %>
<%= builder.check_box :quality_flag, class: "form-control" %>
</div>
</div>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion config/locales/pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ pt:
<strong>Activa</strong>: Praia disponível na aplicação.<br>
<strong>Marcada para remoção</strong>: Remoção será revista e confirmada por um administrador."
info_deleting: 'NOTA: Quando marcar uma praia para remoção por favor escreva o porquê dessa marcação no campo de detalhes.'
beaches_attributes: 'Atributos das praias'
beach_attributes: 'Atributos das praias'
status_crowdsource_users:
index:
title: 'Estados reportados'
Expand Down

0 comments on commit fe85277

Please sign in to comment.