Skip to content

Commit

Permalink
fixing html viewing
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandor4b committed Jun 10, 2024
1 parent c88fe47 commit 64de498
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions app_company/templates/app_company/service-order.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,30 +88,32 @@ <h1>Solicitação {{service_order.id}}</h1>
<label>Deseja assumir a OS?</label>
<button type="submit" name="assume" class="assume" value="true">Assumir OS</button>
{% endif %}
{% endif %}


{% if user.role == 'A' %}
<div class="technicianContainer">
<label for="tecnician">Designar Técnico:</label>
<select name="tecnician" id="tecnician" placeholder="Escolher Técnico">
<option value="" selected disabled>
Escolher Técnico
</option>
{% for tec in employees %}
<option
value="{{ tec.id }}"
{% if service_order.employee and service_order.employee.first_name == tec.first_name %}
selected
{% endif %}
>
{{ tec.first_name }}
</option>
{% endfor %}
</select>
</div>

<label>Deseja assumir a OS?</label>
<button type="submit" name="assume" class="assume" value="true">Assumir OS</button>
{% endif %}

{% if user.role == 'A' %}
<div class="technicianContainer">
<label for="tecnician">Designar Técnico:</label>
<select name="tecnician" id="tecnician" placeholder="Escolher Técnico">
<option value="" selected disabled>
Escolher Técnico
</option>
{% for tec in employees %}
<option
value="{{ tec.id }}"
{% if service_order.employee and service_order.employee.first_name == tec.first_name %}
selected
{% endif %}
>
{{ tec.first_name }}
</option>
{% endfor %}
</select>
</div>

<label>Deseja assumir a OS?</label>
<button type="submit" name="assume" class="assume" value="true">Assumir OS</button>
{% endif %}
<br>
<button class="update" type="submit">Atualizar</button>
Expand Down

0 comments on commit 64de498

Please sign in to comment.