Commit 77b02f8b authored by marcheing's avatar marcheing

Fix labels on content upload form

Signed-off-by: Diego de Araújo Martinez Camarinha's avatarDiego Araújo <diegoamc@protonmail.ch>
parent cb810e09
......@@ -42,7 +42,9 @@
<fieldset>
<div class="field-label-item">
<%= f.check_box :terms_of_service, id: 'user-terms', required: true %>
<%= f.label t('terms_of_service_html'), for: :terms_of_service %>
<%= f.label for: :terms_of_service do %>
<%= t('terms_of_service_html') %>
<% end %>
</div>
</fieldset>
......@@ -94,18 +96,20 @@
</fieldset>
<fieldset>
<div class="field-label">
<%= f.label(t('team'), for: 'video-team') do %>
<span data-tooltip aria-haspopup="true" class="has-tip top" data-disable-hover="false" tabindex=1 title="Explicação sobre o campo"><i class="fa fa-question-circle"></i></span>
<%= f.label(for: 'video-team') do %>
<%= t('team') %>
<span data-tooltip aria-haspopup="true" class="has-tip top" data-disable-hover="false" tabindex=1 title="<%= t('team_tooltip') %>"><i class="fa fa-question-circle"></i></span>
<% end %>
</div>
<div class="field-item">
<%= f.text_area :team, id: 'video-team' %>
<%= f.text_area :team, id: 'video-team' %>
</div>
</fieldset>
<fieldset>
<div class="field-label">
<%= f.label("#{t('soundtrack')} *", for: 'video-soundtrack') do %>
<span data-tooltip aria-haspopup="true" class="has-tip top" data-disable-hover="false" tabindex=1 title="Explicação sobre o campo"><i class="fa fa-question-circle"></i></span>
<%= f.label(for: 'video-soundtrack') do %>
<%= t('soundtrack') %>
<span data-tooltip aria-haspopup="true" class="has-tip top" data-disable-hover="false" tabindex=1 title="<%= t('soundtrack_tooltip') %>"><i class="fa fa-question-circle"></i></span>
<% end %>
</div>
<div class="field-item">
......@@ -114,8 +118,9 @@
</fieldset>
<fieldset>
<div class="field-label-item">
<%= f.label(t('specific_location'), for: 'video-has-location') do %>
<%= f.label(for: 'video-has-location') do %>
<%= check_box_tag 'video-has-location', 'yes' %>
<%= t('specific_location') %>
<% end %>
</div>
</fieldset>
......@@ -143,15 +148,17 @@
-->
<fieldset>
<div class="field-label-item">
<%= f.label(t('adult'), for: 'video-adults-only') do %>
<%= f.label(for: 'video-adults-only') do %>
<%= f.check_box :adult, id: 'video-adults-only', value: 'yes' %>
<%= t('adult') %>
<% end %>
</div>
</fieldset>
<fieldset>
<div class="field-label-item">
<%= f.label(t('allow_commentary'), for: 'video-allow-commentary') do %>
<%= f.label(for: 'video-allow-commentary') do %>
<%= f.check_box :allow_comments, id: 'video-allow-commentary', value: 'yes' %>
<%= t('allow_commentary') %>
<% end %>
</div>
</fieldset>
......
......@@ -15,3 +15,6 @@ en:
adult: Adult video
allow_commentary: Allow comments
register: Register
team_tooltip: Add here the team members and video actors.
soundtrack_tooltip: Be sure you have the permission to use the soundtrack.
......@@ -15,4 +15,6 @@ pt-BR:
adult: Vídeo adulto
allow_commentary: Permitir comentários
register: Cadastrar
team_tooltip: Coloque aqui os membros da equipe e atores do vídeo.
soundtrack_tooltip: Tenha certeza que você possui permissão para usar a trilha sonora.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment