lufi/themes/default/templates/invitations/invite.html.ep

63 lines
1.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

% # vim:set sw=4 ts=4 sts=4 ft=html.epl expandtab:
<div class="box">
% if (scalar(@{$self->stash('fails')})) {
<div class="message is-error">
<div class="message-body">
% for my $msg (@{$self->stash('fails')}) {
<%= $msg %>
% }
</div>
</div>
% }
% if (scalar(@{$self->stash('success')})) {
<div class="message is-success">
<div class="message-body">
<p class="content">
% for my $msg (@{$self->stash('success')}) {
<%= $msg %>
% }
</p>
</div>
</div>
% }
<h1 class="title is-1"><%= l('Invite a guest') %></h1>
<div class="message is-info">
<div class="message-body">
<p>
<%= l('You can invite someone to send you files through this Lufi instance even if they dont have an account on it.') %>
</p>
% if (stash('send_with_user_email')) {
<p>
<%= l('The invitation mail will be send from your email address (%1).', stash('user_mail')) %>
</p>
% }
</div>
</div>
<form class="field invite-form" method="post">
<div class="field">
<label class="label" for="guest_mail">
<%= l('Email address of your guest') %>
</label>
<div class="control">
<input class="input" id="guest_mail" name="guest_mail" type="email" placeholder="name@example.org" required>
</div>
</div>
<div class="field">
<label class="label" for="expire_at">
<%= l('How many days would you like the invitation to be valid?') %>
</label>
<div class="control">
<input class="input" id="expire_at" name="expire_at" type="number" min="1" max="<%= stash('max_expire_at') %>" step="1" value="<%= stash('max_expire_at') %>" required>
</div>
</div>
<div class="field">
<div class="control has-text-centered">
<button class="button is-primary" type="submit"><%= l('Send the invitation') %></button>
</div>
</div>
</form>
</div>