Skip to content

Commit

Permalink
Translation of login templates console 2535 story
Browse files Browse the repository at this point in the history
  • Loading branch information
sg00dwin committed Mar 29, 2021
1 parent e8631c0 commit 8a28cbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions _layouts/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</header>
<main class="pf-c-login__main">
<header class="pf-c-login__main-header">
<h1 class="pf-c-title pf-m-3xl">Log in to your account</h1>
<h1 class="pf-c-title pf-m-3xl">{{ .Locale.LogInToYourAccount }}</h1>
</header>
<div class="pf-c-login__main-body">
{% raw %}<form class="pf-c-form" role="form" action="{{ .Action }}" method="POST">
Expand All @@ -28,26 +28,26 @@ <h1 class="pf-c-title pf-m-3xl">Log in to your account</h1>
</div>
<div class="pf-c-form__group">
<label class="pf-c-form__label" for="inputUsername">
<span class="pf-c-form__label-text">Username</span>
<span class="pf-c-form__label-text">{{ .Locale.Username }}</span>
<span class="pf-c-form__label-required" aria-hidden="true">*</span>
</label>
<input type="text" class="pf-c-form-control" id="inputUsername" placeholder="" tabindex="1" autofocus="autofocus" type="text" name="{{ .Names.Username }}" value="{{ .Values.Username }}">
</div>
<div class="pf-c-form__group">
<label class="pf-c-form__label" for="inputPassword">
<span class="pf-c-form__label-text">Password</span>
<span class="pf-c-form__label-text">{{ .Locale.Password }}</span>
<span class="pf-c-form__label-required" aria-hidden="true">*</span>
</label>
<input type="password" class="pf-c-form-control" id="inputPassword" placeholder="" tabindex="2" type="password" name="{{ .Names.Password }}" value="">
</div>
<div class="pf-c-form__group pf-m-action">
<button class="pf-c-button pf-m-primary pf-m-block" type="submit" tabindex="3">Log in</button>
<button class="pf-c-button pf-m-primary pf-m-block" type="submit" tabindex="3">{{ .Locale.LogIn }}</button>
</div>
</form>{% endraw %}
</div>
</main>
<footer class="pf-c-login__footer">
<p>Welcome to {{ collection.name }}.</p>
<p>{{ .Locale.WelcomeTo }} {{ collection.name }}.</p>
</footer>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions _layouts/providers.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
<main class="pf-c-login__main">
<div class="pf-c-login__main-body">
{% raw %}{{ if eq (len .Providers) 1}}
<a class="pf-c-button pf-m-primary pf-m-block" href="{{ (index .Providers 0).URL }}">Log In</a>
<a class="pf-c-button pf-m-primary pf-m-block" href="{{ (index .Providers 0).URL }}">{{ .Locale.LogIn }}</a>
{{ else }}
<h1 class="pf-c-title pf-m-3xl">Log in with&hellip;</h1>
<h1 class="pf-c-title pf-m-3xl">{{ .Locale.LogInWith }}&hellip;</h1>
<ul>
{{ range $provider := .Providers }}
<li class="idp">
<a href="{{$provider.URL}}" class="pf-c-button pf-m-secondary pf-m-block" title="Log in with {{$provider.Name}}">{{$provider.Name}}</a>
<a href="{{$provider.URL}}" class="pf-c-button pf-m-secondary pf-m-block" title="{{ .Locale.LogInWith }} {{$provider.Name}}">{{$provider.Name}}</a>
</li>
{{ end }}
</ul>
Expand Down

0 comments on commit 8a28cbc

Please sign in to comment.