Implemented Quantity
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
<div class="box tabular">
|
||||
<div class="splitcontent">
|
||||
<div class="splitcontentleft">
|
||||
<p><%= f.text_field :shortname, required: true, size: 10 %></p>
|
||||
<p><%= f.text_field :shortname, required: true, size: 20 %></p>
|
||||
</div>
|
||||
<div class="splitcontentright">
|
||||
<p><%= f.text_field :name, size: 40 %></p>
|
||||
<p><%= f.text_field :name, size: 60 %></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<h2>UnitsController#create</h2>
|
||||
@@ -1 +0,0 @@
|
||||
<h2>UnitsController#destroy</h2>
|
||||
@@ -3,11 +3,9 @@
|
||||
<% end %>
|
||||
|
||||
<div class="contextual">
|
||||
<% if User.current.allowed_to?(:manage_units, @project) %>
|
||||
<% if User.current.allowed_to?(:manage_common, @project) %>
|
||||
<%= link_to t(".heading_new_unit"), '#', :class => 'icon icon-add',
|
||||
:onclick => 'showAndScrollTo("add-unit", "unit_shortname"); return false;' %>
|
||||
<%= link_to t(".heading_import"), import_project_units_path(@project), method: :post,
|
||||
:class => 'icon icon-duplicate' %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -39,9 +37,7 @@
|
||||
<tr id="unit-<%= u.id %>" class="unit">
|
||||
<td class="shortname"><%= u.shortname %></td>
|
||||
<td class="unitname"><%= u.name %></td>
|
||||
<td>
|
||||
<%= delete_link unit_path(u), data: {} %>
|
||||
</td>
|
||||
<td><%= delete_link unit_path(u), data: {} %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user