Source

formbar / formbar / templates / selection.mako

Full commit
% if field.is_readonly():
  <div class="readonlyfield" name="${field.name}">
    ${field.get_value(expand=True) or "&nbsp;"}
  </div>
% else:
  <select class="form-control" id="${field.id}" name="${field.name}" size="5" multiple>
    % for option in field.get_options():
      ## Depending if the options has passed the configured filter the
      ## option will be visible or hidden
      % if option[2]:
        <option value="${option[1]}">${option[0]}</option>
      % else:
        <option value="${option[1]}" class="hidden">${option[0]}</option>
      % endif
    % endfor
  </select>
% endif