Files
danbooru/app/views/artists/_form.html.erb
2011-10-20 18:50:16 -04:00

12 lines
642 B
Plaintext

<%= simple_form_for(@artist) do |f| %>
<%= f.input :name %>
<%= f.input :other_names, :hint => "Separate with commas", :as => :text %>
<%= f.input :group_name %>
<%= f.input :url_string, :label => "URLs", :as => :text, :input_html => {:size => "50x5"} %>
<%= f.input :is_active %>
<%= f.input :is_banned %>
<%= render "dtext/form", :name => "Notes", :input_id => "artist_notes", :input_name => "artist[notes]", :value => @artist.notes, :preview_id => "dtext-preview" %>
<%= f.button :submit, "Submit" %>
<%= f.button :submit, "Preview", "data-input-id" => "artist_notes", "data-preview-id" => "dtext-preview" %>
<% end %>