2019-10-08 17:15:06 +02:00
|
|
|
<MessageForm :mustencrypt="{{ $mustencrypt ? 'true' : 'false' }}" :possible="{{ $possible ? 'true' : 'false' }}" inline-template>
|
2020-03-16 17:01:39 +01:00
|
|
|
<form action="{{ url('store') }}" method="post" @submit="encrypt" id="messageForm" v-if="possible" enctype="multipart/form-data">
|
2019-10-08 17:15:06 +02:00
|
|
|
{{ $crsf }}
|
|
|
|
<div class="contact-form">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label col-sm-5" for="message">Quoi de neuf aujourd'hui ?</label>
|
|
|
|
<div class="col-sm-10">
|
|
|
|
<Autocomplete hasLabel="false" id="message" name="message" rows="5" placeholder="Que s'est-il passé aujourd'hui ?" textarea="true" />
|
2020-03-16 17:01:39 +01:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-10">
|
2019-10-08 17:15:06 +02:00
|
|
|
<span class="text-danger"></span>
|
2020-03-16 17:01:39 +01:00
|
|
|
<input type="file" name="file" id="file" class="input-file" v-on:change="fileNameChanged($event.target.name, $event.target.files)">
|
|
|
|
<label for="file" class="btn btn-tertiary js-labelFile">
|
|
|
|
<i v-bind:class="uploadClass"></i>
|
|
|
|
<span class="js-fileName" v-html:imageLabel="imageLabel"></span>
|
|
|
|
</label>
|
2019-10-08 17:15:06 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
|
|
<button type="submit" class="btn btn-primary ml-auto">J'enregistre ma journée</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</MessageForm>
|