X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ff7ddb6b86bf918a9418af7382836b41594d45e4..12281b1cc1c246cc1debcabbc12d2840cdb6666f:/app/views/diary_entries/_form.html.erb?ds=sidebyside diff --git a/app/views/diary_entries/_form.html.erb b/app/views/diary_entries/_form.html.erb index 1b04b1519..291e8e33b 100644 --- a/app/views/diary_entries/_form.html.erb +++ b/app/views/diary_entries/_form.html.erb @@ -1,35 +1,19 @@ -
-
-
- - <%= f.text_field :title, :class => "richtext_title" %> -
-
- - <%= richtext_area :diary_entry, :body, :cols => 80, :rows => 20, :format => @diary_entry.body_format %> +<%= f.text_field :title %> +<%= f.richtext_field :body, :cols => 80, :rows => 20, :format => @diary_entry.body_format %> +<%= f.collection_select :language_code, Language.order(:english_name), :code, :name %> + +
+ <%= t ".location" -%> + + <%= tag.div "", :id => "map", :class => "border border-secondary-subtle rounded mb-3", :data => { :lat => @lat, :lon => @lon, :zoom => @zoom } %> + +
+ <%= f.text_field :latitude, :wrapper_class => "col-sm-4 d-flex flex-column", :class => "mt-auto", :id => "latitude" %> + <%= f.text_field :longitude, :wrapper_class => "col-sm-4 d-flex flex-column", :class => "mt-auto", :id => "longitude" %> +
+
-
- - <%= f.collection_select :language_code, Language.order(:english_name), :code, :name %>
-
-
- - <%= content_tag "div", "", :id => "map", :data => { :lat => @lat, :lon => @lon, :zoom => @zoom } %> -
-
- - <%= f.text_field :latitude, :size => 20, :id => "latitude" %> -
-
- - <%= f.text_field :longitude, :size => 20, :id => "longitude" %> -
- -
-
+
- <%= f.submit %> -
+<%= f.primary %>