Add minimal templates to handle invitation response

master
Daniel Berteaud 11 years ago
parent 67c7ac4438
commit 626fd86cdd
  1. 36
      templates/default/invitation.html.ep
  2. 15
      templates/default/invitation_thanks.html.ep

@ -0,0 +1,36 @@
% title $self->l('INVITATION');
%= include 'header'
%= include 'public_toolbar'
<div class="container-fluid">
<div class="well">
<form role="form" action="<%= $self->get_url('/invitation') %>" method="post">
<legend>
<center>
<%=l 'INVITATION_RESPONSE' %>
</center>
</legend>
<center>
<%=l 'JOIN_OR_LEAVE_A_MESSAGE' %>
</center>
<br>
<input name="id" type="hidden" value="<%= $inviteId %>"/>
<div class="form-group">
<label for="response"><%=l 'WILL_YOU_JOIN' %></label>
<select name="response" id="response" class="form-control">
<option value="later"><%=l 'WILL_TRY_TO_JOIN_LATER' %></option>
<option value="decline"><%=l 'WONT_BE_ABL_TO_JOIN' %></option>
</select>
</div>
<div class="form-group">
<label for="message"><%=l 'MESSAGE' %></label>
<textarea name="message" id="message" class="form-control" rows="5" placeholder="<%=l 'DONT_WAIT_FOR_ME' %>"></textarea>
</div>
<div class="btn-group">
<a class="btn btn-primary btn-lg" role="button" href="<%= $self->get_url('/') . $room %>"><%=l 'JOIN_THIS_ROOM' %></a>
<button type="submit" class="btn btn-default btn-lg"><%=l 'SUBMIT' %></button>
</div>
</form>
</div>
</div>
%= include 'js_common'
%= include 'footer'

@ -0,0 +1,15 @@
% title $self->l('INVITATION');
%= include 'header'
%= include 'public_toolbar'
<div class="container-fluid">
<br/>
<div class="jumbotron">
<h2><%=l 'MESSAGE_SENT' %></h2>
<p><%=l 'ORGANIZER_WILL_GET_YOUR_MESSAGE' %></p>
<div class='btn-group'>
<a class="btn btn-primary btn-lg" role="button" href="<%= $self->get_url('/') %>"><%=l 'BACK_TO_MAIN_MENU' %></a>
</div>
</div>
</div>
%= include 'js_common'
%= include 'footer'
Loading…
Cancel
Save