Skip to content

Commit

Permalink
Issue #22: Playground skinning: less fields on sign up dialogue, prom…
Browse files Browse the repository at this point in the history
…inent "playground" label on most pages
  • Loading branch information
allasm committed Jul 14, 2014
1 parent a6b1990 commit c00719b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 33 deletions.
2 changes: 1 addition & 1 deletion ui/src/main/resources/PhenoTips/PCHome.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ $xwiki.ssx.use('PhenoTips.PCHome')##
<div class="preamble">
<div class="logo-container half-width"><img src="$doc.getAttachmentURL('PhenomeCentral-logo-bw.png')" alt="PhenomeCentral"/></div>
<div class="title-container half-width">
<h1>PhenomeCentral</h1>
<h1>PhenomeCentral Playground</h1>
<p>A hub for secure data sharing within the rare disorder community</p>
<div class="buttons"><a class="user-action sign-up" id="launch-register" href="$xwiki.getURL('PhenomeCentral.', 'register')">Sign up</a> <a class="user-action login" id="launch-login" href="$xwiki.getURL('PhenomeCentral.login')">Login</a> <a class="user-action about" href="$xwiki.getURL('PhenomeCentral.About')">Read more...</a></div>
</div>
Expand Down
31 changes: 0 additions & 31 deletions ui/src/main/resources/PhenomeCentral/RegistrationWiki.xml
Original file line number Diff line number Diff line change
Expand Up @@ -521,15 +521,6 @@ $xwiki.get('ssfx').use('uicomponents/widgets/validation/livevalidation.css', tru
}
})
#set($discard = $fields.add($field))
#set($field =
{'name' : 'register_referral',
'label' : "How did you hear about / Who referred you to PhenomeCentral?",
'params' : {
'type' : 'text',
'size' : '100'
}
})
#set($discard = $fields.add($field))
##------------------------------------------------------------
##
#*********
Expand Down Expand Up @@ -702,11 +693,6 @@ $xwiki.get('ssfx').use('uicomponents/widgets/validation/livevalidation.css', tru
## This must not be in a #set directive as it will output messages if something goes wrong.
#validateFields($fields, $request)
##-------------------------------------
#if ("$!{request.confirmation}" == '')
#set ($missingConfirmation = true)
#set ($registrationFailed = true)
#end
##-------------------------------------
## If server side validation was successfull, create the user
#if(!$registrationFailed)
#createUser($fields, $request, $response, $doAfterRegistration)
Expand All @@ -719,10 +705,6 @@ $xwiki.get('ssfx').use('uicomponents/widgets/validation/livevalidation.css', tru
##$welcomeMessage

{{html clean=false wiki=false}}
##----------------------------------
#if ($missingConfirmation)
#error('PhenomeCentral is targeted to clinicians and scientists working in the rare disorder community. You should not request an account on PhenomeCentral unless you can confirm that you are a doctor, clinical geneticist or scientist working with patients affected by rare disorders.')
#end
##----------------------------------
<form id="register" action="" method="post" class="xform">
<div>
Expand All @@ -734,19 +716,6 @@ $xwiki.get('ssfx').use('uicomponents/widgets/validation/livevalidation.css', tru
#generateHtml($fields, $fieldMandatoryStar, $failureMessageParams)
##
##----------------------------------
<dt>
<label for="comment">Why are you requesting access to PhenomeCentral?</label>
</dt>
<dd>
<textarea id="register_comment" name="register_comment" rows="3" mlb_binding_key="8"></textarea>
</dd>
<dt>
<label for="confirmation"><input id="confirmation" type="checkbox" name="confirmation" style="margin-right: 16px;" mlb_binding_key="9">
I confirm that I am a doctor, clinical geneticist or scientist working with patients affected by rare disorders.
<span class="xRequired">(Required)</span>
</label>
</dt>
##-----------------------------------
##
<div class="wikimodel-emptyline"></div>
<span class="buttonwrapper">
Expand Down
2 changes: 1 addition & 1 deletion ui/src/main/resources/data/WebHome.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<date>1401825901000</date>
<contentUpdateDate>1401822185000</contentUpdateDate>
<version>1.1</version>
<title>PhenomeCentral </title>
<title>PhenomeCentral Playground</title>
<comment/>
<minorEdit>false</minorEdit>
<syntaxId>xwiki/2.1</syntaxId>
Expand Down

0 comments on commit c00719b

Please sign in to comment.