2007-11-17 21:12:34 +00:00
|
|
|
<% context = context_form
|
2010-10-24 22:31:57 +02:00
|
|
|
@context = context
|
|
|
|
|
-%>
|
|
|
|
|
|
|
|
|
|
<% form_for(context, :html => {
|
|
|
|
|
:id => dom_id(context, 'edit_form'),
|
|
|
|
|
:class => "inline-form edit-project-form",
|
|
|
|
|
:method => :put }) do
|
|
|
|
|
-%>
|
|
|
|
|
|
|
|
|
|
<div id="edit_error_status"><%= error_messages_for("project") %></div>
|
|
|
|
|
|
2007-11-17 21:12:34 +00:00
|
|
|
|
2009-10-02 19:45:49 -04:00
|
|
|
<label for="context_name">Context name</label><br/>
|
2011-05-08 16:40:31 +02:00
|
|
|
<%= text_field('context', 'name', :class => 'context-name', :tabindex => next_tab_index) %><br/>
|
2009-10-02 19:45:49 -04:00
|
|
|
|
2010-10-24 22:31:57 +02:00
|
|
|
<label for="context_hide">Hide from front page?</label>
|
2011-05-08 16:40:31 +02:00
|
|
|
<%= check_box('context', 'hide', {:class => 'context-hide', :tabindex => next_tab_index}) %>
|
2010-10-24 22:31:57 +02:00
|
|
|
<input type="hidden" name="wants_render" value="true" />
|
2009-10-02 19:45:49 -04:00
|
|
|
|
|
|
|
|
<div class="submit_box">
|
|
|
|
|
<div class="widgets">
|
2011-05-08 16:40:31 +02:00
|
|
|
<button type="submit" class="positive" id="<%= dom_id(context, 'submit') %>" tabindex="<%=next_tab_index%>">
|
2009-10-02 19:45:49 -04:00
|
|
|
<%=image_tag("accept.png", :alt => "") %>
|
2010-10-31 21:27:13 +08:00
|
|
|
<%= t 'common.update' %>
|
2009-10-02 19:45:49 -04:00
|
|
|
</button>
|
|
|
|
|
<a href="" onclick="" class="negative">
|
|
|
|
|
<%=image_tag("cancel.png", :alt => "") %>
|
2010-10-31 21:27:13 +08:00
|
|
|
<%= t 'common.cancel' %>
|
2009-10-02 19:45:49 -04:00
|
|
|
</a>
|
2007-11-17 21:12:34 +00:00
|
|
|
</div>
|
2009-10-02 19:45:49 -04:00
|
|
|
</div>
|
|
|
|
|
<br/><br/>
|
|
|
|
|
|
2010-10-24 22:31:57 +02:00
|
|
|
<% end %>
|
2007-11-17 21:12:34 +00:00
|
|
|
|