Sha256: cc5b0c771d382eabe9abdf6bde2d665ecc86cedcfbeb70c08425d21f4a59c4fc

Contents?: true

Size: 386 Bytes

Versions: 144

Compression:

Stored size: 386 Bytes

Contents

<%
  if current_ma_user.role.upcase.split(',').include?("A")
    note= Note.all.desc(:created_at)
  else
    note= Note.where(user: current_ma_user).desc(:created_at)
  end
%>
<div class="field" data-role="fieldcontain">
  <%= label_tag :title, 'Select Note' %>
  <br>
  <br>
  <%= select_tag :id, options_from_collection_for_select(note, :id, :title), "notee-menu"=>"false" %>
</div>

Version data entries

144 entries across 47 versions & 4 rubygems

Version Path
jinda-0.8.0 test/dummy/app/views/notes/edit/select_note.html.erb
jinda-0.8.0 lib/generators/jinda/templates/app/views/notes/edit/select_note.html.erb
jinda-0.8.0 lib/generators/jinda/templates/app/views/notes/delete/select_note.html.erb
jinda-0.8.0 test/dummy/app/views/notes/delete/select_note.html.erb
jinda-0.8.0 lib/generators/jinda/templates/app/views/docs/edit/select_note.html.erb
jinda-0.8.0 test/dummy/app/views/docs/edit/select_note.html.erb
jinda-0.7.7.4 lib/generators/jinda/templates/app/views/notes/edit/select_note.html.erb
jinda-0.7.7.4 test/dummy/app/views/docs/edit/select_note.html.erb
jinda-0.7.7.4 test/dummy/app/views/notes/delete/select_note.html.erb
jinda-0.7.7.4 lib/generators/jinda/templates/app/views/notes/delete/select_note.html.erb
jinda-0.7.7.4 test/dummy/app/views/notes/edit/select_note.html.erb
jinda-0.7.7.4 lib/generators/jinda/templates/app/views/docs/edit/select_note.html.erb
jinda-0.7.7.3 test/dummy/app/views/docs/edit/select_note.html.erb
jinda-0.7.7.3 lib/generators/jinda/templates/app/views/docs/edit/select_note.html.erb
jinda-0.7.7.3 lib/generators/jinda/templates/app/views/notes/delete/select_note.html.erb
jinda-0.7.7.3 test/dummy/app/views/notes/edit/select_note.html.erb
jinda-0.7.7.3 lib/generators/jinda/templates/app/views/notes/edit/select_note.html.erb
jinda-0.7.7.3 test/dummy/app/views/notes/delete/select_note.html.erb
jinda-0.7.7.2 lib/generators/jinda/templates/app/views/docs/edit/select_note.html.erb
jinda-0.7.7.2 lib/generators/jinda/templates/app/views/notes/edit/select_note.html.erb