changeset 1803:975a7de89f05

define stretches WIP
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 15 Jan 2019 12:18:17 +0100
parents 70573eea890e
children 535a1a40f1df
files client/src/components/ImportStretches.vue client/src/locale/translations.json client/yarn.lock
diffstat 3 files changed, 132 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/ImportStretches.vue	Tue Jan 15 09:50:59 2019 +0100
+++ b/client/src/components/ImportStretches.vue	Tue Jan 15 12:18:17 2019 +0100
@@ -1,9 +1,125 @@
 <template>
-  <div>
+  <div class="d-flex flex-column mb-3">
     <h6 class="mb-0 py-2 px-3 border-bottom d-flex align-items-center">
       <font-awesome-icon icon="road" class="mr-2"></font-awesome-icon>
       <translate>Define section and stretches</translate>
     </h6>
+    <div class="ml-3 mr-3 w-75">
+      <div class="mt-1 text-left">
+        <small class="text-muted"> <translate>ID</translate> </small>
+        <input
+          id="id"
+          type="text"
+          class="form-control"
+          placeholder="ID"
+          aria-label="id"
+          v-model="id"
+        />
+        <span class="text-left text-danger">
+          <small v-if="!id"> <translate>Please enter an id</translate> </small>
+        </span>
+      </div>
+      <div class="d-flex flex-row  justify-content-between">
+        <div class="mt-1 mr-3 text-left">
+          <small class="text-muted"> <translate>Start rhm</translate> </small>
+          <input
+            id="startrhm"
+            type="text"
+            class="form-control"
+            placeholder="ATXXX00001000000019900"
+            aria-label="startrhm"
+            v-model="startrhm"
+          />
+          <span class="text-left text-danger">
+            <small v-if="!startrhm">
+              <translate>Please enter a start point</translate>
+            </small>
+          </span>
+        </div>
+        <div class="mt-1 text-left">
+          <small class="text-muted"> <translate>End rhm</translate> </small>
+          <input
+            id="endrhm"
+            type="text"
+            class="form-control"
+            placeholder="ATXXX00001000000019900"
+            aria-label="endrhm"
+            v-model="endrhm"
+          />
+          <span class="text-left text-danger">
+            <small v-if="!id">
+              <translate>Please enter an end point</translate>
+            </small>
+          </span>
+        </div>
+      </div>
+      <div class="d-flex flex-row justify-content-between">
+        <div class="mt-1 mr-3 text-left">
+          <small class="text-muted"> <translate>Object name</translate> </small>
+          <input
+            id="objbn"
+            type="text"
+            class="form-control"
+            placeholder=""
+            aria-label="objbn"
+            v-model="objbn"
+          />
+          <span class="text-left text-danger">
+            <small v-if="!id">
+              <translate>Please enter an objectname</translate>
+            </small>
+          </span>
+        </div>
+        <div class="mt-1 text-left">
+          <small class="text-muted">
+            <translate>National Object name</translate>
+          </small>
+          <input
+            id="nobjbn"
+            type="text"
+            class="form-control"
+            placeholder=""
+            aria-label="nobjbn"
+            v-model="nobjbn"
+          />
+          <span class="text-left text-danger">
+            <small v-if="!id">
+              <translate>Please enter an objectname</translate>
+            </small>
+          </span>
+        </div>
+      </div>
+      <div class="mt-1 text-left">
+        <small class="text-muted"> <translate>Date info</translate> </small>
+        <input
+          id="date_info"
+          type="date"
+          class="form-control"
+          placeholder="date_info"
+          aria-label="date_info"
+          v-model="date_info"
+        />
+        <span class="text-left text-danger">
+          <small v-if="!id"> <translate>Please enter a date</translate> </small>
+        </span>
+      </div>
+      <div class="mt-1 text-left">
+        <small class="text-muted"> <translate>Source</translate> </small>
+        <input
+          id="source"
+          type="text"
+          class="form-control"
+          placeholder="source"
+          aria-label="source"
+          v-model="source"
+        />
+        <span class="text-left text-danger">
+          <small v-if="!id">
+            <translate>Please enter a source</translate>
+          </small>
+        </span>
+      </div>
+    </div>
   </div>
 </template>
 
@@ -25,7 +141,16 @@
 export default {
   name: "importstretches",
   data() {
-    return {};
+    return {
+      id: "",
+      function: "",
+      startrhm: 0,
+      endrhm: 0,
+      objbn: "",
+      nobjbn: "",
+      date_info: null,
+      source: ""
+    };
   },
   methods: {}
 };
--- a/client/src/locale/translations.json	Tue Jan 15 09:50:59 2019 +0100
+++ b/client/src/locale/translations.json	Tue Jan 15 12:18:17 2019 +0100
@@ -1,1 +1,1 @@
-{"bg_BG":{},"de_AT":{"Accepted":"Akzeptiert","Accesslog":"Zugriffs-Protokoll","Add User":"Benutzer hinzufügen","Author":"Autor","back to login":"zurück zur Anmeldung","Backend Error":"Server-Fehler","Bottleneck":"Seichtstelle","Bottleneck Areas fill-color":"Flächenfüllfarbe Seichtstelle","Bottleneck Areas stroke-color":"Flächenumrandungsfarbe Seichtstelle","Bottlenecks":"Seichtstellen","Cancel Upload":"Hochladen abbrechen","Chainage":"Stationierung","choose .zip- file":"Wählen Sie eine .zip Datei","Chose format:":"Format wählen:","Compare with":"Vergleiche mit","Configuration":"Konfiguration","Confirm":"Bestätigen","Coordinates copied to clipboard!":"Koordinaten auf die Zwischenablage kopiert!","Country":"Land","Date":"Datum","Depthreference":"Tiefenreferenz","Download":"Herunterladen","Download Meta.json":"Meta.json Herunterladen","Email":"E-Mail","Email address":"E-Mail Adresse","Enqueued":"Hinzugefügt","Enter coordinates manually":"Manuelle Koordinateneingabe","Enter label for cross profile":"Namen für Profilschnitt eingeben","Enter passphrase":"Passphrase eingeben","Enter username":"Benutzername eingeben","Error while saving user":"Während des Speicherns der Nutzerdaten trat ein Fehler auf","Errorlog":"Fehlerprotokoll","Failed":"Fehlgeschlagen","Forgot password":"Passwort vergessen","Generate PDF":"PDF generieren","Identified":"Identifiziert","Import":"Daten-Import","Import soundingresults":"Seichtstellenmessungen importieren","Import Soundingresults":"Seichtstellenmessungen importieren","Imported":"Importiert","Importqueue":"Import-Warteschlange","Importschedule":"Import-Zeitplan","invalid email":"Ungültige E-Mail","Invalid input":"Ungültige Eingabe","Kind":"Art","landscape":"Querformat","Last refresh:":"Letzter Abgleich:","Latest":"Neuste","Layers":"Ebenen","Login":"Login","Login failed":"Login fehlgeschlagen","Logout":"Abmelden","Logs":"Protokolle","Mail was sent":"E-Mail wurde gesendet","Map":"Karte","Measurement":"Messung","Name":"Name","New import":"Neuer Import","New Import":"Neuer Import","No features identified.":"Keine Objekte identifiziert.","No results.":"Keine Ergebnisse.","No schedules":"Keine Pläne","Open in new window":"In neuem Fenster öffnen","password":"Passwort","Password":"Passwort","password again":"Noch einmal das Passwort","Password reset requested!":"Passwort Zurücksetzung angefragt!","Password should at least be 8 char long including 1 digit and 1 special char like $":"Das Passwort sollte mindestens 8 Zeichen lang sein, eine Zahlenziffer und ein Sonderzeichen wie etwa $ enthalten","Passwords do not match!":"Die Passwörter stimmen nicht überein!","Pending":"Ausstehend","Please choose a country":"Bitte wählen Sie ein Land aus","Please choose a role":"Bitte wählen Sie eine Rolle aus","Please enter a date":"Bitte ein Datum eingeben","Please enter a projection":"Bitte eine Projektion eingeben","Please enter a reference":"Bitte ein Höhenreferenzsystem eingeben","Please enter correct coordinates in the format: Lat,Lon,Lat,Lon":"Bitte geben Sie die Koordinaten in folgendem Format an: Lat,Lon,Lat,Lon","Please select a bottleneck":"Bitte eine Seichtstelle wählen","Please select one":"Bitte auswählen","portrait":"Hochformat","Profile deleted!":"Profil gelöscht!","Profile saved!":"Profil gespeichert!","Profiles":"Profile","Projection":"Projektion","Refresh":"Aktualisieren","Rejected":"Abgelehnt","Repeat Password":"Passwort erneut eingeben","Request password reset!":"Passwort-Zurücksetzung anfragen!","Role":"Rolle","Saved cross profiles":"Gespeicherte Profile","Schedule":"Zeitplan","Select Bottleneck":"Wähle Seichtstelle","Send":"Absenden","Send testmail":"Test-E-Mail versenden","Sounding Result":"Seichtstellenvermessungsergebnisse","source-code":"Quelltext","Staging area":"Import-Überprüfung","Staging Area":"Import-Überprüfung","Start":"Start","Starting import for ":"Import gestartet ","State":"Zustand","Submit":"Abschicken","Success":"Erfolg","Successful":"Erfolgreich","Sysadmin":"Sys-Admin","Systemadministration":"System-Administration","Systemconfiguration":"System-Konfiguation","Type":"Typ","Upload":"Hochladen","User":"Benutzer","Username":"Benutzername","Users":"Benutzer","Waterway Admin":"Waterway-Admin","Waterway User":"Waterway-Benutzer","You can now select these coordinates from the \"Saved cross profiles\" menu to restore this cross profile.":"Sie können diese Koordinaten aus dem \"Gespeicherte Profile\"-Menü auswählen, um diesen Profilschnitt wieder herzustellen."},"en_GB":{},"hr_HR":{},"hu_HU":{},"ro_RO":{},"sk_SK":{}}
\ No newline at end of file
+{"bg_BG":{},"de_AT":{"Accepted":"Akzeptiert","Accesslog":"Zugriffs-Protokoll","Add User":"Benutzer hinzufügen","Author":"Autor","back to login":"zurück zur Anmeldung","Backend Error":"Server-Fehler","Bottleneck":"Seichtstelle","Bottleneck Areas fill-color":"Flächenfüllfarbe Seichtstelle","Bottleneck Areas stroke-color":"Flächenumrandungsfarbe Seichtstelle","Bottlenecks":"Seichtstellen","Cancel Upload":"Hochladen abbrechen","Chainage":"Stationierung","choose .zip- file":"Wählen Sie eine .zip Datei","Chose format:":"Format wählen:","Compare with":"Vergleiche mit","Configuration":"Konfiguration","Confirm":"Bestätigen","Coordinates copied to clipboard!":"Koordinaten auf die Zwischenablage kopiert!","Country":"Land","Date":"Datum","Depthreference":"Tiefenreferenz","Download":"Herunterladen","Download Meta.json":"Meta.json Herunterladen","Email":"E-Mail","Email address":"E-Mail Adresse","Email Notification":"E-Mail Benachrichtigung","Enqueued":"Hinzugefügt","Enter coordinates manually":"Manuelle Koordinateneingabe","Enter label for cross profile":"Namen für Profilschnitt eingeben","Enter passphrase":"Passphrase eingeben","Enter username":"Benutzername eingeben","Error while saving user":"Während des Speicherns der Nutzerdaten trat ein Fehler auf","Errorlog":"Fehlerprotokoll","Failed":"Fehlgeschlagen","Forgot password":"Passwort vergessen","Generate PDF":"PDF generieren","Identified":"Identifiziert","Import":"Daten-Import","Import soundingresults":"Seichtstellenmessungen importieren","Import Soundingresults":"Seichtstellenmessungen importieren","Imported":"Importiert","Importqueue":"Import-Warteschlange","Imports":"Daten-Import","invalid email":"Ungültige E-Mail","Invalid input":"Ungültige Eingabe","Kind":"Art","landscape":"Querformat","Last refresh:":"Letzter Abgleich:","Latest":"Neuste","Layers":"Ebenen","Login":"Login","Login failed":"Login fehlgeschlagen","Logout":"Abmelden","Logs":"Protokolle","Mail was sent":"E-Mail wurde gesendet","Map":"Karte","Measurement":"Messung","Name":"Name","New Import":"Neuer Import","No features identified.":"Keine Objekte identifiziert.","No results.":"Keine Ergebnisse.","Open in new window":"In neuem Fenster öffnen","password":"Passwort","Password":"Passwort","password again":"Noch einmal das Passwort","Password reset requested!":"Passwort Zurücksetzung angefragt!","Password should at least be 8 char long including 1 digit and 1 special char like $":"Das Passwort sollte mindestens 8 Zeichen lang sein, eine Zahlenziffer und ein Sonderzeichen wie etwa $ enthalten","Passwords do not match!":"Die Passwörter stimmen nicht überein!","Pending":"Ausstehend","Please choose a country":"Bitte wählen Sie ein Land aus","Please choose a role":"Bitte wählen Sie eine Rolle aus","Please enter a date":"Bitte ein Datum eingeben","Please enter a projection":"Bitte eine Projektion eingeben","Please enter a reference":"Bitte ein Höhenreferenzsystem eingeben","Please enter correct coordinates in the format: Lat,Lon,Lat,Lon":"Bitte geben Sie die Koordinaten in folgendem Format an: Lat,Lon,Lat,Lon","Please select a bottleneck":"Bitte eine Seichtstelle wählen","Please select one":"Bitte auswählen","portrait":"Hochformat","Profile deleted!":"Profil gelöscht!","Profile saved!":"Profil gespeichert!","Profiles":"Profile","Projection":"Projektion","Refresh":"Aktualisieren","Rejected":"Abgelehnt","Repeat Password":"Passwort erneut eingeben","Request password reset!":"Passwort-Zurücksetzung anfragen!","Role":"Rolle","Saved cross profiles":"Gespeicherte Profile","Schedule":"Zeitplan","Select Bottleneck":"Wähle Seichtstelle","Send":"Absenden","Send testmail":"Test-E-Mail versenden","Signer":"Überprüft durch","Sounding Result":"Seichtstellenvermessung","source-code":"Quelltext","Staging area":"Import-Überprüfung","Staging Area":"Import-Überprüfung","Start":"Start","Starting import for ":"Import gestartet ","State":"Zustand","Submit":"Abschicken","Success":"Erfolg","Successful":"Erfolgreich","Sysadmin":"Sys-Admin","Systemadministration":"System-Administration","Systemconfiguration":"System-Konfiguation","Type":"Typ","Upload":"Hochladen","User":"Benutzer","Username":"Benutzername","Users":"Benutzer","Waterway Admin":"Waterway-Admin","Waterway User":"Waterway-Benutzer","You can now select these coordinates from the \"Saved cross profiles\" menu to restore this cross profile.":"Sie können diese Koordinaten aus dem \"Gespeicherte Profile\"-Menü auswählen, um diesen Profilschnitt wieder herzustellen.","Length":"Länge","Area":"Fläche"},"en_GB":{},"hr_HR":{},"hu_HU":{},"ro_RO":{},"sk_SK":{}}
\ No newline at end of file
--- a/client/yarn.lock	Tue Jan 15 09:50:59 2019 +0100
+++ b/client/yarn.lock	Tue Jan 15 12:18:17 2019 +0100
@@ -10743,10 +10743,10 @@
     esquery "^1.0.0"
     lodash "^4.17.4"
 
-vue-gettext@^2.1.1:
-  version "2.1.1"
-  resolved "https://registry.yarnpkg.com/vue-gettext/-/vue-gettext-2.1.1.tgz#8431b57c27d0becff131de6a643ac4ea8ffcb52c"
-  integrity sha512-vbKhl7VGlVtTElNIdvpC4GKTRH1CwZmzhELcP6jS/UaFcF+yZvS5bIIAiPCQzMEU5dpAI0hIgJAxAKOMIg7UXw==
+vue-gettext@^2.1.2:
+  version "2.1.2"
+  resolved "https://registry.yarnpkg.com/vue-gettext/-/vue-gettext-2.1.2.tgz#b6b5160bed8ce61b6ead6adf5f4029ff04f57720"
+  integrity sha512-issGZfHvGntflaoLd+46Ru305lWOVEG/0vTI7uB5zvq/4JVGoF7J/+DUrcYswowiCKpJluYqf6inILat2HNeRQ==
 
 vue-highlightjs@^1.3.3:
   version "1.3.3"