Skip to content

Commit

Permalink
create user
Browse files Browse the repository at this point in the history
  • Loading branch information
ipula committed Feb 2, 2024
1 parent 5e8a868 commit befb7ef
Show file tree
Hide file tree
Showing 9 changed files with 875 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Container/PageOJS.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
import Page from '@/components/Container/Page.vue';
import SubmissionsPage from '@/pages/submissions/SubmissionsPage.vue';
import UserInvitationPage from '@/pages/userInvitation/UserInvitationPage.vue';
import CreateUserPage from '@/pages/createUser/CreateUserPage.vue';
export default {
components: {
SubmissionsPage,
UserInvitationPage,
CreateUserPage,
},
extends: Page,
};
Expand Down
17 changes: 17 additions & 0 deletions src/pages/createUser/CreateUserAccount.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<template>
<field-text v-bind="usernameField" @change="usernameChange" />
<br />
<field-text v-bind="passwordField" @change="passwordChange" />
</template>

<script setup>
import {defineProps} from 'vue';
import FieldText from '@/components/Form/fields/FieldText.vue';
defineProps({
passwordField: {type: Object, required: true},
usernameField: {type: Object, required: true},
usernameChange: {type: Function, required: true},
passwordChange: {type: Function, required: true},
});
</script>
19 changes: 19 additions & 0 deletions src/pages/createUser/CreateUserForms.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<template>
<pkp-form
v-if="section.type === 'form'"
v-bind="section.form"
ref="autosaveForms"
class="userInvitation__stepForm"
@set="updateAutosaveForm"
></pkp-form>
</template>

<script setup>
import {defineProps} from 'vue';
import PkpForm from '@/components/Form/Form.vue';
defineProps({
section: {type: Object, required: true},
updateAutosaveForm: {type: Function, required: true},
});
</script>
17 changes: 17 additions & 0 deletions src/pages/createUser/CreateUserHeader.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<template>
<h1 ref="wrapper" class="app__pageHeading">
{{ pageTitle }}
</h1>
<p>
{{ pageTitleDescription }}
</p>
</template>

<script setup>
import {defineProps} from 'vue';
defineProps({
pageTitle: {type: String, required: true},
pageTitleDescription: {type: String, required: true},
});
</script>
34 changes: 34 additions & 0 deletions src/pages/createUser/CreateUserInvitedRoles.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<template>
<PkpTable>
<template #caption>
<PkpHeader>
<h2>Roles</h2>
</PkpHeader>
</template>
<template #head>
<TableHeader>Title</TableHeader>
<TableHeader>Start Date</TableHeader>
<TableHeader>End Date</TableHeader>
<TableHeader>Journal Masthead</TableHeader>
</template>
<tr v-for="(row, index) in section.rows" :key="index">
<TableCell :is-row-header="true">
{{ row.setting_value }}
</TableCell>
<TableCell>{{ row.date_start }}</TableCell>
<TableCell>{{ row.date_end }}</TableCell>
<TableCell>testing</TableCell>
</tr>
</PkpTable>
</template>

<script setup>
import PkpTable from '@/components/TableNext/Table.vue';
import TableCell from '@/components/TableNext/TableCell.vue';
import TableHeader from '@/components/TableNext/TableHeader.vue';
import {defineProps} from 'vue';
defineProps({
section: {type: Object, required: true},
});
</script>
Loading

0 comments on commit befb7ef

Please sign in to comment.