|
78 | 78 | </div>
|
79 | 79 | </legend>
|
80 | 80 |
|
| 81 | + {% if resource.digital_currency_balance == "Not accessible now" %} |
| 82 | + <div class="alert alert-warning"> |
| 83 | + <strong>{% trans "Warning:" %}</strong> |
| 84 | + {% trans "Operations with your online wallet are not available temporarily. Please, come back later." %} |
| 85 | + </div> |
| 86 | + {% endif %} |
| 87 | + |
81 | 88 | {% if agent and request.user.agent.agent.is_staff %}
|
82 | 89 | <div class="modal hide fade" id="resourceChangeForm" tabindex="-1" role="dialog" aria-labelledby="resource-change-label" aria-hidden="true">
|
83 | 90 | <div class="modal-header">
|
@@ -126,10 +133,14 @@ <h3 id="resource-change-label">{% trans "Change" %} {{ resource }}</h3>
|
126 | 133 | <table class="table table-bordered" >
|
127 | 134 | <tr>
|
128 | 135 | <th style="text-align: right;">{% trans "Balance" %}</th>
|
129 |
| - {% if not resource.digital_currency_balance = resource.digital_currency_balance_unconfirmed %} |
130 |
| - <td>{{ resource.digital_currency_balance }} (-> {{ resource.digital_currency_balance_unconfirmed }}) {{ resource.unit_of_quantity }}</td> |
| 136 | + {% if not resource.digital_currency_balance == "Not accessible now" %} |
| 137 | + {% if not resource.digital_currency_balance == resource.digital_currency_balance_unconfirmed %} |
| 138 | + <td>{{ resource.digital_currency_balance }} (-> {{ resource.digital_currency_balance_unconfirmed }}) {{ resource.unit_of_quantity }}</td> |
| 139 | + {% else %} |
| 140 | + <td>{{ resource.digital_currency_balance }} {{ resource.unit_of_quantity }}</td> |
| 141 | + {% endif %} |
131 | 142 | {% else %}
|
132 |
| - <td>{{ resource.digital_currency_balance }} {{ resource.unit_of_quantity }}</td> |
| 143 | + <td class="error"><b>{% trans "Not available now" %}</b></td> |
133 | 144 | {% endif %}
|
134 | 145 | </tr>
|
135 | 146 | {% comment %}
|
@@ -264,7 +275,11 @@ <h3 id="coinHeader" >{% trans "Send Faircoins" %}</h3>
|
264 | 275 | {% else %}
|
265 | 276 | {% csrf_token %}
|
266 | 277 | {{ send_coins_form|as_bootstrap }}
|
267 |
| - <button class="btn btn-primary" name="sendCoins" value="coins">{% trans "Send" %}</button> |
| 278 | + {% if not resource.digital_currency_balance == "Not accessible now" %} |
| 279 | + <button class="btn btn-primary" name="sendCoins" value="coins">{% trans "Send" %}</button> |
| 280 | + {% else %} |
| 281 | + <button class="btn btn-danger disabled" disabled><b>{% trans "Not available now" %}</b></button> |
| 282 | + {% endif %} |
268 | 283 | {% endif %}
|
269 | 284 | </form>
|
270 | 285 | {% endif %}
|
|
0 commit comments