Sha256: c088927290335c115cb1847e8264e01f906c36284b612b4ffbc4e28848d163b3

Contents?: true

Size: 428 Bytes

Versions: 9

Compression:

Stored size: 428 Bytes

Contents

<%-
  props = local_assigns
  input_classes = ['textarea']
  input_classes << className if props[:className]
  name = name_from_variable(props)
  value = value_from_variable(props) || ""
%>
<div class="field">
  <label class="label"><%= props[:label] %></label>
  <div class="control">
    <%= content_tag :textarea, value, name: name, class: input_classes.join(' '), rows: 2, placeholder: props[:placeholder] %>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

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