Commit e9e3fef7 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs

Fix design issues (coscine/issues#230)

parent d05f3cf1
......@@ -6,7 +6,7 @@
<div class="col-xl-8">
<h1 class="headline">
{{ $t('headline') }}
<img class="logo" :src="coscineImage" alt />
<img class="logo" :src="coscineImage" v-if="imageEnabled" alt />
<span class="keyword">CoScInE</span>
</h1>
<div class="row">
......@@ -18,7 +18,7 @@
<h5 class="card-title">{{ $t('description_help_headline') }}</h5>
<p class="card-text">
{{ $t('description_help') }}
<a href="servicedesk@itc.rwth-aachen.de">Servicedesk</a>
<a href="mailto:servicedesk@itc.rwth-aachen.de">Servicedesk</a>
</p>
</div>
</div>
......@@ -62,8 +62,10 @@ import LoginForm from './components/LoginForm.vue';
import imagePath from './assets/RWTH_Piktogramm_Ich_statt_man.png';
let scriptPath = '';
let imageEnabled = false;
if (document.currentScript !== undefined) {
scriptPath = (document.currentScript as any).src as string;
imageEnabled = true;
}
const scriptUrl = (scriptPath === '') ? '/' : scriptPath.substring(0, scriptPath.indexOf('app.js'));
......@@ -86,6 +88,7 @@ export default Vue.extend({
data() {
return {
coscineImage: scriptUrl + imagePath.substring(1),
imageEnabled,
returnUrl: getReturnUrl(),
currentInputCard: 'LoginMain',
};
......
......@@ -3,7 +3,9 @@
<form :action="returnUrl" method="post">
<h5 class="card-title">{{ $t('login_form_headline') }}</h5>
<div class="row">
<input data-val="true" data-val-required="$t('login_form_id_required')" id="userId" name="UserId" type="text" value="" class="form-control" />
<input data-val="true" data-val-required="$t('login_form_id_required')" id="userId" placeholder="User ID" name="UserId" type="text" value="" class="form-control" />
</div>
<div style="height: 5.5px;">
</div>
<div class="row">
<input type="Submit" :value="$t('login_form_submit')" class="submit btn btn-primary w-100" />
......
import Vue from 'vue';
import App from './App.vue';
import jQuery from 'jquery';
import BootstrapVue from 'bootstrap-vue';
import '@itcenter-layout/bootstrap/dist/css/rwth-theme.css';
import '@itcenter-layout/bootstrap/dist/css/material-icons.css';
import locales from './locale/locales';
......@@ -8,6 +9,7 @@ import VueI18n from 'vue-i18n';
Vue.config.productionTip = false;
Vue.use(BootstrapVue);
Vue.use(VueI18n);
jQuery(() => {
......
......@@ -3,6 +3,9 @@ module.exports = {
disableHostCheck: true,
},
configureWebpack: {
devtool: 'source-map'
devtool: 'source-map',
devServer: {
port: 9432,
}
},
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment