forked from bofh/fetsite
AutoCommit Sam Aug 1 22:03:01 CEST 2015
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
<%= semantic_form_for @choice do |f| %>
|
||||
<%= div_tag_for(@choice) do %>
|
||||
<%= semantic_form_for @choice, remote: true do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :text %>
|
||||
<i id="icon" style="font-size:2em" class="<%= @choice.icon %>"></i><a href="#" id="openselect" onclick=""> Choose Icon</a>
|
||||
|
||||
<%= f.input :icon, :input_html=>{:id=>"iconfield"},:as=>:hidden %>
|
||||
|
||||
<%= f.input :question %>
|
||||
<%= f.input :picture, as: :uploader %>
|
||||
<%= f.hidden_field :picture_cache %>
|
||||
|
||||
@@ -45,3 +46,4 @@ $("#openselect").on('click', function(){$('#dialog').dialog('open')});
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user