added a lot of translations and fixed profile and navbar
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
<section class="section">
|
||||
|
||||
|
||||
<h1 class="title">{{ $t('Manage recorders') }}</h1>
|
||||
<h1 class="title">{{ $t('Manage_recorders') }}</h1>
|
||||
<p class="lead">
|
||||
{{ $t('List, create and delete') }} <strong>{{ $t('recorders') }}</strong> and {{ $t('recordermodels')
|
||||
{{ $t('List_create_and_delete') }} <strong>{{ $t('recorders') }}</strong> {{$t('and')}} {{ $t('recorder_models')
|
||||
}}
|
||||
</p>
|
||||
<br/>
|
||||
@@ -15,9 +15,9 @@
|
||||
<b-tab title="Recorder list" active>
|
||||
<template slot="title">
|
||||
<font-awesome-icon icon="list"/> <font-awesome-icon icon="circle"/>
|
||||
<strong>Recorder</strong> list
|
||||
<strong>{{$t('Recorders')}}</strong> {{$t('list')}}
|
||||
</template>
|
||||
<p>{{ $t('There are')}} {{recorders.length}} {{ $t('recorders defined')}}:</p>
|
||||
<p>{{ $tc('recorders_defined', recorders.length, {num: recorders.length})}}:</p>
|
||||
<b-card-group deck>
|
||||
<b-card class="mb-2" style="max-width: 30rem; min-width:20rem;"
|
||||
v-for="(recorder) in recorders"
|
||||
@@ -307,11 +307,12 @@
|
||||
|
||||
<hr/>
|
||||
|
||||
<strong>{{ $t('Virtual commands') }}:</strong>
|
||||
<strong>{{ $t('virtual_commands') }}:</strong>
|
||||
|
||||
<b-list-group v-if="recorder.virtual_commands.length"
|
||||
style="max-height: 400px; overflow-y:scroll;">
|
||||
<b-list-group-item v-for="command in recorder.virtual_commands">
|
||||
<b-list-group-item v-for="command in recorder.virtual_commands"
|
||||
v-bind:key="command.id">
|
||||
{{command.name}}
|
||||
</b-list-group-item>
|
||||
|
||||
@@ -345,7 +346,7 @@
|
||||
<strong>{{ $t('Recorder') }}</strong>
|
||||
</template>
|
||||
<b-card-text>
|
||||
<p>{{ $t('Create a new recorder')}}:</p>
|
||||
<p>{{ $t('Create_a_new_recorder')}}:</p>
|
||||
<!-- form starts here -->
|
||||
<form v-on:submit.prevent="saveRecorder()">
|
||||
<section class="form">
|
||||
@@ -357,7 +358,7 @@
|
||||
v-model="form.name"
|
||||
v-validate="'required|min:3'"
|
||||
v-bind:class="{'is-danger': errors.has('name'), 'is-invalid': errors.has('name')}"
|
||||
class="form-control" type="text" placeholder="Recorder name"
|
||||
class="form-control" type="text" :placeholder="$t('Recorder_name')"
|
||||
required>
|
||||
</div>
|
||||
<p class="col-sm-4" v-show="errors.has('name')">
|
||||
@@ -370,7 +371,7 @@
|
||||
<label class="label col-sm-2 col-form-label">{{ $t('description') }}</label>
|
||||
<div class="col-sm-6">
|
||||
<textarea class="textarea form-control"
|
||||
placeholder="Comments, remarks, notes, etc."
|
||||
:placeholder="$t('Comments') +', ' + $t('notes') + ', etc.'"
|
||||
v-model="form.description"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
@@ -398,7 +399,7 @@
|
||||
v-validate="'ip'"
|
||||
v-model="form.ip"
|
||||
v-bind:class="{'is-danger': errors.has('ip'), 'is-invalid': errors.has('ip')}"
|
||||
class="form-control" type="text" placeholder="Recorder IP">
|
||||
class="form-control" type="text" :placeholder="$t('Recorder') + ' ' + $t('ip')">
|
||||
</div>
|
||||
<p class="col-sm-4" v-show="errors.has('ip')">
|
||||
{{ errors.first('ip') }}
|
||||
@@ -406,13 +407,13 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="label col-sm-2 col-form-label">{{ $t('ip v6') }}</label>
|
||||
<label class="label col-sm-2 col-form-label">{{ $t('ipv6') }}</label>
|
||||
<div class="col-sm-6">
|
||||
<input name="ip6"
|
||||
v-validate="'ip:6'"
|
||||
v-model="form.ip6"
|
||||
v-bind:class="{'is-danger': errors.has('ip6'), 'is-invalid': errors.has('ip6')}"
|
||||
class="form-control" type="text" placeholder="Recorder IPv6">
|
||||
class="form-control" type="text" :placeholder="$t('Recorder') + ' ' + $t('ipv6')">
|
||||
</div>
|
||||
<p class="col-sm-4" v-show="errors.has('ip6')">
|
||||
{{ errors.first('ip6') }}
|
||||
@@ -450,10 +451,10 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="label col-sm-2 col-form-label">{{ $t('recorder_model') }}</label>
|
||||
<label class="label col-sm-2 col-form-label">{{ $t('Model') }}</label>
|
||||
<div class="col-sm-6">
|
||||
<select class="form-control" v-model="form.recorder_model_id">
|
||||
<option disabled value="">No recorder_model selected</option>
|
||||
<option disabled value="">{{$t('No_recorder_model_selected')}}</option>
|
||||
<option v-for="recorderModel in recorderModels"
|
||||
v-bind:value="recorderModel.id">
|
||||
{{ recorderModel.name }}
|
||||
@@ -484,7 +485,7 @@
|
||||
>
|
||||
</div>
|
||||
<p class="col-sm-4">
|
||||
{{ $t('username') }} {{$t('may be left blank (-> recorder model)')}}
|
||||
{{$t('may_be_left_blank')}} (-> {{$t('Model')}})
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -498,7 +499,7 @@
|
||||
>
|
||||
</div>
|
||||
<p class="col-sm-4">
|
||||
{{ $t('password') }} {{$t('may be left blank (-> recorder model)')}}
|
||||
{{$t('may_be_left_blank')}} (-> {{$t('Model')}})
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -520,10 +521,10 @@
|
||||
</b-tab>
|
||||
<b-tab title="Recorder model list">
|
||||
<template slot="title">
|
||||
<font-awesome-icon icon="list"/> Recorder <font-awesome-icon icon="scroll"/>
|
||||
<strong>Model</strong> <i>list</i>
|
||||
<font-awesome-icon icon="list"/> {{$t('Recorder')}} <font-awesome-icon icon="scroll"/>
|
||||
<strong>{{$t('Model')}}</strong> <i>{{$t('list')}}</i>
|
||||
</template>
|
||||
<p>{{ $t('There are')}} {{recorderModels.length}} {{ $t('recorder models defined')}}:</p>
|
||||
<p>{{ $tc('recorder_models_defined', recorderModels.length, {num: recorderModels.length} ) }}:</p>
|
||||
<b-card-group deck>
|
||||
<b-card class="mb-2" style="max-width: 30rem; min-width:20rem;"
|
||||
v-for="(recorderModel) in recorderModels"
|
||||
@@ -558,10 +559,12 @@
|
||||
<hr/>
|
||||
|
||||
<b-list-group style="max-height: 400px; overflow-y:scroll;">
|
||||
<strong>Recorder Model {{ $t('Commands') }}:</strong>
|
||||
<b-list-group-item v-for="command in recorderModel.commands">
|
||||
<strong>Recorder Model {{ $t('commands') }}:</strong>
|
||||
<b-list-group-item v-for="command in recorderModel.commands"
|
||||
v-bind:key="command.id">
|
||||
{{command.name}}
|
||||
<b-badge v-for="(a_type, arg) in command.parameters"
|
||||
v-bind:key="arg"
|
||||
v-if="command.parameters !== null" style="margin-right: 10px;">
|
||||
<small>{{arg}}: {{a_type}}</small>
|
||||
</b-badge>
|
||||
|
||||
Reference in New Issue
Block a user