      <template name="subscriptionOk">
          <!--{{> loginButtons}}-->
      </template>

      <template name="main">

        {{#if Template.subscriptionsReady }}

          {{>subscriptionOk}}

          {{#if currentUser}}

            <form id="edit">
                <input type="button" value="log out" id="clickLogOut">
                <label for="editMail">Connected as : <br></label>
                <input type="text" value="{{currentEmail}}" id="editMail" name="editMail">
                <input type="button" value="Change email" id="editMailButton">
            </form>

              {{> calendar}}
              {{else}}

              <div>
                <form id="login" class="formulaire">
                  <fieldset>
                    <label for="Username">Username or Email<br></label>
                    <input id="Username" name="Username" type="text">
                    <label for="Password">Password<br></label>
                    <input id="Password" name="Password" type="password">
                    <a href="/forgot">forgot password<br></a>
                    <input type="submit" value="Log In">
                    <input type="button" value="Create Account" id="Create">
                  </fieldset>
                </form>
              </div>

              <div>
                <form id="register" class="formulaire">
                  <fieldset>
                    <label for="Username">Username<br></label>
                    <input id="rUsername" name="Username" type="text">
                    <label for="Email">Email<br></label>
                    <input id="rEmail" name="Email" type="text">
                    <label for="Password">Password<br></label>
                    <input id="rPassword" name="Password" type="password">
                    <label for="Confirm">Confirm password<br></label>
                    <input id="rConfirm" name="Confirm" type="password">
                    <a href="/forgot">forgot password<br></a>
                    <input type="submit" value="Register">
                    <input type="button" value="Log in" id="Auth">
                  </fieldset>
                  <div id="createError"></div>
                </form>
              </div>

          {{/if}}

        {{/if}}

      </template>
