Use webpack instead of require.js for LDAP authentication.

Removing Japanese hardcoded strings (Needs gettext loading code).
This commit is contained in:
Gunther Brunner
2015-06-30 19:44:04 +09:00
parent 15a6a1ab24
commit c588dd87c6
15 changed files with 77 additions and 130 deletions

View File

@@ -1,11 +1,11 @@
doctype html
html
html(ng-app='app')
head
title STF
base(href='/')
meta(charset='utf-8')
meta(name='viewport', content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui')
include partials/styles
body(ng-cloak)
div(ng-view)
script(src='static/bower_components/requirejs/require.js', data-main='static/auth/ldap/scripts/main.js')
script(src='static/app/build/entry/commons.entry.js')
script(src='static/app/build/entry/authldap.entry.js')

View File

@@ -1,36 +0,0 @@
.login2
.login-wrapper
a(href='./')
img(width='160', height='160', src='/static/logo/exports/STF-512.png', title='STF')
form(name='signin', novalidate, ng-submit='submit()')
.alert.alert-danger(ng-show='error')
span(ng-show='error.$invalid') 下記エラーを確認してください
//span(ng-show='error.$invalid') Check errors below
span(ng-show='error.$incorrect') ユーザー名とパスワードが間違っています
//span(ng-show='error.$incorrect') Incorrect login details
span(ng-show='error.$system') システム・エラー
//span(ng-show='error.$system') System error
.form-group
.input-group
span.input-group-addon
i.fa.fa-user
input.form-control(ng-model='username', name='username', required, type='text', placeholder='LDAPユーザ名',
autocorrect='off', autocapitalize='off', spellcheck='false', autocomplete='section-login username')
.alert.alert-warning(ng-show='signin.username.$dirty && signin.username.$invalid')
span(ng-show='signin.username.$error.required') LDAPユーザ名を入力してください
//span(ng-show='signin.username.$error.required') Please enter your LDAP username
.form-group
.input-group
span.input-group-addon
i.fa.fa-lock
input.form-control(ng-model='password', name='password', required, type='password', placeholder='パスワード',
autocorrect='off', autocapitalize='off', spellcheck='false', autocomplete='section-login current-password')
.alert.alert-warning(ng-show='signin.password.$dirty && signin.password.$invalid')
span パスワードを入力してください
//span Please enter your password
input.btn.btn-lg.btn-primary.btn-block(type='submit', value='ログイン')
//input.btn.btn-lg.btn-primary.btn-block(type='submit', value='Log in')

View File

@@ -1,6 +0,0 @@
link(href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700', media='all', rel='stylesheet', type='text/css')
link(rel='stylesheet', href='/static/bower_components/se7en-bootstrap-3/build/stylesheets/bootstrap.min.css')
link(rel='stylesheet', href='/static/bower_components/se7en-bootstrap-3/build/stylesheets/se7en-font.css')
link(rel='stylesheet', href='/static/bower_components/se7en-bootstrap-3/build/stylesheets/style.css')
link(rel='stylesheet', href='/static/bower_components/se7en-bootstrap-3/build/stylesheets/font-awesome.min.css')
link(rel='stylesheet', href='/static/auth/ldap/styles/login.css')