Commit 7477d608 authored by Nivaldo Neto's avatar Nivaldo Neto

change license types form layout

parent b945c4e8
......@@ -41,14 +41,20 @@
<div class="formfieldline select-license-type">
<% licenses = ActivityGalleryPlugin::Activity.get_license_options(jwt) %>
<label class="formlabel">Tipos de Licença</label>
<p>Permitir uso comercial</p>
<%= labelled_radio_button('Sim', 'commercial', 'commercial', true, class: 'radios_licenses') %>
<%= labelled_radio_button('Não', 'commercial', 'non-commercial', false, class: 'radios_licenses') %>
<p>Permitir modificações</p>
<%= labelled_radio_button('Sim', 'modify', 'modify', true, class: 'radios_licenses') %>
<%= labelled_radio_button('Não', 'modify', 'non-modify', false, class: 'radios_licenses') %>
<%= labelled_radio_button('Sim, compartilhar igual', 'modify', 'modify+share-alike', false, class: 'radios_licenses') %>
<%= hidden_field_tag('data[license]', licenses.select{ |l| l[2] == 'commercial' && l[3] == 'modify'}[0][1], id: 'license_input') %>
<div class="row">
<div class="col-md-6">
<p style="text-align: left;">Permitir uso comercial</p>
<%= labelled_radio_button('Sim', 'commercial', 'commercial', true, class: 'radios_licenses') %>
<%= labelled_radio_button('Não', 'commercial', 'non-commercial', false, class: 'radios_licenses') %>
</div>
<div class="col-md-6">
<p style="text-align: left;">Permitir modificações</p>
<%= labelled_radio_button('Sim', 'modify', 'modify', true, class: 'radios_licenses') %>
<%= labelled_radio_button('Não', 'modify', 'non-modify', false, class: 'radios_licenses') %>
<%= labelled_radio_button('Sim, compartilhar igual', 'modify', 'modify+share-alike', false, class: 'radios_licenses') %>
<%= hidden_field_tag('data[license]', licenses.select{ |l| l[2] == 'commercial' && l[3] == 'modify'}[0][1], id: 'license_input') %>
</div>
</div>
<input
id='license_show'
class="button with-text submit btn-save-activity"
......
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