Skip to content

Commit

Permalink
Updating Help information
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexagod committed Oct 5, 2020
1 parent f5b29e0 commit 5d5d6a8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
27 changes: 15 additions & 12 deletions src/Components/HelpComponent.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react'
import { Row, Col, Button } from 'react-bootstrap'
import { Row, Col, Button, Badge } from 'react-bootstrap'
import { availableViews } from '../util/Util';
import { IconButton } from '@material-ui/core';

const HelpComponent = (props) => {
return (
<div id="HelpComponent" className='container leftaligntext'>
<h4 className='container centeraligntext'>How to get married with SOLID in 10 simple steps</h4>
<h4 className='container centeraligntext'>How to get married with SOLID in 5 simple steps</h4>

<Row>
<Col md={1}>{availableViews.login.icon}</Col>
Expand Down Expand Up @@ -47,14 +48,14 @@ const HelpComponent = (props) => {
<Col md={1}></Col>
<Col md={11}>
<p>Now that your profile information is filled in, you can start planning your wedding.</p>
<p>Tho initiate the marriage procedure, go to the Requests tab.</p>
<p>Here, the procedure can be initiated by clicking <Button>Initiate procedure</Button> for the Marriage certificate type</p>
<p>Tho initiate the marriage procedure, go to the <b>Procedures</b> tab.</p>
<p>Here, the procedure can be initiated by clicking <Button>Initiate procedure</Button> for the Marriage certificate type.</p>
<p>Now, you will find your information already filled out as one of the spouses.</p>
<p>A marriage requires two spouses to be given, as well as one or more witnesses.</p>
<p>If a valid webId is filled in, the profile of that person will be filled in automatically.</p>
<p>In case the given profile is incomplete, an error message will be shown. Please choose a different webId, or wait for the person to complete their profile.</p>
<p>If a valid webId is entered, the associated profile will be shown automatically.</p>
<p>In case this profile is incomplete, an error message will be shown. Please choose a different webId, or wait for the person to complete their profile.</p>
<p>If all necessary information is filled in, the proposal is ready to be submitted.</p>
<p>You can use the default storage location to store the created marriage proposal, or select a custom location (please make sure the selected location is valid).</p>
<p>You can use the default storage location to store the created marriage proposal on your pod, or select a custom location (please make sure the selected location is valid, and read permissions are public. If this is not the case, the people you invite will not be able to see the marriage proposal).</p>
<p>Now, you can submit the marriage proposal using <Button>Submit</Button></p>
</Col>
</Row>
Expand All @@ -68,11 +69,13 @@ const HelpComponent = (props) => {
<Col md={1}></Col>
<Col md={11}>
<p>On creation of a marriage proposal, all parties (spouses and witnesses) are notified of the created proposal.</p>
<p>These notifications can be found in the inbox of your data pod (the default location is at /inbox).</p>
TODO :: proposals folder - check notifications and add running proposal for marriage if notification of that.
TODO :: on accept / rejection - add to hasContracts !


<p>These notifications can be found by clicking the notification icon
<IconButton aria-label={'notifications'} color="inherit">
<Badge badgeContent={1} color="secondary">
{availableViews.notifications.icon}
</Badge>
</IconButton>
at the top of your screen.</p>
<p>Now, you can see the marriage proposal, and all people involved in the proposal.</p>
<p>In this form, you will see two action buttons next to your name: <button type="button" className="marriageview_accept__3V0c_ centeraligntext btn btn-primary" style={{width: '120px'}}> Accept </button> and <button type="button" className="marriageview_refuse__2lqar centeraligntext btn btn-primary" style={{width: '120px'}}> Refuse </button>.</p>
<p>With these, you can accept or refuse the invitation.</p>
Expand Down
2 changes: 2 additions & 0 deletions src/Components/MarriageViewComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ns from "../util/NameSpaces"
import ProfileCardComponent from './ProfileCardComponent'
import { acceptProposal, refuseProposal, deleteProposal, createMarriageContractSubmissionNotification, submitProposal, sendContactInvitation } from '../util/MarriageController'
import { availableViews } from '../util/Util'
import ProfileCardSelectorComponent from './ProfileCardSelectorComponent'
const { default: data } = require('@solid/query-ldflex');

const INVITATIONACCEPTED = ns.demo('accepted')
Expand Down Expand Up @@ -162,6 +163,7 @@ const MarriageViewComponent = (props) => {
? isComplete()
? <Row>
<Col md={6}>
<ProfileCardSelectorComponent />
</Col>
<Col md={3}>
<Button className={`${styles.accept} valuebutton`} onClick={() => submitMarriageProposal(props.contract.id, props.webId)}> Submit Marriage Proposal </Button>
Expand Down

0 comments on commit 5d5d6a8

Please sign in to comment.