diff --git a/app/assets/stylesheets/desktop/desktop-component.scss b/app/assets/stylesheets/desktop/desktop-component.scss index e41c424c8..9065061a1 100644 --- a/app/assets/stylesheets/desktop/desktop-component.scss +++ b/app/assets/stylesheets/desktop/desktop-component.scss @@ -21,10 +21,14 @@ } .form_fix { textarea { - margin-bottom: 12px; + margin-bottom: 12px; } - input { + input[type="text"] { margin-left: 0; + margin-top: 0; + } + input[type="text"] + input { + margin-top: 12px; } } // fixed width column with 12px gutter diff --git a/vendor/built_in_modules/personal_book/app/helpers/panel/personal_book/desktop/personal_books_helper.rb b/vendor/built_in_modules/personal_book/app/helpers/panel/personal_book/desktop/personal_books_helper.rb index 3c4b5fcb0..8ea06188a 100644 --- a/vendor/built_in_modules/personal_book/app/helpers/panel/personal_book/desktop/personal_books_helper.rb +++ b/vendor/built_in_modules/personal_book/app/helpers/panel/personal_book/desktop/personal_books_helper.rb @@ -4,10 +4,13 @@ module Panel::PersonalBook::Desktop::PersonalBooksHelper "item" => "true", "data-id" => publication.id.to_s, :class => "list_t_item #{view.blank? ? '' : "#{view}_view" } #{publication.is_hidden? ? "private" : "public" }" do - marker(publication.id) + \ - content(publication, view) + \ - edit_or_delete(publication) + content_tag :div, + :class => "inner" do + marker(publication.id) + \ + content(publication, view) + \ + edit_or_delete(publication) end + end end def marker id diff --git a/vendor/built_in_modules/personal_book/app/views/panel/personal_book/desktop/personal_books/_form.html.erb b/vendor/built_in_modules/personal_book/app/views/panel/personal_book/desktop/personal_books/_form.html.erb index 8ff320d8f..7ce24beb9 100644 --- a/vendor/built_in_modules/personal_book/app/views/panel/personal_book/desktop/personal_books/_form.html.erb +++ b/vendor/built_in_modules/personal_book/app/views/panel/personal_book/desktop/personal_books/_form.html.erb @@ -21,14 +21,14 @@
-
-
-
-
    +
    +
      +
    • <% @site_valid_locales.each_with_index do |locale, i| %> <% style = locale != I18n.locale.to_s ? 'style=display:none;' : "" %> <% data = "data-language=" + locale %> -
    • <%= data %> > + +
      <%= data %>> <%= f.fields_for :paper_title_translations do |f| %> <%= f.text_area locale, class: "s_grid_12 s_grid s_grid_h_3", @@ -36,8 +36,7 @@ placeholder: t("personal_book.paper_title")+ "("+I18nVariable.from_locale(locale)+")", value: (@personal_book.paper_title_translations[locale.to_s] rescue nil) %> <% end %> -
    • -
    • <%= data %> > + <%= f.fields_for :book_title_translations do |f| %> <%= f.text_field locale, size: "20", @@ -45,8 +44,7 @@ class: "s_grid_12 s_grid", value: (@personal_book.book_title_translations[locale.to_s] rescue nil) %> <% end %> -
    • -
    • <%= data %> > + <%= f.fields_for :extracted_chapters_translations do |f| %> <%= f.text_field locale, size: "20", @@ -54,8 +52,7 @@ class: "s_grid_12 s_grid", value: (@personal_book.extracted_chapters_translations[locale.to_s] rescue nil) %> <% end %> -
    • -
    • <%= data %> > + <%= f.fields_for :publishers_translations do |f| %> <%= f.text_field locale, size: "20", @@ -63,8 +60,9 @@ class: "s_grid_12 s_grid", value: (@personal_book.publishers_translations[locale.to_s] rescue nil) %> <% end %> -
    • +
    <% end %> +
  • <%= label_tag("", t("personal_book.book_paper_type"), class: "s_grid_4 s_grid") %> <%= f.select :book_paper_type_id, BookPaperType.all.collect {|t| [ t.title, t.id ]}, {:class => "s_grid s_grid_8"} %> @@ -107,12 +105,7 @@ <%= label_tag("", t("personal_book.url"), class: "s_grid_4 s_grid") %><%= f.text_field :url, size: "20", class: "s_grid_8 s_grid"%>
  • -
-
-
-
-
-
    +
  • <%= f.text_area :keywords, size: "20x3", placeholder: t("personal_book.keywords"), class: "s_grid_12 s_grid_h_2 s_grid"%>
  • @@ -127,14 +120,9 @@ <%= label_tag("", t("personal_book.isbn"), class: "s_grid_4 s_grid") %><%= f.text_field :isbn, size: "20", class: "s_grid_8 s_grid"%>
  • - <%= f.text_area :note, size: "20x3", placeholder: t("personal_book.note"), class: "s_grid_12 s_grid s_grid_h_5"%> + <%= f.text_area :note, size: "20x3", placeholder: t("personal_book.note"), class: "s_grid_12 s_grid s_grid_h_5 s_grid_h_full"%>
  • -
-
-
-
-
-
    +
  • @@ -165,8 +153,7 @@
-
-
+