Fix Save PDF to repository modal window

This commit is contained in:
Luka Murn 2018-06-06 16:29:07 +02:00
parent b6c4f724db
commit e0a3b5a941
2 changed files with 11 additions and 8 deletions

View file

@ -35,18 +35,21 @@
disabled>
</select>
<% else %>
<p><%=t 'projects.reports.new.save_PDF_to_inventory_modal.no_inventories' %></p>
<br />
<p><em><%=t 'projects.reports.new.save_PDF_to_inventory_modal.no_inventories' %></em></p>
<% end %>
<div class="save-PDF-to-inventory-alerts" id="save-PDF-to-inventory-warnings"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><%=t 'general.cancel' %></button>
<button
id="savePDFtoInventorySubmit"
type="button"
class="btn btn-primary"
disabled
><%=t 'general.save' %></button>
<% if @available_repositories && @available_repositories.length > 0 %>
<button
id="savePDFtoInventorySubmit"
type="button"
class="btn btn-primary"
disabled
><%=t 'general.save' %></button>
<% end %>
</div>
</div>
</div>

View file

@ -330,7 +330,7 @@ en:
inventory: "Select inventory:"
inventory_column: "Select inventory column:"
inventory_item: "Select inventory item:"
no_inventories: "No inventories available!"
no_inventories: "No inventories to save this PDF to."
success_flash: "Report successfully saved to Inventory item."
asset_present_warning_html: "The selected cell already contains a file. If you would like to replace the file click Save. Replacing the file will have the following consequences: <ul><li>previous file will be permanently deleted;</li><li>new file will be added to the Inventory item.</li></ul>"
no_items: "Selected Inventory does not contain any items yet. Add the first item"