mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Add option to make stock-table read-only
- Default table is not read-only
This commit is contained in:
		| @@ -3,6 +3,8 @@ | ||||
| <div id='button-toolbar'> | ||||
|     <div class='button-toolbar container-fluid' style='float: right;'> | ||||
|         <button class='btn btn-default' id='stock-export' title='Export Stock Information'>{% trans "Export" %}</button> | ||||
|         {% if read_only %} | ||||
|         {% else %} | ||||
|         <button class="btn btn-success" id='item-create'>{% trans "New Stock Item" %}</button> | ||||
|         <div class="dropdown" style='float: right;'> | ||||
|             <button id='stock-options' class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">{% trans "Options" %}<span class="caret"></span></button> | ||||
| @@ -15,6 +17,7 @@ | ||||
|                 <li><a href='#' id='multi-item-delete' title='Delete selected items'>{% trans "Delete Stock" %}</a></li> | ||||
|             </ul> | ||||
|         </div> | ||||
|         {% endif %} | ||||
|     </div> | ||||
| </div> | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user