diff --git a/app/views/admin/communication/website/menu/items/show.html.erb b/app/views/admin/communication/website/menu/items/show.html.erb index 8c8a1be1be8ed04319608b88d3530f6024ccbb66..d07ab910e09a342a4c9b3c9713f85f3cf9a47b5c 100644 --- a/app/views/admin/communication/website/menu/items/show.html.erb +++ b/app/views/admin/communication/website/menu/items/show.html.erb @@ -20,25 +20,17 @@ <div class="card-header"> <h2 class="card-title mb-0 h5"><%= t('metadata') %></h2> </div> - <table class="<%= table_classes %>"> - <tbody> - <tr> - <td width="150"><%= Communication::Website::Menu::Item.human_attribute_name('kind') %></td> - <td><%= @item.kind %></td> - </tr> - <% if @item.kind_url? %> - <tr> - <td width="150"><%= Communication::Website::Menu::Item.human_attribute_name('url') %></td> - <td><%= link_to @item.url, @item.url, target: '_blank' unless @item.url.blank? %></td> - </tr> - <% elsif @item.kind_page? %> - <tr> - <td width="150"><%= Communication::Website::Menu::Item.human_attribute_name('about') %></td> - <td><%= link_to_if can?(:read, @item.about), @item.about, [:admin, @item.about] %></td> - </tr> - <% end %> - </tbody> - </table> + <div class="card-body"> + <h3 class="h5"><%= Communication::Website::Menu::Item.human_attribute_name('kind') %></h3> + <p><%= I18n.t(@item.kind, scope: 'enums.communication/website/menu/item.kind') %></p> + <% if @item.kind_url? %> + <h3 class="h5"><%= Communication::Website::Menu::Item.human_attribute_name('url') %></h3> + <p><%= link_to @item.url, @item.url, target: '_blank' unless @item.url.blank? %></p> + <% elsif @item.kind_page? %> + <h3 class="h5"><%= Communication::Website::Menu::Item.human_attribute_name('about') %></h3> + <p><%= link_to_if can?(:read, @item.about), @item.about, [:admin, @item.about] %></p> + <% end %> + </div> </div> </div> </div> diff --git a/app/views/admin/communication/website/menus/show.html.erb b/app/views/admin/communication/website/menus/show.html.erb index a37b82c3df1878a09f13776bdd39c121fc53a548..539c1f48fa24f50c684836ad9dfa0d704ef1b674 100644 --- a/app/views/admin/communication/website/menus/show.html.erb +++ b/app/views/admin/communication/website/menus/show.html.erb @@ -20,14 +20,10 @@ <div class="card-header"> <h2 class="card-title mb-0 h5"><%= t('metadata') %></h2> </div> - <table class="<%= table_classes %>"> - <tbody> - <tr> - <td width="150"><%= Communication::Website::Menu.human_attribute_name('identifier') %></td> - <td><%= @menu.identifier %></td> - </tr> - </tbody> - </table> + <div class="card-body"> + <h3 class="h5"><%= Communication::Website::Menu.human_attribute_name('identifier') %></h3> + <p><%= @menu.identifier %></p> + </div> </div> </div> </div> diff --git a/app/views/admin/education/schools/show.html.erb b/app/views/admin/education/schools/show.html.erb index d434ebc26cf40e6b648a411b945bb923a597e42b..6c3c7800cd0e22c9c6ab72deae562e43bba725b8 100644 --- a/app/views/admin/education/schools/show.html.erb +++ b/app/views/admin/education/schools/show.html.erb @@ -9,11 +9,13 @@ </div> <div class="card-body"> <h3 class="h5"><%= Education::School.human_attribute_name('address') %></h3> - <%= @school.address %><br> - <%= @school.zipcode %> <%= @school.city %><br> - <%= @school.country %> - <h3 class="h5 mt-4"><%= Education::School.human_attribute_name('phone') %></h3> - <%= @school.phone %> + <p> + <%= @school.address %><br> + <%= @school.zipcode %> <%= @school.city %><br> + <%= @school.country %> + </p> + <h3 class="h5"><%= Education::School.human_attribute_name('phone') %></h3> + <p><%= @school.phone %></p> </div> </div> </div> diff --git a/app/views/admin/education/teachers/show.html.erb b/app/views/admin/education/teachers/show.html.erb index f6804bbac1400b7513bcfdc9ee49b10e57a792bd..5cd610004735ada2715fe0ae583b9067a57f3f31 100644 --- a/app/views/admin/education/teachers/show.html.erb +++ b/app/views/admin/education/teachers/show.html.erb @@ -9,12 +9,12 @@ </div> <div class="card-body"> <h3 class="h5"><%= Education::Teacher.human_attribute_name('biography') %></h3> - <%= @teacher.biography %> - <h3 class="h5 mt-4"><%= Education::Teacher.human_attribute_name('slug') %></h3> - <%= @teacher.slug %> + <p><%= @teacher.biography %></p> + <h3 class="h5"><%= Education::Teacher.human_attribute_name('slug') %></h3> + <p><%= @teacher.slug %></p> <% if @teacher.user %> - <h3 class="h5 mt-4"><%= Education::Teacher.human_attribute_name('user') %></h3> - <%= link_to_if can?(:read, @teacher.user), @teacher.user, admin_user_path(@teacher.user) %> + <h3 class="h5"><%= Education::Teacher.human_attribute_name('user') %></h3> + <p><%= link_to_if can?(:read, @teacher.user), @teacher.user, admin_user_path(@teacher.user) %></p> <% end %> </div> </div> diff --git a/app/views/admin/research/journal/articles/_form.html.erb b/app/views/admin/research/journal/articles/_form.html.erb index 52e37486ccecfc6f81f7d66679e9181d240c5238..6e15aaefd25c8c83671a7721649e385dbb634729 100644 --- a/app/views/admin/research/journal/articles/_form.html.erb +++ b/app/views/admin/research/journal/articles/_form.html.erb @@ -23,7 +23,7 @@ <%= f.association :volume, collection: @journal.volumes, label: Research::Journal::Volume.model_name.human %> <%= f.input :published_at, html5: true %> <%= f.input :keywords, as: :text, input_html: { rows: 2 } %> - <%= f.association :researchers, collection: current_university.research_researchers.ordered , multiple: true %> + <%= f.association :researchers, collection: current_university.research_researchers.ordered, as: :check_boxes %> </div> </div> </div> diff --git a/app/views/admin/research/journal/articles/show.html.erb b/app/views/admin/research/journal/articles/show.html.erb index 741b7a500ee1de2cf71b77a3eb992dfcca7811a8..948d91e065718bb69a2423f4188ec5a6aea0b9ff 100644 --- a/app/views/admin/research/journal/articles/show.html.erb +++ b/app/views/admin/research/journal/articles/show.html.erb @@ -25,38 +25,26 @@ <div class="card-header"> <h2 class="card-title mb-0 h5"><%= t('metadata') %></h2> </div> - <table class="<%= table_classes %>"> - <tbody> - <% if @article.volume %> - <tr> - <td width="150"><%= Research::Journal::Article.human_attribute_name('volume') %></td> - <td><%= link_to @article.volume, [:admin, @article.volume] %></td> - </tr> - <% end %> - <tr> - <td width="150"><%= Research::Journal::Article.human_attribute_name('published_at') %></td> - <td><%=l @article.published_at.to_time, format: :date_with_explicit_month %></td> - </tr> - <% unless @article.keywords.blank? %> - <tr> - <td width="150"><%= Research::Journal::Article.human_attribute_name('keywords') %></td> - <td><%= @article.keywords %></td> - </tr> - <% end %> - <% if @article.researchers.any? %> - <tr> - <td width="150"><%= Research::Journal::Article.human_attribute_name('researchers') %></td> - <td> - <ul class="list-unstyled"> - <% @article.researchers.each do |researcher| %> - <li><%= link_to researcher, [:admin, researcher] %></li> - <% end %> - </ul> - </td> - </tr> - <% end %> - </tbody> - </table> + <div class="card-body"> + <% if @article.volume %> + <h3 class="h5"><%= Research::Journal::Article.human_attribute_name('volume') %></h3> + <p><%= link_to @article.volume, [:admin, @article.volume] %></p> + <% end %> + <h3 class="h5"><%= Research::Journal::Article.human_attribute_name('published_at') %></h3> + <p><%=l @article.published_at.to_time, format: :date_with_explicit_month %></p> + <% unless @article.keywords.blank? %> + <h3 class="h5"><%= Research::Journal::Article.human_attribute_name('keywords') %></h3> + <p><%= @article.keywords %></p> + <% end %> + <% if @article.researchers.any? %> + <h3 class="h5"><%= Research::Journal::Article.human_attribute_name('researchers') %></h3> + <ul class="list-unstyled mb-0"> + <% @article.researchers.each do |researcher| %> + <li><%= link_to researcher, [:admin, researcher] %></li> + <% end %> + </ul> + <% end %> + </div> </div> </div> diff --git a/app/views/admin/research/journal/volumes/show.html.erb b/app/views/admin/research/journal/volumes/show.html.erb index ce4ce109d057cedd1bd93d405e530be3a78b2843..1e1644ef767689adb0850d73c05701c5fd6a6788 100644 --- a/app/views/admin/research/journal/volumes/show.html.erb +++ b/app/views/admin/research/journal/volumes/show.html.erb @@ -21,18 +21,12 @@ <div class="card-header"> <h2 class="card-title mb-0 h5"><%= t('metadata') %></h2> </div> - <table class="<%= table_classes %>"> - <tbody> - <tr> - <td width="150"><%= Research::Journal::Volume.human_attribute_name('number') %></td> - <td><%= @volume.number %></td> - </tr> - <tr> - <td width="150"><%= Research::Journal::Volume.human_attribute_name('published_at') %></td> - <td><%=l @volume.published_at.to_time, format: :date_with_explicit_month %></td> - </tr> - </tbody> - </table> + <div class="card-body"> + <h3 class="h5"><%= Research::Journal::Volume.human_attribute_name('number') %></h3> + <p><%= @volume.number %></p> + <h3 class="h5"><%= Research::Journal::Volume.human_attribute_name('published_at') %></h3> + <p><%=l @volume.published_at.to_time, format: :date_with_explicit_month %></p> + </div> </div> <% if @volume.cover.attached? %> <div class="card"> diff --git a/app/views/admin/research/researchers/show.html.erb b/app/views/admin/research/researchers/show.html.erb index 24b13eece25ba2081f5b736c6e45795578ebca4d..e50282dea86fddaf6f1575823337bf35ee603f8e 100644 --- a/app/views/admin/research/researchers/show.html.erb +++ b/app/views/admin/research/researchers/show.html.erb @@ -25,16 +25,12 @@ <div class="card-header"> <h2 class="card-title mb-0 h5"><%= t('metadata') %></h2> </div> - <table class="<%= table_classes %>"> - <tbody> - <% if @researcher.user %> - <tr> - <td width="150"><%= Research::Researcher.human_attribute_name('user') %></td> - <td><%= link_to @researcher.user, [:admin, @researcher.user] %></td> - </tr> - <% end %> - </tbody> - </table> + <div class="card-body"> + <% if @researcher.user %> + <h3 class="h5"><%= Research::Researcher.human_attribute_name('user') %></h3> + <p><%= link_to @researcher.user, [:admin, @researcher.user] %></p> + <% end %> + </div> </div> </div> </div>