2010-10-22 20:46:06 +02:00
|
|
|
<div id="context_new_container">
|
|
|
|
|
|
2011-02-09 20:41:34 +01:00
|
|
|
<div id="toggle_context_link" class="hide_form">
|
|
|
|
|
<a id="toggle_context_new" href="#" title="<%= t('contexts.hide_form_title') %>" accesskey="n"><%= t('contexts.hide_form') %></a>
|
2010-10-22 20:46:06 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="context_new" class="context_new" style="display:block">
|
2012-04-18 14:22:58 +02:00
|
|
|
<%= form_for(@new_context, :html => {:id => 'context-form',:name=>'context',:class => "inline-form", :method => :post }) do -%>
|
2010-10-22 20:46:06 +02:00
|
|
|
|
2012-04-19 00:02:42 +02:00
|
|
|
<div id="error_status">
|
|
|
|
|
<% if @new_context.errors.any? -%>
|
|
|
|
|
<ul>
|
|
|
|
|
<% @new_context.errors.full_messages.each do |msg| %>
|
|
|
|
|
<li><%= msg %></li>
|
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
<% end -%>
|
|
|
|
|
</div>
|
2010-10-22 20:46:06 +02:00
|
|
|
|
|
|
|
|
<label for="context_name"><%= t 'contexts.context_name' %></label><br />
|
2015-05-14 13:41:01 +02:00
|
|
|
<%= text_field( "context", "name" ) %><br />
|
2010-10-22 20:46:06 +02:00
|
|
|
|
|
|
|
|
<label for="context_hide"><%= t 'contexts.context_hide' %></label>
|
2015-05-14 13:41:01 +02:00
|
|
|
<%= check_box( "context_state", "hide" ) %><br />
|
2010-10-22 20:46:06 +02:00
|
|
|
|
|
|
|
|
<div class="submit_box">
|
|
|
|
|
<div class="widgets">
|
|
|
|
|
<button type="submit" class="positive" id="context_new_submit">
|
2012-04-11 20:21:28 +02:00
|
|
|
<%= image_tag("accept.png", :alt => "") + t('shared.add_context') %>
|
2010-10-22 20:46:06 +02:00
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<br/><br/>
|
|
|
|
|
<% end -%>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|