Commit 59959582 authored by anton's avatar anton

Merge branch 'master' of gitlab.rlp.net:motionbank/applications/systems-frontend

parents 0f180606 84503ad0
Pipeline #51727 passed with stage
in 2 minutes and 32 seconds
......@@ -7,17 +7,18 @@
content-paragraph(:position="'last'")
form-main(v-model="payload", :schema="schema")
content-block(:position="'last'")
headline(:content="$t('forms.grids.import.title')")
//
content-block(:position="'last'")
headline(:content="$t('forms.grids.import.title')")
content-paragraph
q-input(dark, :float-label="$t('forms.grids.import.fields.title')", v-model="uploadTitle")
content-paragraph
q-input(dark, :float-label="$t('forms.grids.import.fields.title')", v-model="uploadTitle")
content-paragraph
q-checkbox(dark, :label="$t('forms.grids.import.fields.override_author')", v-model="overrideAuthor")
content-paragraph
q-checkbox(dark, :label="$t('forms.grids.import.fields.override_author')", v-model="overrideAuthor")
content-paragraph(:position="'last'")
uploader(dark, :url="url", @finish="onFinish", allowed=".zip", :headers="headers", :fields="uploadFields")
content-paragraph(:position="'last'")
uploader(dark, :url="url", @finish="onFinish", allowed=".zip", :headers="headers", :fields="uploadFields")
</template>
......
......@@ -9,58 +9,61 @@
content-paragraph
form-main(v-model="payload", :schema="schema")
div(slot="form-buttons-add", :class="{'full-width row q-mb-sm': isMobile}")
q-btn.bg-grey-9.col(q-if="$route.params.uuid", :label="exportLabel",
@click="exportGrid",
:class="[!isMobile ? '' : '']")
q-btn.bg-grey-9.col(q-if="$route.params.uuid && userHasPackager", :label="packageLabel",
@click="createPackage",
:class="[!isMobile ? 'q-mx-sm' : 'q-ml-sm']")
//
div(slot="form-buttons-add", :class="{'full-width row q-mb-sm': isMobile}")
q-btn.bg-grey-9.col(q-if="$route.params.uuid", :label="exportLabel",
@click="exportGrid",
// :class="[!isMobile ? '' : '']")
q-btn.bg-grey-9.col(q-if="$route.params.uuid && userHasPackager", :label="packageLabel",
@click="createPackage",
// :class="[!isMobile ? 'q-mx-sm' : 'q-ml-sm']")
// -------------------------------------------------------------------------------------------------- access control
content-block(v-if="availableRoles.length")
//
content-block(v-if="availableRoles.length")
headline(:content="$t('labels.access_control')")
| {{ $t('descriptions.access_control') }}
headline(:content="$t('labels.access_control')")
| {{ $t('descriptions.access_control') }}
// add to group
content-paragraph(:position="'first'")
q-select(v-model="acl.group", :clearable="true", :clear-value="undefined",
:float-label="$t('labels.access_control_add_group')", :options="availableRoles", dark)
// add to group
content-paragraph(:position="'first'")
q-select(v-model="acl.group", :clearable="true", :clear-value="undefined",
// :float-label="$t('labels.access_control_add_group')", :options="availableRoles", dark)
// remove from group
content-paragraph
q-select(v-model="acl.group_remove", :clearable="true", :clear-value="undefined",
:float-label="$t('labels.access_control_remove_group')", :options="availableRoles", dark)
// remove from group
content-paragraph
q-select(v-model="acl.group_remove", :clearable="true", :clear-value="undefined",
// :float-label="$t('labels.access_control_remove_group')", :options="availableRoles", dark)
// apply to all contained annotations and media
content-paragraph
q-checkbox(v-model="acl.recursive", :label="$t('labels.recursive')", dark)
// apply to all contained annotations and media
content-paragraph
q-checkbox(v-model="acl.recursive", :label="$t('labels.recursive')", dark)
// button "update access settings"
content-paragraph
q-btn(:label="$t('buttons.update_access_control')", @click="updateACL", color="primary",
:class="[isMobile ? 'full-width' : '']", slot="buttons")
// button "update access settings"
content-paragraph
q-btn(:label="$t('buttons.update_access_control')", @click="updateACL", color="primary",
// :class="[isMobile ? 'full-width' : '']", slot="buttons")
// -------------------------------------------------------------------------------------------------- css stylesheet
content-block(v-if="userHasCSSEditing", :position="'last'")
headline(:content="$t('labels.css_stylesheet')")
| {{ $t('descriptions.css_stylesheet') }}
//
content-block(v-if="userHasCSSEditing", :position="'last'")
headline(:content="$t('labels.css_stylesheet')")
| {{ $t('descriptions.css_stylesheet') }}
// external css stylesheet url
content-paragraph(:position="'first'")
q-input(v-model="stylesheetUrl", dark, type="text", float-label="External CSS Stylesheet URL")
// external css stylesheet url
content-paragraph(:position="'first'")
q-input(v-model="stylesheetUrl", dark, type="text", float-label="External CSS Stylesheet URL")
// embedded css stylesheet
content-paragraph
q-input(v-model="stylesheet", dark, type="textarea", float-label="Embedded CSS Stylesheet", rows="4")
// embedded css stylesheet
content-paragraph
q-input(v-model="stylesheet", dark, type="textarea", float-label="Embedded CSS Stylesheet", rows="4")
// button "submit"
content-paragraph(:position="'last'")
q-btn(q-if="$route.params.uuid", color="primary", label="Submit", @click="submit",
:class="[isMobile ? 'full-width' : '']", slot="buttons")
// button "submit"
content-paragraph(:position="'last'")
q-btn(q-if="$route.params.uuid", color="primary", label="Submit", @click="submit",
// :class="[isMobile ? 'full-width' : '']", slot="buttons")
</template>
......
......@@ -10,20 +10,21 @@
form-main(v-model="payload", :schema="schema")
// -----------------------------------------------------------------------------------------------------------------
// import timeline
content-block(:position="'last'")
headline(:content="$t('forms.timelines.import.title')")
//
// import timeline
content-block(:position="'last'")
headline(:content="$t('forms.timelines.import.title')")
// new title (optional)
content-paragraph(:position="first")
q-input(dark, :float-label="$t('forms.timelines.import.fields.title')", v-model="uploadTitle")
// new title (optional)
content-paragraph(:position="first")
q-input(dark, :float-label="$t('forms.timelines.import.fields.title')", v-model="uploadTitle")
// set ownership
content-paragraph
q-checkbox(dark, :label="$t('forms.timelines.import.fields.override_author')", v-model="overrideAuthor")
// set ownership
content-paragraph
q-checkbox(dark, :label="$t('forms.timelines.import.fields.override_author')", v-model="overrideAuthor")
content-paragraph(:position="last")
uploader(dark, :url="url", @finish="onFinish", allowed=".zip", :headers="headers", :fields="uploadFields")
content-paragraph(:position="last")
uploader(dark, :url="url", @finish="onFinish", allowed=".zip", :headers="headers", :fields="uploadFields")
</template>
<script>
......
......@@ -7,36 +7,38 @@
headline(:content="$t('routes.piecemaker.timelines.edit.title')")
content-paragraph
form-main(v-model="payload", :schema="schema")
div(slot="form-buttons-add", :class="{'full-width row q-mb-sm': isMobile}")
q-btn.col(v-if="$route.params.uuid", slot="form-buttons-add", :label="exportLabel", @click="exportTimeline",
color="grey", :class="[!isMobile ? 'q-mr-sm' : '']")
q-btn(v-if="$route.params.uuid", @click="exportCSV", color="grey",
:class="[!isMobile ? 'q-mr-sm' : '']", :label="exportLabelCSV")
//
div(slot="form-buttons-add", :class="{'full-width row q-mb-sm': isMobile}")
q-btn.col(v-if="$route.params.uuid", slot="form-buttons-add", :label="exportLabel", @click="exportTimeline",
color="grey", :class="[!isMobile ? 'q-mr-sm' : '']")
q-btn(v-if="$route.params.uuid", @click="exportCSV", color="grey",
// :class="[!isMobile ? 'q-mr-sm' : '']", :label="exportLabelCSV")
// -------------------------------------------------------------------------------------------------- access control
content-block(v-if="availableRoles.length", :position="'last'")
headline.q-mt-lg(:content="$t('labels.access_control')")
| {{ $t('descriptions.access_control') }}
//
content-block(v-if="availableRoles.length", :position="'last'")
headline.q-mt-lg(:content="$t('labels.access_control')")
| {{ $t('descriptions.access_control') }}
// 'add to group'
content-paragraph
q-select(v-model="acl.group", :clearable="true", :clear-value="undefined",
:float-label="$t('labels.access_control_add_group')", :options="availableRoles", dark)
// 'add to group'
content-paragraph
q-select(v-model="acl.group", :clearable="true", :clear-value="undefined",
// :float-label="$t('labels.access_control_add_group')", :options="availableRoles", dark)
// 'remove from group'
content-paragraph
q-select(v-model="acl.group_remove", :clearable="true", :clear-value="undefined",
:float-label="$t('labels.access_control_remove_group')", :options="availableRoles", dark)
// 'remove from group'
content-paragraph
q-select(v-model="acl.group_remove", :clearable="true", :clear-value="undefined",
// :float-label="$t('labels.access_control_remove_group')", :options="availableRoles", dark)
// 'apply to all contained annotations and media'
content-paragraph
q-checkbox(v-model="acl.recursive", :label="$t('labels.recursive')", dark)
// 'apply to all contained annotations and media'
content-paragraph
q-checkbox(v-model="acl.recursive", :label="$t('labels.recursive')", dark)
// update button
content-paragraph
q-btn(:label="$t('buttons.update_access_control')", @click="updateACL", color="primary",
slot="buttons", :class="{'full-width': isMobile}")
// update button
content-paragraph
q-btn(:label="$t('buttons.update_access_control')", @click="updateACL", color="primary",
slot="buttons", :class="{'full-width': isMobile}")
</template>
<script>
......
......@@ -14,7 +14,7 @@
content-paragraph
form-main(v-model="payload", :schema="schema")
q-btn.q-mr-md.bg-grey-9(v-if="!isFirst", slot="form-buttons-add", :label="$t('buttons.close_account')")
// q-btn.q-mr-md.bg-grey-9(v-if="!isFirst", slot="form-buttons-add", :label="$t('buttons.close_account')")
//
h5.no-margin(slot="form-title")
......
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