Browse Source

Adequa inserção dinamica de radio ao crispy-forms

pull/752/head
LeandroRoberto 8 years ago
parent
commit
675ef157c1
  1. 2
      sapl/templates/base/autor_form.html

2
sapl/templates/base/autor_form.html

@ -40,7 +40,7 @@ $(document).ready(function(){
if (atualizar) {
var radios = $("#div_id_autor_related .controls").html('');
data.results.forEach(function (val, index) {
var html_radio = '<label class="radio"><span class="icons"><span class="first-icon"></span><span class="second-icon"></span></span><input type="radio" name="autor_related" id="id_autor_related_'+index+'" value="'+val.value+'">'+val.text+'</label>';
var html_radio = '<div class="radio"><label><span class="icons"><span class="first-icon"></span><span class="second-icon"></span></span><input type="radio" name="autor_related" id="id_autor_related_'+index+'" value="'+val.value+'" style="display:none;">'+val.text+'</label></div>';
radios.append(html_radio);
});

Loading…
Cancel
Save