mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-25 10:16:11 +01:00
get context list scenario passing
This commit is contained in:
parent
c9d64e6f4b
commit
7bce774daa
9 changed files with 29 additions and 36 deletions
|
|
@ -1,15 +1,13 @@
|
|||
<% context = context_form
|
||||
@context = context
|
||||
-%>
|
||||
|
||||
<% form_for(context, :html => {
|
||||
<%= 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>
|
||||
|
||||
<div id="edit_error_status"><%= get_list_of_error_messages_for(context) %></div>
|
||||
|
||||
<label for="context_name"><%= t 'contexts.context_name' %></label><br/>
|
||||
<%= text_field('context', 'name', :class => 'context-name', :tabindex => next_tab_index) %><br/>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ suppress_delete_button ||= false
|
|||
<%= suppress_edit_button ? "" : link_to_edit_context(context, image_tag( "blank.png", :title => t('contexts.edit_context'), :class=>"edit_item")) -%>
|
||||
<%= suppress_drag_handle ? "" : image_tag('grip.png', :width => '7', :height => '16', :border => '0', :title => t('common.drag_handle'), :class => 'grip')-%>
|
||||
<div class="context_description">
|
||||
<%= link_to_context( context ) %> <%= " (" + count_undone_todos_phrase(context) + ")" %>
|
||||
<%= link_to_context( context ) %> <%= raw " (#{count_undone_todos_phrase(context)})" %>
|
||||
</div>
|
||||
</div>
|
||||
<div id="<%= dom_id(context, 'edit') %>" class="edit-form" style="display:none;">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue