Sha256: 222a9eb3db39c81bce2496c794f7ce5c5e37130b4faccb7e76d1f5fcce6ff285

Contents?: true

Size: 1.84 KB

Versions: 3

Compression:

Stored size: 1.84 KB

Contents

<%= error_messages_for 'task' %>

<!--[form:task]-->
<p>
<% if @task.backlog.nil? || @task.new_record? %>
  <label for="task_backlog_id"><%=l :backlog%></label><br/>
  <%= select 'task', 'backlog_id', [['', '']] + @backlogs.map{|backlog| [backlog.name, backlog.id]}, {}, :onchange => "form.action = '#{url_for}'; form.submit();" %>
<% else %>
  <label for="task_backlog_id"><%=l :backlog%></label>:
  <%= hidden_field 'task', 'backlog_id' %><%=h @task.backlog.name%>
<% end %>
<% if @task.backlog %>
  <%=image_detour_to('clipboard.png', "#{l(:backlog)} #{@task.backlog.name}", {:controller => 'backlogs', :action => :edit, :id => @task.backlog}, {:class => 'image-submit', :style => 'vertical-align: bottom'}) %>
<% end %>
</p>


<p><label for="task_period_id"><%=l :period%></label><br/>
<%= select 'task', 'period_id', [['', '']] + @periods.map{|p| [p.name, p.id]}, {}, :onchange => "form.action = '#{url_for}'; form.submit();" %>
<% if @task.period %>
  <%=image_detour_to('period.png', "#{l :period} #{@task.period.name}", :controller => 'periods', :action => :edit, :id => @task.period) %>
<% end %>
<%=detour_to l(:new_period), :controller => 'periods', :action => :new %>
</p>



<% if @task.backlog %>

<p><label for="task_description"><%=l :task%></label><br/>
<%= text_field 'task', 'description', :size => 64, :maxlength => 80 %></p>

<% if @task.period.nil? || @task.enable_customer? %>
<p><label for="task_customer"><%=l :customer%></label><br/>
<%= text_field 'task', 'customer', :size => 64  %></p>
<% end %>

<% if @task.period.nil? || @task.track_todo? %>
<p><label for="task_initial_estimate"><%=l :estimate%></label><br/>
<%= text_field 'task', 'initial_estimate', :size => 4  %></p>
<% end %>

<% end %>
<!--[eoform:task]-->


<script type="text/JavaScript">
document.forms[0].elements[<%=@task.backlog.nil? ? 0 : @task.period.nil? ? 1 : 2%>].focus();
</script>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
backlog-0.3.0 app/views/tasks/_form.rhtml
backlog-0.3.1 app/views/tasks/_form.rhtml
backlog-0.3.2 app/views/tasks/_form.rhtml