diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2015-03-24 22:36:55 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2015-03-24 22:36:55 -0400 |
| commit | 2647964ba77acff2963f4f448a184c7ab8e1277a (patch) | |
| tree | 4211fae21e434fa428b15cd798653468054a6476 | |
| parent | bba8f94ec2202782bfa50b00fedbf879069553a3 (diff) | |
| download | wedding-website-2647964ba77acff2963f4f448a184c7ab8e1277a.tar.gz | |
also translate the placeholders
| -rw-r--r-- | templates/login.html (renamed from templates/login.htm) | 4 | ||||
| -rw-r--r-- | templates/rsvp.html | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/templates/login.htm b/templates/login.html index 9987a0a..757aac0 100644 --- a/templates/login.htm +++ b/templates/login.html @@ -36,7 +36,7 @@ <label for="name" class="col-md-4 control-label">Name:</label> <div class="col-md-5"> <input type="text" id="name" class="form-control" - name="username" placeholder="Name"/> + name="username" placeholder="{{_('Name')}}"/> </div> </div> <div class="form-group"> @@ -44,7 +44,7 @@ Password:</label> <div class="col-md-5"> <input type="password" id="password" class="form-control" - name="password" placeholder="Password"/> + name="password" placeholder="{{_('Password')}}"/> </div> </div> {% with messages = get_flashed_messages() %} diff --git a/templates/rsvp.html b/templates/rsvp.html index 6ae08f4..c3b16fc 100644 --- a/templates/rsvp.html +++ b/templates/rsvp.html @@ -23,7 +23,7 @@ <label for="fullname" class="col-md-4 control-label">{{_("Full Name:")}}</label> <div class="col-md-5"> <input type="text" id="fullname" class="form-control" - name="full_name" placeholder="Your full name" value="{{form['full_name'] if form['full_name']}}"/> + name="full_name" placeholder="{{_('Your full name')}}" value="{{form['full_name'] if form['full_name']}}"/> </div> </div> <p> @@ -46,7 +46,7 @@ <label for="email" class="col-md-4 control-label">{{_("Email:")}}</label> <div class="col-md-5"> <input type="email" id="email" class="form-control" - name="email" placeholder="email" + name="email" placeholder="{{_('email')}}" value="{{form['email'] if form['email']}}" {% if not form['rsvp'] %}disabled{% endif %}/> </div> @@ -55,7 +55,7 @@ <label for="mailing" class="col-md-4 control-label">{{_("Mailing Address:")}}</label> <div class="col-md-5"> <textarea id="mailing" name="mailing" - placeholder="Your mailing address" + placeholder="{{_('Your mailing address')}}" value="{{form['mailing'] if form['mailing']}}" class="form-control" rows="3" {% if not form['rsvp'] %}disabled {%endif%}></textarea> </div> @@ -77,10 +77,10 @@ </div> </div> <div class="form-group"> - <label for="mailing" class="col-md-4 control-label">{{_("+1's Full Name:")}}</label> + <label for="mailing" class="col-md-4 control-label">{{_("+1’s Full Name:")}}</label> <div class="col-md-5"> <input type="text" id="plusonename" class="form-control" - name="plusonename" placeholder="+1's Name" + name="plusonename" placeholder="{{_('+1\'s Name')}}" value="{{form['plusonename'] if form['plusonename']}}" {% if not form['plusone']%}disabled{% endif %}/> </div> @@ -104,7 +104,7 @@ <div class="form-group"> <label for="mailing" class="col-md-4 control-label">Kids' names:</label> <div class="col-md-5"> - <textarea id="kidsnames" name="kidsnames" placeholder="Your kids' names" + <textarea id="kidsnames" name="kidsnames" placeholder="{{_('Your kids’ names')}}" class="form-control" rows="3" {%if not form['kids']%} disabled{% endif %}>{{form['kidsnames'] if form['kidsnames']}}</textarea> </div> @@ -116,7 +116,7 @@ <div class="form-group"> <label for="mailing" class="col-md-4 control-label">{{_("Comments:")}}</label> <div class="col-md-5"> - <textarea id="comments" name="comments" placeholder="Your comments" + <textarea id="comments" name="comments" placeholder="_{{'Your comments'}}" class="form-control" rows="3">{{form['comments'] if form['comments']}}</textarea> </div> </div> |
