2012-04-11 21:09:46 +02:00
|
|
|
<% context = context_form
|
2010-10-24 22:31:57 +02:00
|
|
|
-%>
|
|
|
|
|
|
2012-05-01 09:39:53 +02:00
|
|
|
<%= form_for(context, :html => {
|
2010-10-24 22:31:57 +02:00
|
|
|
:id => dom_id(context, 'edit_form'),
|
2013-03-02 16:33:38 +01:00
|
|
|
:class => "inline-form edit-context-form",
|
2010-10-24 22:31:57 +02:00
|
|
|
:method => :put }) do
|
|
|
|
|
-%>
|
|
|
|
|
|
2012-05-01 09:39:53 +02:00
|
|
|
<div id="edit_error_status"><%= get_list_of_error_messages_for(context) %></div>
|
2007-11-17 21:12:34 +00:00
|
|
|
|
2012-04-11 21:09:46 +02:00
|
|
|
<label for="context_name"><%= t 'contexts.context_name' %></label><br/>
|
2015-05-14 13:41:01 +02:00
|
|
|
<%= text_field('context', 'name', :class => 'context-name') %><br/>
|
2009-10-02 19:45:49 -04:00
|
|
|
|
2013-03-01 16:20:15 +01:00
|
|
|
<label for="context_hide"><%= t 'contexts.context_state' %> </label><br/>
|
|
|
|
|
<% ['active', 'hidden', 'closed'].each do | state | %>
|
2015-05-14 13:41:01 +02:00
|
|
|
<%= radio_button(:context, 'state', state) %> <%= state.titlecase %>
|
2013-03-02 14:52:03 +01:00
|
|
|
<% end %>
|
|
|
|
|
</br></br>
|
2009-10-02 19:45:49 -04:00
|
|
|
|
|
|
|
|
<div class="submit_box">
|
|
|
|
|
<div class="widgets">
|
2015-05-14 13:41:01 +02:00
|
|
|
<button type="submit" class="positive" id="<%= dom_id(context, 'submit') %>">
|
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
|
|
|
|