mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-22 18:20:12 +01:00
28 lines
1 KiB
Text
28 lines
1 KiB
Text
<% context = context_form
|
|
@context = context-%>
|
|
<% form_remote_tag(:url => context_path(context), :html => {:id => dom_id(context, 'edit_form'), :class => "inline-form "+dom_id(context, 'edit_form')+"-edit-context-form edit-context-form", :method => :put}) do -%>
|
|
<%= error_messages_for 'context' %>
|
|
|
|
<label for="context_name">Context name</label><br/>
|
|
<%= text_field('context', 'name', :class => 'context-name') %><br/>
|
|
|
|
<label for="context_hide">Hide from front page?</label>
|
|
<%= check_box('context', 'hide', :class => 'context-hide') %>
|
|
<input type="hidden" name="wants_render" value="true" />
|
|
|
|
<div class="submit_box">
|
|
<div class="widgets">
|
|
<button type="submit" class="positive" id="<%= dom_id(context, 'submit') %>" tabindex="15">
|
|
<%=image_tag("accept.png", :alt => "") %>
|
|
Update
|
|
</button>
|
|
<a href="" onclick="" class="negative">
|
|
<%=image_tag("cancel.png", :alt => "") %>
|
|
Cancel
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<br/><br/>
|
|
|
|
<% end %>
|
|
|