{% if toEdit and isRepresentativeOrAdmin %}
<div class="callout margin-top-1">
<span class="label alert hide" id="msgErrorNote">{{ "You must be insert a note."|trans }}</span>
<div>
<label>{{ "Note"|trans }}:</label>
<textarea name="note" id="note" class="margin-bottom-1"></textarea>
<button type="button" class="button right width-100" id="btAddNote" data-url="{{ path('admin_orders_add_notes') }}">{{ "Add Note"|trans }}</button>
</div>
<div class="notes">
{{ include('includes/wicam-notes.html.twig',{'notes':notes}) }}
</div>
</div>
{% endif %}
<div class="headerCalendar">
</div>
<div id="mobiscroll"></div>
<div id="calendar-legend">
</div>
<br>
<form action="{{ path('wi_cam_print_offer') }}" method="post" target="_blank">
<input type="hidden" id="code-of" name="code-of" value="{{ WH is not empty ? WH.Id : "" }}">
<button type="submit" id="btPrintOffer" class="button expanded" style="display:none;" >{{ "Angebot erzeugen"|trans }}</button>
</form>
<span class="label alert hide" id="error_message_empty" style="width: 100%;margin-bottom: 1em;">{{ "Some fields are empty, please select an option."|trans }}</span>
{% if not toEdit %}
<a href="{{ path('wi_cam_create_order') }}" id="btCreateOrder" style="display:none;height: 60px; font-size: 18px;" class="button secondary expanded">
<b>{{ "Jetzt zum genannten Preis bestellen" |trans }}</b></a>
{% endif %}
<script>
/* document.querySelector('#btCreateOrder').addEventListener("click",function(e){
e.preventDefault();
alert('test');
const container = document.querySelector('#fileResponse');
const matches = container.querySelectorAll('input[type=number]');
console.log(matches);
$('#fileResponse').find('input[type=number]:visible,select:visible').each(function(){
});
var href = this.href;
//code
location.href = href;
});*/
</script>
<!--<button type="button" id="btPrintOffer" class="button expanded" style="display:none;" data-url="{{ path('wi_cam_print_offer') }}">{{ "Angebot erzeugen"|trans }}</button>-->
<style>
.circle{
display: inline-block;
min-width: 25px;
height: 25px;
padding: 1px 6px;
border-radius: 15px;
margin-right: 5px;
/* line-height: 40px; */
margin-top: 5px;
}
</style>