<%= hidden_field_tag(:hook, @placeholder[:hook]) %> <% if @placeholder[:hook] == :view_wiki_inline_content %>
<%= l(:warning_use_with_caution) %>
<% end %> <% if @placeholder[:hook] == :view_wiki_inline_content %>

<%= l(:text_use_inline_hook_macro).html_safe %>

<% end %>
<% if @placeholder[:url] %>

<%= l(:label_sample_url) %>: http://<%= Setting.host_name %><%= h(@placeholder[:url]) %>

<% end %>

<%= text_area_tag('html_code', @hook ? @hook.html_code : nil, :cols => 60, :rows => 15, :onchange => 'html_code_changed = true;') %>

<%= l(:field_hook) %>: <%= @placeholder[:hook] %>

<%= submit_tag(@hook && !@hook.new_record? ? l(:button_update) : l(:button_create)) %> <%= link_to_function(l(:label_preview), "updateHookPreview()", :accesskey => accesskey(:preview)) %>