Sha256: bc61df6cd1f43141d0e02faf5154d7f85bc5d2bb68bc672be631ef0dde90557f

Contents?: true

Size: 471 Bytes

Versions: 9

Compression:

Stored size: 471 Bytes

Contents

<%-
  input_classes = ['input']
  input_classes << className if local_assigns[:className]
  name = name_from_variable(local_assigns)
  value = value_from_variable(local_assigns)
%>
<div class="field">
  <label class="label"><%= local_assigns[:label] %></label>
  <div class="select">
    <%= content_tag :select, nil, name: name, class: input_classes.join(' ') do %>
      <% options_for_select @doc.send("values_for_#{variable}"), value %>
    <% end %>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
yarii-editor-0.4.8 app/views/yarii_editor/editor/_dropdown.html.erb
yarii-editor-0.4.7 app/views/yarii_editor/editor/_dropdown.html.erb
yarii-editor-0.4.6 app/views/yarii_editor/editor/_dropdown.html.erb
yarii-editor-0.4.5 app/views/yarii_editor/editor/_dropdown.html.erb
yarii-editor-0.4.4 app/views/yarii_editor/editor/_dropdown.html.erb
yarii-editor-0.4.3 app/views/yarii_editor/editor/_dropdown.html.erb
yarii-editor-0.4.2 app/views/yarii_editor/editor/_dropdown.html.erb
yarii-editor-0.4.1 app/views/yarii_editor/editor/_dropdown.html.erb
yarii-editor-0.4.0 app/views/yarii_editor/editor/_dropdown.html.erb