2013-10-04 09:59:41 +00:00
|
|
|
<script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>
|
2013-09-28 11:59:19 +00:00
|
|
|
<script type="text/javascript" src="/wymeditor/wymeditor/jquery.wymeditor.min.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function(){
|
|
|
|
$('.wysiwyg').wymeditor();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<%= form_tag(setting_path(@setting[:var]), :method => :put) do %>
|
|
|
|
<h3>Editing <%= @setting[:var].titleize %></h3>
|
|
|
|
<div class="field">
|
|
|
|
<%= text_area_tag :value, @setting[:value], :cols => 50, :class => "wysiwyg" %><br/>
|
|
|
|
</div>
|
2013-09-29 02:34:08 +00:00
|
|
|
<em>Note: there is a /more_info page you can link to for wysiwyg purposes.</em>
|
2013-09-28 11:59:19 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= submit_tag "Save", {:class => "wymupdate"} %><br/>
|
|
|
|
<%= link_to "Back", settings_path %>
|
|
|
|
</div>
|
2013-09-29 02:31:28 +00:00
|
|
|
<% end %>
|