File tree Expand file tree Collapse file tree 3 files changed +8
-22
lines changed
Expand file tree Collapse file tree 3 files changed +8
-22
lines changed Original file line number Diff line number Diff line change @@ -9,17 +9,15 @@ <h1>{{ request.user.first_name }} {{ request.user.last_name }}</h1>
99 {% include 'ralphuser/partials/accept_assets.html' with title="Assets to accept" action="accept" transition_id=acceptance_transition_id transition_exists=acceptance_transition_exists assets=assets_to_accept %}
1010 {% include 'ralphuser/partials/accept_assets.html' with title="Assets to loan" action="loan" transition_id=loan_transition_id transition_exists=loan_transition_exists assets=assets_to_loan %}
1111
12+ {% if managing_devices_moved_info %}
13+ {{ managing_devices_moved_info|safe }}
14+ {% endif %}
15+
1216 < h5 > {% trans 'Assigned assets' %}:</ h5 >
1317 {% table asset_list.get_table_content %}
1418
15- < h5 > {% trans 'Assigned SIM cards' %}:</ h5 >
16- {% table simcard_list.get_table_content %}
17-
1819 < h5 > {% trans 'Assigned licences' %}:</ h5 >
1920 {% table licence_list.get_table_content %}
2021
21- {% for link in my_equipment_links %}
22- < a href ="{{ link.url }} "> {{ link.name }}</ a > < br />
23- {% endfor %}
2422 </ div >
2523{% endblock %}
Original file line number Diff line number Diff line change @@ -191,22 +191,6 @@ def get_context_data(self, **kwargs):
191191 if settings .MY_EQUIPMENT_SHOW_BUYOUT_DATE :
192192 asset_fields += ['buyout_date' ]
193193
194- if settings .MY_EQUIPMENT_REPORT_FAILURE_URL :
195- asset_fields += ['report_failure' ]
196-
197- if settings .MY_EQUIPMENT_BUYOUT_URL and settings .MY_EQUIPMENT_SHOW_BUYOUT_DATE : # noqa
198- asset_fields += ['buyout_ticket' ]
199-
200- warehouse_stocktaking_enabled = BackOfficeAsset .objects .filter (
201- user = self .request .user , warehouse__stocktaking_enabled = True
202- ).exists ()
203- region_stocktaking_enabled = BackOfficeAsset .objects .filter (
204- user = self .request .user , region__stocktaking_enabled = True
205- ).exists ()
206-
207- if warehouse_stocktaking_enabled or region_stocktaking_enabled :
208- asset_fields += ['confirm_ownership' ]
209-
210194 context ['asset_list' ] = MyEquipmentAssetList (
211195 self .get_asset_queryset (),
212196 asset_fields ,
@@ -223,6 +207,9 @@ def get_context_data(self, **kwargs):
223207 ],
224208 request = self .request ,
225209 )
210+ context ['managing_devices_moved_info' ] = (
211+ settings .MANAGING_DEVICES_MOVED_INFO
212+ )
226213
227214 context ['simcard_list' ] = AssignedSimcardsList (
228215 self .get_simcard_queryset (),
Original file line number Diff line number Diff line change @@ -442,6 +442,7 @@ def get_sentinels(sentinels_string):
442442# {'url': 'http://....', 'name': 'Link name'},
443443# ]
444444MY_EQUIPMENT_LINKS = json .loads (os .environ .get ('MY_EQUIPMENT_LINKS' , '[]' ))
445+ MANAGING_DEVICES_MOVED_INFO = os .environ .get ('MANAGING_DEVICES_MOVED_INFO' , '' ) # noqa
445446MY_EQUIPMENT_REPORT_FAILURE_URL = os .environ .get ('MY_EQUIPMENT_REPORT_FAILURE_URL' , '' ) # noqa
446447MY_EQUIPMENT_SHOW_BUYOUT_DATE = bool_from_env ('MY_EQUIPMENT_SHOW_BUYOUT_DATE' )
447448MY_EQUIPMENT_BUYOUT_URL = os .environ .get ('MY_EQUIPMENT_BUYOUT_URL' , '' )
You can’t perform that action at this time.
0 commit comments