Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
fixes in the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
nehamand committed Nov 9, 2023
1 parent d835086 commit 8e696f5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/new_admin/questionnaires/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% content_for :page_title do %>
<%= t '.edit' %>
<%= t 'questionnaires.edit' %>
<% end %>

<div data-tab-id="edit_questionnaire">
Expand Down
9 changes: 9 additions & 0 deletions app/views/new_admin/questionnaires/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
<% end %>

<div data-tab-id="questionnaire">
<div id="questionnaire_actions" class="flex items-center justify-end">
<div class="mx-2">
<%= link_to edit_new_admin_questionnaire_path(id: @questionnaire.id) do %>
<button class="px-4 py-2 text-sm text-white transition-colors font-semibold duration-150 border border-transparent rounded-lg bg-primary-600 hover:bg-primary-700">
<%= t 'helpers.edit' %>
</button>
<% end %>
</div>
</div>
<table class="w-full whitespace-nowrap">
<thead>
<tr class="text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-white dark:bg-slate-700">
Expand Down
1 change: 1 addition & 0 deletions config/locales/pt-BR/pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ pt-BR:
answer_options: "Opções de resposta separadas por ;"
show_title: "Questionário #%{id}"
details: "Detalhes do questionário"
edit: 'Editar questionário'
regional_holidays:
title: "Feriados regionais"
filters: "Filtros"
Expand Down

0 comments on commit 8e696f5

Please sign in to comment.