2011-05-08 16:40:31 +02:00
|
|
|
<%- reset_tab_index %>
|
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">
|
|
|
|
|
<% form_for(@new_context, :html => {:id => 'context-form',:name=>'context',:class => "inline-form", :method => :post }) do -%>
|
|
|
|
|
|
|
|
|
|
<div id="error_status"><%= error_messages_for('context') %></div>
|
|
|
|
|
|
|
|
|
|
<label for="context_name"><%= t 'contexts.context_name' %></label><br />
|
2011-05-08 16:40:31 +02:00
|
|
|
<%= text_field( "context", "name", :tabindex => next_tab_index ) %><br />
|
2010-10-22 20:46:06 +02:00
|
|
|
|
|
|
|
|
<label for="context_hide"><%= t 'contexts.context_hide' %></label>
|
2011-05-08 16:40:31 +02:00
|
|
|
<%= check_box( "context", "hide", {:tabindex => next_tab_index} ) %><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">
|
|
|
|
|
<%= image_tag("accept.png", :alt => "") + 'Add Context' %>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<br/><br/>
|
|
|
|
|
<% end -%>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|