feedless/app/views/mobile/secrets/_compose_multiple.ejs

37 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-04-23 08:30:22 +02:00
<div>
<button class="js-compose-secret-message new-secret-button">
<div style="font-size: 30px">✍️</div>
</button>
<div class="overlay" hidden></div>
<div class="modal" hidden>
<div class="modal-group js-step">
<div class="modal-footer">
<a href="javascript:;" class="js-modal-close" role="button">Close</a>
<button class="modal-confirm">Next</button>
</div>
<div class="modal-header">Write a secret message</div>
<div class="modal-body">
<textarea name="message" class="compose-post js-secret-message-input" style="margin: 0"></textarea>
<small style="margin: 6px">you can choose the recipients in the next step</small>
</div>
</div>
<div class="modal-group js-step" style="display: none">
<div class="modal-footer">
<a href="javascript:;" class="js-modal-back" role="button">⮃&nbsp; Back</a>
<button class="modal-confirm js-secret-publish">Send</button>
<div hidden class="js-sending-message"></div>
</div>
<div class="modal-header">Choose the recipients</div>
<div class="modal-body">
<% friends.friends.concat(friends.requestsSent).map(friend => { %>
<div>
<label>
<input type="checkbox" name="recps" class="js-secret-recipients" value="<%= friend.id %>">
<%= friend.name %>
</label>
</div>
<% }) %>
</div>
</div>
</div>
</div>