Commit af6959a1 by Félicie

text field hidden

parent 4185c2d8
......@@ -14,11 +14,21 @@
<%= f.text_field :hours, :size => 15, :required => true %>
</p>
<% if User.current.allowed_to?(:edit_date_entries, @project) %>
<p>
<label><%= l(:field_spent_on) %>:</label>
<%= f.text_field :spent_on, :size => 10, :value => Date.today, :required => true %>
</p>
<% else %>
<p style="display: none;">
<%= f.text_field :spent_on, :value => Date.today %>
</p>
<% end %>
<p>
<label><%= l(:field_comments) %>:</label>
<%= f.text_field :comments, :size => 15, :maxlength => 255 %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment